Function at 0x403fb4
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
lea esi, [ecx - 0x51d]
add ecx, 0xffffc5be
push edi
lea edi, [eax + 0x46e]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
add eax, 0x7fa
mov dword [esp + 0x1c], eax
xor ecx, 0x3ea1
lea eax, [edi + 0x105]
cmp ecx, eax
je 0x4041aa
mov eax, edi
xor eax, 0xfc
cmp esi, eax
mov esi, dword [esp + 0x28]
jg 0x404188
mov dword [esi + 0xb4], 0x417728
xor ebp, ebp
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0xb4]
mov edx, dword [eax + ebp]
add ebp, 4
mov eax, dword [0x4ae154]
add dword [eax + 0x48], ecx
mov eax, dword [0x4ae154]
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 [0x4ae154]
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 [0x4ae154]
mov eax, dword [esi + 0x34]
xor eax, dword [0x529214]
sub eax, 0x1388dd
imul eax, dword [ecx + 0xa0]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x10c]
sub eax, dword [0x52916c]
mov ecx, dword [0x4ae154]
add eax, 0x18c93f
xor dword [ecx + 0x48], eax
mov ebx, dword [esi + 0x80]
mov eax, dword [0x4ae154]
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 [0x4ae154]
inc dword [eax + 0x84]
mov eax, dword [0x4ae154]
mov eax, dword [eax + 0xdc]
add eax, dword [esi + 0x70]
xor eax, 0x38
add dword [esi + 0x78], eax
mov eax, dword [esi + 0x90]
xor eax, dword [esi + 0x48]
add dword [esi + 0xc4], eax
mov ecx, dword [0x4ae154]
mov eax, dword [esi + 0xf4]
xor eax, 0xffe6b3e8
add dword [ecx + 0x108], eax
mov ecx, dword [esi + 0xb8]
mov eax, dword [0x529174]
mov byte [eax + ecx], bl
inc dword [0x529174]
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 [0x4ae154]
mov eax, dword [eax + 0x68]
sub eax, dword [esi + 0x118]
add eax, 0x2571e5
xor dword [0x529124], eax
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
imul eax, dword [esi + 0xac]
mov dword [esi + 0xac], eax
cmp ebp, 0x61470
jl 0x40401a
mov eax, dword [esi + 0xdc]
xor eax, 0x11b8
mov dword [esi + 0x80], eax
mov eax, 0xc5050675
sub eax, dword [esi + 0x7c]
add dword [0x529170], eax
mov eax, dword [0x4ae154]
mov dword [eax + 0xb4], 0x4ae158
jmp 0x404269
mov edx, dword [0x4ae154]
mov ebx, dword [esp + 0x28]
mov eax, dword [edx + 0x104]
or eax, dword [esp + 0x1c]
add eax, dword [0x5291d0]
mov ebp, dword [ebx + 0x38]
cmp ebp, eax
jbe 0x404269
lea eax, [ecx - 0x3a61]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffe94
imul eax, eax, 0x3f73
or eax, 0x35f3
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xe4]
or esi, 0x3a86
xor eax, edi
add esi, 0x3a61
imul eax, dword [esp + 0x24]
push esi
push dword [esp + 0x1c]
or dword [edx + 0x48], eax
mov eax, dword [0x4ae154]
mov ecx, dword [eax + 0xa8]
imul eax, dword [ebx + 0x34], 0x3a9d
and ecx, dword [esp + 0x18]
sub eax, dword [0x52916c]
push eax
push ecx
push ebx
call fcn.00405d00
mov ecx, dword [0x5291fc]
add esp, 0x14
xor ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov edx, dword [0x4ae154]
add ebp, 2
mov ecx, dword [edx + 0x104]
or ecx, dword [esp + 0x1c]
add ecx, dword [0x5291d0]
cmp ebp, ecx
ja 0x4041f1
lea eax, [edi + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret