Function at 0x46e440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x338
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x334], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp eax, 0x180
jbe 0x46e48b
mov eax, 0xffffffc8
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push 0x1a0
lea eax, [esp + 0x19c]
push 0
push eax
call fcn.00525340
push pe_nt_image_headers32
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00525340
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c0], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1c1], al
mov eax, ecx
shr eax, 8
push ecx
mov byte [esp + 0x1c6], al
lea eax, [esp + 0x1cc]
push esi
push eax
mov byte [esp + 0x1cf], cl
mov byte [esp + 0x1d3], 0x30
call fcn.00524840
mov eax, dword [esp + 0x30]
add esp, 0x24
lea esi, [eax + 0x19]
mov byte [esp + eax + 0x1b0], 0x80
mov dword [esp + 0x14], esi
xor eax, eax
nop
mov byte [esp + eax + 0x178], al
inc eax
cmp eax, 0x20
jl 0x46e510
push 0x100
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x1c]
call fcn.0048add0
add esp, 4
test eax, eax
jne 0x46e649
mov cl, byte [esp + 0x19b]
mov dword [esp + 0xc], eax
nop dword [eax + eax]
xorps xmm0, xmm0
mov edi, esi
movaps xmmword [esp + 0x130], xmm0
test esi, esi
je 0x46e5d2
lea esi, [esp + 0x198]
lea eax, [esp + 0x130]
sub esi, eax
xor eax, eax
lea edx, [esp + 0x130]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor byte [edx], cl
cmp eax, 0x10
jl 0x46e573
add esi, 0x10
mov eax, edi
cmp edi, 0x10
mov ecx, 0x10
cmovae eax, ecx
lea ecx, [esp + 0x18]
sub edi, eax
lea eax, [esp + 0x130]
push eax
mov edx, eax
call fcn.0048bf90
add esp, 4
test eax, eax
jne 0x46e645
test edi, edi
jne 0x46e571
movaps xmm0, xmmword [esp + 0x130]
mov eax, dword [esp + 0xc]
mov cl, byte [esp + 0x19b]
mov esi, dword [esp + 0x14]
movups xmmword [esp + eax + 0x148], xmm0
add eax, 0x10
inc cl
mov byte [esp + 0x19b], cl
mov dword [esp + 0xc], eax
cmp eax, 0x30
jl 0x46e550
push 0x100
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x1c]
call fcn.0048add0
add esp, 4
test eax, eax
jne 0x46e645
mov esi, dword [esp + 0x10]
xor edi, edi
lea eax, [esp + 0x168]
push eax
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0048bf90
add esp, 4
test eax, eax
jne 0x46e645
movups xmm0, xmmword [esp + 0x168]
add edi, 0x10
movups xmmword [esi], xmm0
add esi, 0x10
cmp edi, 0x30
jl 0x46e615
mov edi, dword [esp + 0x10]
mov ecx, pe_nt_image_headers32
lea edx, [esp + 0x18]
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x46e652
mov ecx, 0x1a0
lea edx, [esp + 0x198]
nop dword [eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x46e670
mov ecx, 0x30
lea edx, [esp + 0x148]
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x46e687
mov ecx, 0x20
lea edx, [esp + 0x178]
nop
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x46e6a0
mov ecx, 0x10
lea edx, [esp + 0x130]
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x46e6b7
test eax, eax
je 0x46e6db
mov ecx, 0x30
nop dword [eax + eax]
mov byte [edi], 0
lea edi, [edi + 1]
sub ecx, 1
jne 0x46e6d0
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret