Function at 0x40ad70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52162d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x68
movaps xmm0, xmmword [0x549820]
movups xmmword [ebp - 0x42], xmm0
push esi
movaps xmm0, xmmword [0x547ea0]
mov dword [ebp - 0x20], ecx
xor ecx, ecx
push edi
mov word [ebp - 0x32], 0xeaf8
movups xmmword [ebp - 0x30], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x42], al
inc ecx
cmp ecx, 0x18
jb 0x40adc2
mov dword [0x55d570], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x42]
mov byte [ebp - 0x2a], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x60], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40adf4
sub ecx, edx
lea eax, [ebp - 0x42]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00402b80
mov dword [ebp - 4], 0
lea esi, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
movaps xmm0, xmmword [0x547690]
cmovae esi, dword [ebp - 0x74]
xor ecx, ecx
mov word [ebp - 0x33], 0xfce9
mov byte [ebp - 0x31], 0xed
movups xmmword [ebp - 0x30], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 9
jb 0x40ae33
mov dword [0x55d630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x33]
mov byte [ebp - 0x2a], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ae65
sub ecx, edx
lea eax, [ebp - 0x33]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b80
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x40aecc
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aec2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b015
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0x10
jb 0x40af19
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40af0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b015
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x64], 0
xor edi, edi
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40afe2
mov esi, dword [0x55b484]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xc0000004
jne 0x40afaa
nop word [eax + eax]
push edi
mov edi, dword [ebp - 0x18]
push 0
push edi
call eax
add esi, esi
cmp esi, 0x10000000
ja 0x40afcc
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [ebp - 0x14]
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ecx, 0xc0000004
je 0x40af70
test ecx, ecx
jns 0x40afe8
push edi
push 0
push dword [ebp - 0x18]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x55b484]
cmp esi, 0x200000
cmovbe eax, esi
mov dword [0x55b484], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
int3