Function at 0x405b90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, ecx
push ebx
mov ebx, dword [esp + 0x20]
xor edx, 0x188
push ebp
mov ebp, ecx
mov dword [esp + 8], edx
xor ebp, 0x89
add ebx, 0xfffff4da
push esi
mov esi, dword [esp + 0x1c]
push edi
lea edi, [ecx + 0x564]
mov dword [esp + 0x2c], ebx
add ecx, 0xffffff89
mov dword [esp + 0x14], ebp
lea eax, [ebp - 0xd21]
mov dword [esp + 0x18], ecx
cmp ebx, eax
je 0x405dd7
lea eax, [ecx + 0x460]
cmp edi, eax
jle 0x405d60
lea eax, [edx - 9]
cmp ebp, eax
je 0x405ce0
xor ebp, ebp
nop dword [eax + eax]
mov eax, dword [esi + 0x14]
sub eax, 0x167029
add dword [esi + 0xf4], eax
mov eax, 0xffe2f461
sub eax, dword [esi + 0x9c]
add dword [esi + 0xc4], eax
mov eax, dword [0x4ac344]
mov eax, dword [eax + 0x80]
xor eax, dword [esi + 8]
xor eax, 7
or dword [esi + 0xa8], eax
mov eax, dword [esi + 0x78]
sub eax, 3
add dword [esi + 0x50], eax
mov eax, dword [esi + 0x2c]
add dword [0x4ae0a8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0x60]
mov ebx, dword [eax + ebp]
add ebp, 4
imul ebx, dword [esi + 0x5c]
mov eax, dword [0x4ae140]
xor dword [esi + 0xc], eax
mov eax, dword [0x4ae10c]
mov edx, ebx
shr edx, 0x10
mov byte [eax + ecx], dl
inc dword [esi + 0x60]
mov edx, dword [0x4ac344]
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x48]
add ecx, 0xffeaf9b4
add eax, ecx
mov ecx, 0x26
xor dword [edx + 0x3c], eax
mov edx, ebx
mov eax, dword [0x4ac344]
shr edx, 8
sub ecx, dword [eax + 0x3c]
sub ecx, dword [esi + 0xf0]
add dword [esi + 0xa8], ecx
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0xac]
mov byte [ecx + eax], dl
inc dword [esi + 0x60]
mov ecx, dword [esi + 0xac]
mov eax, dword [0x4ae0c0]
mov byte [eax + ecx], bl
inc dword [0x4ae0c0]
cmp ebp, 0x1990
jl 0x405c00
mov ebp, dword [esp + 0x14]
jmp 0x405d5c
mov ebx, dword [0x4ac344]
mov eax, dword [ebx + 0xb0]
sub eax, 0xbea
cmp dword [esi + 8], eax
jb 0x405d66
mov eax, dword [0x4ae0a4]
or eax, 0x190b
cmp dword [0x4ae0d8], eax
je 0x405d66
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xdc]
imul eax, edi
push 0x4ae060
push eax
lea eax, [edx - 0x1668]
imul eax, eax, 0x1668
push eax
mov eax, dword [esi + 0x90]
sub eax, ecx
and ecx, dword [0x4ae0d0]
xor ecx, dword [ebx + 0xc]
add eax, 0x1d27
push eax
lea eax, [ebp - 0xaf3]
xor eax, 0x1d6b
push eax
mov eax, dword [ebx + 0x90]
push ecx
xor eax, ebp
push eax
call fcn.0041dda0
add esp, 0x1c
mov edx, dword [esp + 0x10]
mov ebx, dword [0x4ac344]
lea eax, [edi - 0x12fc]
cmp edx, eax
jl 0x405d8f
mov eax, dword [esi + 0x48]
add dword [esp + 0x2c], 0x514
add eax, 0x286bca1b
mov dword [ebx + 0x5c], eax
mov dword [0x4ae104], 0x4ac348
jmp 0x405dd3
mov eax, dword [ebx + 0xd0]
mov edx, edi
add eax, 0x1668
cmp edi, eax
jb 0x405dd3
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x90]
nop dword [eax]
add ecx, 0x10b2
inc edx
add ecx, ebx
mov dword [esi + 0x90], ecx
mov eax, dword [0x4ac344]
mov eax, dword [eax + 0xd0]
add eax, 0x1668
cmp edx, eax
jae 0x405db0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
xor eax, 0x764
cmp dword [esp + 0x18], eax
jg 0x405f4a
xor edi, edi
nop dword [eax]
mov eax, dword [0x4ae068]
mov ecx, dword [esi + 0x90]
xor eax, 7
or dword [esi + 0xa0], eax
mov eax, dword [esi + 0x50]
sub dword [esi + 0x14], eax
mov eax, dword [0x4ac344]
sub ecx, dword [eax + 0x2c]
sub ecx, 0x15064c
xor dword [esi + 0x64], ecx
mov ecx, dword [0x4ac344]
mov eax, dword [ecx + 0xa4]
mov ebx, dword [eax + edi]
add edi, 4
mov eax, dword [0x4ae0fc]
sub eax, dword [esi + 0xd0]
xor eax, dword [ecx + 0xc4]
imul ebx, dword [esi + 0x5c]
xor eax, 0xffe2f460
mov dword [ecx + 0xc4], eax
mov eax, dword [0x4ae0c4]
mov edx, dword [0x4ac344]
add eax, 0x11d425
add eax, dword [esi + 0xdc]
xor dword [edx + 0xa8], eax
mov edx, ebx
mov eax, dword [0x4ac344]
shr edx, 8
mov ecx, dword [eax + 0x60]
mov eax, dword [esi + 0xac]
mov byte [ecx + eax], dl
mov eax, dword [0x4ac344]
inc dword [eax + 0x60]
mov ecx, dword [esi + 0x60]
mov eax, dword [0x4ae10c]
mov byte [eax + ecx], bl
inc dword [esi + 0x60]
mov ecx, dword [0x4ac344]
mov eax, dword [0x4ae100]
xor dword [ecx + 0xdc], eax
mov eax, dword [esi + 0x10]
sub eax, dword [0x4ae068]
mov ecx, dword [0x4ae0fc]
add eax, 7
or ecx, eax
mov eax, dword [0x4ae140]
sub dword [0x4ae0d4], eax
mov dword [0x4ae0fc], ecx
lea eax, [ecx + 0x1d0b9f]
or dword [esi + 0xf8], eax
cmp edi, 0x1cc8
jl 0x405df0
xor edx, edx
mov eax, dword [0x4ae09c]
or dword [esi + 0xc0], eax
mov ecx, dword [0x4ae070]
mov eax, dword [0x4ae0d4]
dec ecx
add eax, ecx
mov ecx, dword [esi + 0xb8]
add dword [esi + 0xb4], eax
mov eax, dword [0x4ac344]
mov eax, dword [eax + 0x8c]
xor dword [ecx + edx], eax
add edx, 4
mov eax, dword [esi + 0xc8]
add dword [esi + 0x8c], eax
cmp edx, 0x348
jl 0x405ee5
mov eax, dword [0x4ae118]
xor ebp, 0x1412
pop edi
mov dword [esi + 0x94], eax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [edi + 0x1801]
cmp dword [esi + 0x34], eax
je 0x405faf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [esi + 0x7c]
or ebx, 0x1982
sub eax, ebp
and ebx, dword [esi + 0x90]
push eax
imul eax, dword [esi + 0x3c], 0x190b
push eax
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x78]
or eax, dword [esi + 0xbc]
push eax
mov eax, edi
imul eax, dword [esp + 0x30]
xor eax, dword [esp + 0x40]
xor eax, 0x1415
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [0x4ac344]
sub edi, dword [esi + 0x90]
or edi, dword [esi + 0x50]
xor dword [ecx + 0xc0], edi
pop edi
xor ebp, 0x1412
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret