Function at 0x40181c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x2c]
add esi, 0xffffff4a
mov ecx, edi
mov dword [esp + 0x10], esi
xor ecx, 0xa07
lea eax, [edi - 0x5f9]
mov dword [esp + 0x2c], eax
lea ebp, [edi + 0x71c]
mov eax, dword [esp + 0x34]
lea ebx, [edi + 0x5be]
add eax, 0xffffff2b
mov dword [esp + 0x1c], ebp
mov edx, ebx
mov dword [esp + 0x24], edx
cmp eax, ebp
je 0x401d22
mov eax, ecx
xor eax, 0x213
cmp esi, eax
mov esi, dword [esp + 0x28]
jle 0x401a66
mov eax, edi
xor eax, 0xf
cmp dword [esp + 0x10], eax
je 0x401962
cmp dword [0x72a2b8], 0x15ded
mov eax, dword [0x72a2b0]
cmovb eax, dword [0x72a2d4]
mov dword [0x72a2b0], eax
cmp dword [esi + 0x60], 0x11402
jb 0x4018bd
mov eax, dword [esi + 8]
add dword [esi + 0xe0], eax
xor ebx, 0x6f1
lea eax, [ecx - 0xd7]
push ebx
push eax
mov eax, dword [esp + 0x34]
add eax, 0x4c8
push eax
lea eax, [ecx + 0x405]
push eax
push esi
lea eax, [edx - 0xdc9]
push eax
push ebp
call fcn.0041a8a7
mov ebx, dword [esi + 0x74]
add esp, 0x1c
mov dword [esp + 0x24], eax
cmp ebx, dword [esi + 0x30]
je 0x401917
mov ecx, dword [0x70c18c]
mov edx, dword [ecx + 0xb4]
mov ecx, 0x1be44b
xor edx, dword [esi + 0x70]
sub ecx, edx
add dword [esi + 0x118], ecx
jmp 0x40191e
xor dword [esi + 0x44], 0x3018f
cmp dword [0x72a2f0], 0x129
ja 0x40193d
mov eax, dword [esi + 0x110]
add eax, 0xffd2c49e
add eax, ebx
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0x70]
jb 0x401a66
mov eax, 0xbfeff3ed
sub eax, dword [esi + 0xe8]
add dword [esi + 0x98], eax
jmp 0x401a66
mov eax, dword [0x70c18c]
mov edx, dword [esi + 0xa4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0xc0]
imul ecx, dword [eax + 0x50]
or ecx, 0x3270
cmp edx, ecx
ja 0x401a66
mov eax, dword [esp + 0x10]
mov ecx, eax
or ecx, 0x374c
mov dword [esp + 0x10], ecx
lea ecx, [eax - 0x356d]
and ecx, dword [esp + 0x2c]
imul eax, ebx, 0x317e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x10c]
mov eax, edi
xor eax, 0x3226
imul eax, ecx
cmp ecx, eax
jne 0x4019e7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [esi + 0x74]
add eax, edi
add dword [esi + 0x134], eax
mov eax, dword [esp + 0x24]
xor eax, ebp
sub eax, 0x380f
or dword [esi + 0x80], eax
mov edi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x124]
mov edx, dword [esi + 0x48]
imul eax, ebx
or edx, dword [esp + 0x2c]
push esi
xor dword [esi + 0x74], eax
mov eax, dword [0x72a264]
imul ecx, dword [0x72a244]
imul eax, ebx
or ecx, dword [0x72a30c]
push eax
push dword [esp + 0x1c]
mov eax, ebp
sub eax, dword [esp + 0x30]
xor eax, 0x389c
push eax
push ecx
push dword [esp + 0x2c]
push edx
call fcn.0041a3f3
mov edx, dword [esp + 0x50]
add esp, 0x1c
mov dword [esp + 0x24], eax
inc edx
mov eax, dword [0x70c18c]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0xc0]
imul ecx, dword [eax + 0x50]
or ecx, 0x3270
cmp edx, ecx
jbe 0x4019b1
mov dword [esi + 0xd0], 0x431020
xor ebx, ebx
mov eax, dword [esi + 0xd0]
movzx ecx, byte [esi + 0x98]
push 0x46
movzx edx, byte [eax + ebx]
add ebx, 4
mov eax, dword [0x70c18c]
imul edx, ecx
mov ecx, dword [eax + 0xbc]
mov eax, dword [esi + 0xd4]
mov byte [ecx + eax], dl
mov eax, dword [0x70c18c]
inc dword [eax + 0xbc]
mov ecx, dword [0x70c18c]
mov eax, dword [0x72a2c8]
xor eax, 0xfff54e18
imul eax, dword [ecx + 0x110]
mov dword [ecx + 0x110], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x100]
add ecx, 0xffd5d2d1
add eax, ecx
or dword [0x72a290], eax
mov eax, dword [0x70c18c]
mov ecx, dword [eax + 0x74]
sub ecx, 0x15ed16
imul ecx, dword [esi + 0x10c]
mov dword [esi + 0x10c], ecx
mov eax, dword [0x70c18c]
sub ecx, dword [eax + 0x58]
sub ecx, dword [esi + 0x94]
add ecx, 0x10
mov dword [esi + 0x10c], ecx
mov eax, dword [0x70c18c]
mov ecx, dword [eax + 0x7c]
mov eax, dword [esi + 0x80]
add ecx, 0xfff88ba7
add eax, ecx
imul eax, dword [esi + 0x7c]
mov dword [esi + 0x7c], eax
mov eax, 0x858b0
sub eax, dword [esi + 0x70]
sub eax, dword [0x72a1fc]
mov ecx, dword [0x70c18c]
add dword [ecx + 0x80], eax
xor eax, eax
inc eax
sub eax, dword [esi + 0x134]
add dword [esi + 0xa4], eax
mov eax, dword [0x70c18c]
pop ecx
sub ecx, dword [eax + 0x9c]
add dword [esi + 0x94], ecx
mov eax, dword [0x72a284]
mov edx, dword [0x70c18c]
add eax, 0xffdcbda3
add eax, dword [0x72a2b4]
add dword [edx + 0x60], eax
mov eax, dword [0x72a264]
add eax, 0xfffffff0
add eax, dword [esi + 0x128]
add dword [esi + 0x7c], eax
cmp ebx, 0x1ea6b0
jl 0x401a72
mov eax, dword [0x70c18c]
mov dword [eax + 0x98], 0x914c1bad
cmp dword [esi + 0x30], 0x4158
je 0x401bc0
mov dword [esi + 0xd0], section..data
xor ebp, ebp
mov eax, dword [0x72a2a0]
mov ecx, dword [esi + 0xd4]
mov ebx, dword [eax + ebp]
add ebp, 4
imul ebx, dword [0x72a268]
mov eax, dword [esi + 0xbc]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [esi + 0xbc]
mov ecx, dword [esi + 0xbc]
mov eax, dword [esi + 0xd4]
mov byte [ecx + eax], bl
inc dword [esi + 0xbc]
mov eax, dword [0x72a274]
add eax, 0xffffff9f
add eax, dword [esi + 0x38]
xor dword [esi + 0x9c], eax
mov eax, dword [esi + 0x44]
xor eax, dword [esi + 0x60]
xor eax, 0xdc876
add dword [esi + 0x60], eax
mov eax, dword [0x72a304]
xor eax, 1
sub dword [0x72a214], eax
mov eax, dword [esi + 0x134]
sub eax, dword [0x72a2d0]
add eax, 0x1ba74f
imul eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [0x70c18c]
mov eax, dword [eax + 0x30]
sub dword [esi + 0x70], eax
mov eax, dword [0x70c18c]
mov ecx, dword [0x72a284]
sub ecx, dword [eax + 0x24]
mov eax, dword [0x72a1f4]
add eax, 0xffe40887
add eax, ecx
mov dword [0x72a1f4], eax
mov eax, dword [esi + 0xe8]
xor dword [esi + 0x134], eax
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0xb4]
xor eax, 0x1bf786
imul eax, dword [esi + 0xc0]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x10c]
sub eax, 0x1597d6
or dword [esi + 0x7c], eax
cmp ebp, 0xd2e10
jl 0x401bc2
push dword [0x70c18c]
mov ebp, dword [esp + 0x20]
mov eax, ebp
mov ecx, dword [esp + 0x28]
xor eax, 0x72a7
push eax
mov eax, ebp
xor eax, 0x78ae
push eax
push ecx
lea eax, [edi - 0x645]
push eax
lea eax, [ebp - 0x7dd]
push eax
lea eax, [ecx + 0x991]
push eax
call fcn.004010c0
mov eax, dword [esi + 0x74]
add esp, 0x1c
mov ecx, dword [0x70c18c]
cmp eax, dword [esi + 0xe8]
jne 0x401d11
mov eax, dword [ecx + 0x10c]
xor dword [ecx + 0xd8], eax
jmp 0x401d22
mov eax, dword [esi + 0xa4]
add eax, 0x3f9a2
xor dword [ecx + 0x98], eax
lea eax, [edi - 0x7c2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret