Function at 0x40654d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
lea edx, [eax + 0x259]
add ebx, 0x48
push ebp
lea ebp, [eax + 0x94]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x1c]
add eax, 0xffffeadc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add eax, 0x336
push esi
mov esi, dword [esp + 0x30]
push edi
lea edi, [ecx + 0x123]
mov dword [esp + 0x20], eax
add ecx, 0xffffea48
mov dword [esp + 0x18], edi
lea eax, [edx + 0x43b]
mov dword [esp + 0x10], ecx
cmp edi, eax
jge 0x406664
lea eax, [ebp + 0x36e]
cmp ecx, eax
je 0x406664
lea eax, [edi - 0x138]
cmp ebx, eax
jl 0x4065e1
mov eax, dword [esi + 0x110]
xor eax, 0xfe3c041
mov dword [esi + 0x80], eax
jmp 0x406664
mov eax, ebp
mov dword [esp + 0x2c], ebx
sub eax, dword [esi + 0x2c]
mov ecx, ebx
sub eax, dword [esi + 0x24]
cmp ebx, eax
je 0x406664
mov edi, dword [esp + 0x20]
add edi, 0x925
and edi, 0x18ea
cmp ebx, edi
je 0x40664d
sub edx, dword [esp + 0x28]
mov eax, dword [0x4bca00]
and eax, dword [0x4bca10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov eax, dword [esp + 0x10]
add eax, 0x16db
push eax
mov eax, dword [esp + 0x24]
xor eax, ebx
add eax, dword [esi + 0x40]
push eax
mov eax, ebp
and eax, 0x920
or eax, 0x16db
push eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, ebp
add ecx, 2
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jne 0x406603
mov edi, dword [esp + 0x18]
lea eax, [edx + 0x3fb]
mov dword [esi + 0xb4], 0x451950
cmp ebx, eax
jg 0x4067d5
add edi, 0x460
xor ebx, ebx
mov eax, 0xb2d12
sub eax, dword [0x4bcad8]
sub eax, dword [0x4bca10]
add dword [esi + 0x78], eax
mov ecx, dword [0x4a67bc]
mov eax, dword [ecx + 0x118]
sub eax, 0x160c63
imul eax, dword [ecx + 0x48]
mov dword [ecx + 0x48], eax
mov eax, dword [esi + 0xb4]
mov ecx, dword [0x4a67bc]
mov edx, dword [ebx + eax]
add ebx, 4
mov eax, dword [esi + 0xfc]
sub dword [ecx + 0xe0], eax
mov eax, 0x10fd33
sub eax, dword [esi + 0x5c]
mov ecx, dword [0x4a67bc]
add dword [ecx + 0xdc], eax
mov eax, dword [0x4a67bc]
mov ecx, dword [eax + 0x114]
mov eax, dword [0x4bc9fc]
add eax, 0xfff048dd
add eax, ecx
xor dword [esi + 8], eax
mov ecx, dword [0x4a67bc]
mov eax, dword [ecx + 0xe8]
xor eax, dword [ecx + 0x7c]
sub eax, 0x13e42d
or dword [ecx + 0x10c], eax
mov eax, dword [0x4a67bc]
movzx ecx, dl
movzx edx, byte [eax + 0x80]
mov eax, dword [esi + 0xb8]
imul edx, ecx
mov ecx, dword [esi + 0x84]
mov byte [ecx + eax], dl
inc dword [esi + 0x84]
mov eax, dword [0x4a67bc]
mov eax, dword [eax + 0x34]
dec eax
add dword [esi + 0x114], eax
xor eax, eax
inc eax
sub eax, dword [esi + 0xd8]
add dword [esi + 0x34], eax
mov ecx, dword [0x4bcb00]
mov eax, dword [0x4bca34]
add ecx, 0xffec0036
add eax, ecx
mov ecx, dword [0x4a67bc]
mov dword [0x4bcb00], eax
mov eax, dword [esi + 0x114]
sub eax, dword [esi + 0xe0]
sub eax, 0x1d
add dword [ecx + 0xfc], eax
mov eax, dword [0x4a67bc]
mov eax, dword [eax + 0x10c]
sub dword [esi + 0xf4], eax
mov eax, dword [0x4a67bc]
mov eax, dword [eax + 0xac]
sub eax, 0x47
imul eax, dword [0x4bcacc]
mov dword [0x4bcacc], eax
mov eax, dword [0x4bc9f8]
mov ecx, dword [esi + 0x48]
add eax, 0xffffffeb
add ecx, eax
add dword [esi + 0xc4], ecx
cmp ebx, 0xdd70
jl 0x406684
xor edi, 0xc46
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret