Function at 0x4060e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x338
cmp dword [ebp + 8], 0x180
push esi
push edi
mov esi, edx
mov dword [esp + 0x18], ecx
jbe 0x406108
mov eax, 0xffffffc8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1a0
lea eax, [esp + 0x8c]
push 0
push eax
call sub.ntdll.dll_memset
push 0x118
lea eax, [esp + 0x238]
push 0
push eax
call sub.ntdll.dll_memset
mov ecx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0xb0], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0xb1], al
mov eax, ecx
shr eax, 8
push ecx
mov byte [esp + 0xb6], al
lea eax, [esp + 0xbc]
push esi
push eax
mov byte [esp + 0xbf], cl
mov byte [esp + 0xc3], 0x30
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0x24
lea edi, [eax + 0x19]
mov byte [esp + eax + 0xa0], 0x80
mov dword [esp + 0x10], edi
xor eax, eax
nop dword [eax]
mov byte [esp + eax + 0x68], al
inc eax
cmp eax, 0x20
jl 0x406190
push pe_nt_image_headers32
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x230]
push eax
call fcn.004021a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4062d2
mov cl, byte [esp + 0x8b]
mov dword [esp + 0x14], eax
nop dword [eax]
cmp dword [esp + 0x10], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
jbe 0x40624b
lea esi, [esp + 0x88]
lea eax, [esp + 0x20]
sub esi, eax
nop dword [eax]
xor eax, eax
lea edx, [esp + 0x20]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor byte [edx], cl
cmp eax, 0x10
jl 0x4061f2
add esi, 0x10
mov eax, edi
cmp edi, 0x10
mov ecx, 0x10
cmovae eax, ecx
lea ecx, [esp + 0x228]
sub edi, eax
lea eax, [esp + 0x20]
push eax
mov edx, eax
call fcn.00403450
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4062ce
test edi, edi
jne 0x4061f0
movaps xmm0, xmmword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x8b]
mov edi, dword [esp + 0x10]
inc cl
movups xmmword [esp + eax + 0x38], xmm0
add eax, 0x10
mov byte [esp + 0x8b], cl
mov dword [esp + 0x14], eax
cmp eax, 0x30
jl 0x4061d0
push pe_nt_image_headers32
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x230]
push eax
call fcn.004021a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4062d2
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x58]
push eax
mov edx, eax
lea ecx, [esp + 0x22c]
call fcn.00403450
mov esi, eax
add esp, 4
test esi, esi
jne 0x4062d2
movups xmm0, xmmword [esp + 0x58]
mov eax, dword [esp + 0x10]
add eax, 0x10
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [esp + 0x10], eax
cmp eax, 0x30
jl 0x406295
jmp 0x4062d2
mov esi, dword [esp + 0x1c]
push 0x118
lea eax, [esp + 0x22c]
push 0
push eax
mov eax, dword [sub.ntdll.dll_memset]
call eax
push 0x1a0
lea eax, [esp + 0x98]
push 0
push eax
mov eax, dword [sub.ntdll.dll_memset]
call eax
push 0x30
lea eax, [esp + 0x54]
push 0
push eax
mov eax, dword [sub.ntdll.dll_memset]
call eax
push 0x20
lea eax, [esp + 0x90]
push 0
push eax
mov eax, dword [sub.ntdll.dll_memset]
call eax
push 0x10
lea eax, [esp + 0x54]
push 0
push eax
mov eax, dword [sub.ntdll.dll_memset]
call eax
add esp, 0x3c
test esi, esi
je 0x40634a
mov eax, dword [sub.ntdll.dll_memset]
push 0x30
push 0
push dword [esp + 0x20]
call eax
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret