Function at 0x403fb4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push esi
lea esi, [eax - 0x47b]
add eax, 0xffffc57a
lea edx, [ecx + 0x38e]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x4fa]
mov dword [esp + 0x14], edx
lea ebp, [ecx + 0x3a9]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
add eax, 0xfffffc12
xor ecx, 0x3ab3
mov dword [esp + 0x20], ebp
push edi
cmp ecx, eax
je 0x4041b9
mov eax, edx
xor eax, 0x7d84
cmp esi, eax
mov esi, dword [esp + 0x30]
jg 0x404197
mov dword [esi + 0xb4], 0x416d38
xor edi, edi
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0xb4]
mov edx, dword [edi + eax]
add edi, 4
mov eax, dword [0x517e7c]
add dword [eax + 0x48], ecx
mov eax, dword [0x517e7c]
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xac]
add ecx, 0xffffffb8
add eax, ecx
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x114]
xor eax, dword [esi + 0x124]
mov ecx, dword [0x517e7c]
sub eax, 0x1388c2
xor dword [ecx + 0x5c], eax
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x70]
inc eax
add dword [esi + 0x98], eax
mov ecx, dword [0x517e7c]
mov eax, dword [esi + 0x34]
xor eax, dword [0x52aac4]
sub eax, 0x1388dd
imul eax, dword [ecx + 0xa0]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x10c]
sub eax, dword [0x52aa1c]
mov ecx, dword [0x517e7c]
add eax, 0x18c93f
xor dword [ecx + 0x48], eax
mov ebx, dword [esi + 0x80]
mov eax, dword [0x517e7c]
imul ebx, edx
mov ecx, dword [eax + 0x84]
mov eax, dword [esi + 0xb8]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
mov eax, dword [0x517e7c]
inc dword [eax + 0x84]
mov eax, dword [0x517e7c]
mov eax, dword [eax + 0xdc]
add eax, dword [esi + 0x70]
xor eax, 0x38
add dword [esi + 0x78], eax
mov eax, dword [esi + 0x48]
xor eax, dword [esi + 0x90]
add dword [esi + 0xc4], eax
mov ecx, dword [0x517e7c]
mov eax, dword [esi + 0xf4]
xor eax, 0xffe6b3e8
add dword [ecx + 0x108], eax
mov ecx, dword [esi + 0xb8]
mov eax, dword [0x52aa24]
mov byte [eax + ecx], bl
inc dword [0x52aa24]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 0xe8]
sub eax, 0x489f3
imul eax, dword [esi + 0x114]
mov dword [esi + 0x114], eax
mov eax, dword [0x517e7c]
mov eax, dword [eax + 0x68]
sub eax, dword [esi + 0x118]
add eax, 0x2571e5
xor dword [0x52a9d4], eax
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
imul eax, dword [esi + 0xac]
mov dword [esi + 0xac], eax
cmp edi, 0x61758
jl 0x404029
mov eax, dword [esi + 0xdc]
xor eax, 0x11b8
mov dword [esi + 0x80], eax
mov eax, 0xc5050675
sub eax, dword [esi + 0x7c]
add dword [0x52aa20], eax
mov eax, dword [0x517e7c]
mov dword [eax + 0xb4], 0x4af660
jmp 0x404270
mov edx, dword [0x517e7c]
mov edi, dword [esp + 0x30]
mov eax, dword [edx + 0x104]
mov ebx, dword [edi + 0x38]
or eax, ebp
add eax, dword [0x52aa80]
cmp ebx, eax
jbe 0x404270
lea eax, [ecx - 0x3b2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add eax, 0x2ec
imul ebp, eax, 0x3d50
or ebp, 0x3a86
mov eax, dword [edi + 0xe4]
or esi, 0x3a86
xor eax, dword [esp + 0x2c]
add esi, 0x3525
imul eax, dword [esp + 0x10]
push esi
push ebp
or dword [edx + 0x48], eax
mov eax, dword [0x517e7c]
mov ecx, dword [eax + 0xa8]
imul eax, dword [edi + 0x34], 0x3d50
and ecx, dword [esp + 0x1c]
sub eax, dword [0x52aa1c]
push eax
push ecx
push edi
call fcn.00405d20
mov ecx, dword [0x52aaac]
add esp, 0x14
xor ecx, dword [esp + 0x24]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov edx, dword [0x517e7c]
inc ebx
mov ecx, dword [edx + 0x104]
or ecx, dword [esp + 0x24]
add ecx, dword [0x52aa80]
cmp ebx, ecx
ja 0x4041fb
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add eax, 0xfffffdf7
pop ebx
add esp, 0xc
ret