Function at 0x40018d0b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0x198], eax
and dword [esp + 0x24], 0
mov eax, edx
and dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], esi
push edi
push 0x14
pop edx
test eax, eax
je 0x40019441
test ecx, ecx
je 0x40019441
test esi, esi
je 0x40019441
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0xa0], 0x123174bb
mov esi, section..data
mov dword [esp + 0xa4], 0x86521ff8
lea edi, [esp + 0x118]
mov dword [esp + 0xa8], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xac], 0x7966ce12
xor ecx, ecx
mov dword [esp + 0xb0], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0xa0]
xor dword [esp + ecx*4 + 0x118], eax
inc ecx
cmp ecx, ebx
jb 0x40018db1
mov ecx, ebx
mov dword [esp + 0xb4], 0x123174bb
lea esi, [esp + 0x118]
mov dword [esp + 0xb8], 0x86521ff8
lea edi, [esp + 0x190]
mov dword [esp + 0xbc], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0xc0], 0x7966ce12
mov esi, 0x4002603c
mov dword [esp + 0xc4], 0xc5d92014
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0xb4]
xor dword [esp + ecx*4 + 0x12c], eax
inc ecx
cmp ecx, ebx
jb 0x40018e25
mov ecx, ebx
lea esi, [esp + 0x12c]
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x104
call fcn.400164ea
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x40018e6e
mov esi, 0x8007000e
jmp 0x4001947e
lea eax, [ebx + 0x34]
mov dword [esp + 0xc8], 0x123174bb
lea edx, [eax + 0x58]
mov dword [esp + 0xcc], 0x86521ff8
push 0xd
lea ecx, [edx + 0x3c]
mov dword [esp + 0xd4], 0x98d2438b
mov dword [esp + 0x10], ecx
mov esi, 0x40026a40
add ecx, 0x14
mov dword [esp + 0xd8], 0x7966ce12
mov dword [esp + 0x14], ecx
mov edi, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
mov edi, eax
mov esi, dword [0x40026a40]
push 0x16
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push 0xf
pop ecx
push 5
mov dword [eax + 0x30], edx
mov edi, dword [ebx]
mov esi, dword [0x40026a40]
pop edx
push edx
mov edi, dword [edi + 0x30]
mov esi, dword [esi + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
lea edi, [esp + 0x144]
mov ecx, dword [esp + 0x14]
add ecx, 0x14
mov dword [esp + 0xdc], 0xc5d92014
mov eax, dword [eax + 0x30]
mov dword [eax + 0x20], ecx
mov ecx, edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [0x40026a40]
mov esi, dword [eax + 0x30]
mov esi, dword [esi + 0x20]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [esp + edx*4 + 0xc8]
xor dword [esp + ecx*4 + 0x140], eax
inc ecx
cmp ecx, esi
jb 0x40018f24
mov edi, dword [esp + 0x28]
mov ecx, esi
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x140]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], eax
lea edi, [esp + 0x154]
mov esi, dword [0x40026a44]
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0xdc], 0x123174bb
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xe0], 0x86521ff8
xor ecx, ecx
mov dword [esp + 0xe4], 0x98d2438b
mov dword [esp + 0xe8], 0x7966ce12
mov dword [esp + 0xec], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0xdc]
xor dword [esp + ecx*4 + 0x154], eax
inc ecx
cmp ecx, ebx
jb 0x40018fa0
mov edi, dword [esp + 0xc]
lea esi, [esp + 0x154]
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov ebx, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push 5
pop edx
mov dword [ebx + 8], eax
lea edi, [esp + 0x168]
mov esi, dword [0x40026a48]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
push edx
mov dword [esp + 0xf4], 0x123174bb
xor ecx, ecx
mov dword [esp + 0xf8], 0x86521ff8
mov dword [esp + 0xfc], 0x98d2438b
mov dword [esp + 0x100], 0x7966ce12
mov dword [esp + 0x104], 0xc5d92014
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [esp + edx*4 + 0xf0]
xor dword [esp + ecx*4 + 0x168], eax
inc ecx
cmp ecx, esi
jb 0x40019022
mov edi, dword [esp + 0x10]
mov ecx, esi
lea esi, [esp + 0x168]
rep movsd dword es:[edi], dword [esi]
and dword [esp + 0x3c], 0
mov ecx, 0x550
call fcn.400164ea
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4001906e
mov esi, 0x8007000e
push 0x14
pop edx
jmp 0x40019446
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x17c]
add eax, 0x100
mov dword [esp + 0xc], eax
add eax, 0x200
mov dword [esp + 0x20], eax
add eax, 0x14
mov dword [esp + 0x10], eax
push 5
pop edx
lea ebx, [eax + 0x28]
cmp ecx, esi
je 0x400190a7
mov ecx, edx
lea edi, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edi, [eax + 0x14]
lea esi, [esp + 0x17c]
push 0x14
rep movsd dword es:[edi], dword [esi]
pop edx
lea eax, [esp + 0x17c]
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x400190bf
lea esi, [ebx + 0x200]
xor eax, eax
mov edi, esi
lea ecx, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.40020b90
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 8
call fcn.40020c50
mov edx, esi
lea ecx, [esp + 0x40]
call fcn.40020d90
push 0x5c
pop ecx
lea eax, [esp + 0x40]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40019101
and dword [esp + 0x28], ecx
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x190]
sub esp, 0xc
call fcn.4001d04f
push ecx
push esi
push ebx
push 5
pop eax
push eax
push dword [esp + 0x1c]
mov ecx, 0x4002607c
push 0x3c
call fcn.4001d0c4
test eax, eax
je 0x40019433
push 0
mov edx, esi
mov ecx, ebx
call fcn.4001b586
test eax, eax
jne 0x400193b0
mov edx, dword [esi]
lea eax, [esp + 0x104]
push ecx
push edi
push 0x40026acc
push dword [0x40026050]
mov ecx, ebx
push eax
call fcn.40018c25
test eax, eax
je 0x400193b0
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov edx, dword [0x40026050]
push ecx
push 0
push eax
push ecx
push edi
push ecx
lea ecx, [edi + 0x100]
lea eax, [ecx + 0x100]
push eax
push edx
lea eax, [esp + 0x124]
push eax
call fcn.4001b9b9
xor ecx, ecx
mov edx, eax
inc ecx
push ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.40019fc4
test eax, eax
jne 0x400193b0
mov ecx, dword [esp + 0x20]
mov eax, dword [0x40026050]
mov dword [esp + 0x18], eax
cmp ecx, ebx
je 0x40019257
lea edx, [ecx + 0x28]
cmp edx, ebx
je 0x40019257
test eax, eax
je 0x40019257
mov edx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push ebx
lea ecx, [ecx + 0x14]
call fcn.4001ae05
mov ecx, dword [esp + 0x18]
mov dword [ebx + ecx*4], eax
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x40019257
mov eax, dword [esp + 0x20]
mov ecx, ebx
mov edi, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x2c], ecx
lea esi, [eax + 4]
mov edx, dword [esi]
lea eax, [ecx + esi]
push ecx
mov ecx, dword [esp + 0x14]
push edi
push eax
lea ecx, [ecx + 0x14]
call fcn.4001ac3e
mov edx, dword [esp + 0x1c]
lea esi, [esi + 4]
lea ecx, [edi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
cmp edx, edi
jne 0x40019221
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
push ecx
mov edx, edi
lea ecx, [ebx + 0x200]
call fcn.40018b25
test eax, eax
je 0x400193b0
mov edx, dword [0x40026050]
push ecx
push 0
push ebx
push edx
push edi
add edx, edx
mov ecx, ebx
call fcn.40019d29
mov edx, dword [0x40026050]
lea eax, [esp + 0x104]
push ecx
push edi
push 0
push 0x40026acc
push edx
push eax
add edx, edx
mov ecx, ebx
call fcn.4001c9f6
mov ecx, dword [esp + 0xc]
mov edi, dword [0x40026050]
add ecx, 0x100
cmp ecx, ebx
je 0x40019334
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40019334
test edi, edi
je 0x40019334
mov edx, dword [ecx]
push ecx
push edi
push ebx
mov ecx, eax
call fcn.4001ae05
mov dword [ebx + edi*4], eax
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x4001932e
mov edx, dword [esp + 0xc]
mov eax, ebx
mov esi, dword [esp + 0x14]
add edx, 0x100
sub eax, edx
mov dword [esp + 0x2c], eax
lea ecx, [edx + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
add eax, ecx
push ecx
push edi
push eax
mov ecx, esi
call fcn.4001ac3e
mov edx, dword [esp + 0x1c]
lea ecx, [edi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add ecx, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
cmp edx, edi
jne 0x400192fa
mov esi, dword [esp + 0x24]
mov edi, dword [0x40026050]
push ecx
push dword [esp + 0x14]
lea eax, [esp + 0x10c]
mov ecx, ebx
push 0
push 0x40026acc
push edi
push eax
lea edx, [edi + edi]
call fcn.4001c9f6
mov edx, dword [0x40026050]
mov eax, edx
mov edi, dword [esp + 0x20]
test eax, eax
je 0x4001939a
lea ecx, [edi - 4]
lea ecx, [ecx + eax*4]
cmp dword [ecx], 0
jne 0x40019376
sub ecx, 4
sub eax, 1
jne 0x40019369
test eax, eax
je 0x4001939a
mov eax, edx
test eax, eax
je 0x4001939a
lea ecx, [edi + 0x14]
lea ecx, [ecx + eax*4]
add ecx, 0xfffffffc
cmp dword [ecx], 0
jne 0x40019396
sub ecx, 4
sub eax, 1
jne 0x40019389
test eax, eax
jne 0x400193b6
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, 0x3e8
jb 0x40019116
jmp 0x400193b6
mov edx, dword [0x40026050]
mov esi, dword [esp + 0xc]
mov eax, edx
shl eax, 2
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [0x40026050]
add esp, 0xc
shl eax, 2
push eax
lea eax, [esi + 0x100]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x40026a40]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x40026050]
add ecx, ecx
add eax, eax
cmp eax, ecx
ja 0x400193fb
mov eax, ecx
shl eax, 2
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x44]
add esp, 0xc
mov esi, dword [esp + 0x20]
mov edi, eax
mov ebx, dword [esp + 0x24]
push 5
pop edx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
lea edi, [eax + 0x14]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
push 0x14
pop edx
jmp 0x40019446
mov ebx, dword [esp + 0x24]
mov esi, 0x800480d5
jmp 0x40019066
mov esi, 0x80070057
test ebx, ebx
je 0x4001947e
mov eax, dword [ebx]
mov ecx, edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40019454
mov eax, dword [ebx + 4]
mov ecx, edx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40019462
mov eax, dword [ebx + 8]
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x4001946e
mov ecx, ebx
call fcn.400164fd
push 0x14
pop edx
mov ecx, edx
lea eax, [esp + 0x190]
xor ebx, ebx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4001948c
lea eax, [esp + 0x104]
mov byte [eax], bl
inc eax
sub edx, 1
jne 0x4001949b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x400194c1
mov ecx, eax
mov edx, 0x550
mov byte [ecx], bl
inc ecx
sub edx, 1
jne 0x400194b2
mov ecx, eax
call fcn.400164fd
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.400215e0
mov esp, ebp
pop ebp
ret