Function at 0x40018ecd
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 + 0x28], 0
mov eax, edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
push 0x14
pop edi
test eax, eax
je 0x40019670
test ecx, ecx
je 0x40019670
test edx, edx
je 0x40019670
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 0x40018f72
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 0x40018fe6
mov ecx, ebx
lea esi, [esp + 0x12c]
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x104
call fcn.40016660
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x40019036
mov esi, dword [esp + 0xc]
mov ebx, 0x8007000e
push 0x14
pop edi
jmp 0x40019675
lea edx, [ebx + 0x34]
mov dword [esp + 0xc8], 0x123174bb
lea eax, [edx + 0x58]
mov dword [esp + 0xcc], 0x86521ff8
lea ecx, [eax + 0x3c]
mov dword [esp + 0xd0], 0x98d2438b
mov dword [esp + 0x18], ecx
mov esi, 0x40026a40
add ecx, 0x14
mov dword [esp + 0xd4], 0x7966ce12
mov dword [esp + 0xc], ecx
mov edi, ebx
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], edx
mov edi, edx
mov esi, dword [0x40026a40]
push 0x16
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [edx + 0x30], eax
mov edi, dword [ebx]
mov esi, dword [0x40026a40]
push 0xf
pop ecx
mov edi, dword [edi + 0x30]
mov esi, dword [esi + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
lea edi, [esp + 0x140]
mov ecx, dword [esp + 0xc]
add ecx, 0x14
mov dword [esp + 0xd8], 0xc5d92014
push 5
mov eax, dword [eax + 0x30]
mov dword [eax + 0x20], ecx
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]
pop eax
mov ecx, eax
push eax
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 0x400190ea
mov edi, dword [esp + 0x28]
mov ecx, esi
mov eax, dword [esp + 0x18]
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 0x40019166
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x154]
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov ebx, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 5
mov dword [ebx + 8], eax
lea edi, [esp + 0x16c]
mov esi, dword [0x40026a48]
pop eax
mov ecx, eax
mov dword [esp + 0xf0], 0x123174bb
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0xf8], 0x86521ff8
xor ecx, ecx
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 0x400191e8
mov edi, dword [esp + 0xc]
mov ecx, esi
lea esi, [esp + 0x168]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x550
mov dword [esp + 0x18], eax
call fcn.40016660
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x40019237
mov dword [esp + 0x18], 0x8007000e
jmp 0x40019632
lea eax, [esi + 0x100]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
add eax, 0x214
mov dword [esp + 0x30], eax
push 5
lea edx, [eax + 0x14]
lea ebx, [eax + 0x28]
mov dword [esp + 0x30], edx
lea eax, [esp + 0x180]
cmp eax, esi
pop eax
je 0x40019271
mov ecx, eax
lea edi, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea esi, [esp + 0x17c]
mov edi, edx
lea eax, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
push 0x14
pop ecx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40019288
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.40046d53
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push 8
call fcn.40020e20
mov edx, esi
lea ecx, [esp + 0x40]
call fcn.40020f50
push 0x5c
pop ecx
lea eax, [esp + 0x40]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x400192ca
and dword [esp + 0x24], ecx
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
sub esp, 0xc
lea edx, [esi + 0x100]
lea ecx, [esp + 0x19c]
call fcn.4001d1c6
push 0
push edi
push ebx
push 5
pop eax
push eax
lea eax, [esi + 0x100]
mov ecx, 0x4002607c
push eax
push 0x3c
push 4
pop edx
call fcn.4001d23b
test eax, eax
je 0x40019626
push 0
mov edx, edi
mov ecx, ebx
call fcn.4001b7b9
test eax, eax
jne 0x400195aa
mov edx, dword [edi]
lea eax, [esi + 0x300]
push ecx
push eax
push 0x40026acc
push dword [0x40026050]
lea eax, [esp + 0x114]
mov ecx, ebx
push eax
call fcn.40018dee
test eax, eax
je 0x400195aa
mov edx, dword [0x40026050]
lea eax, [esp + 0x34]
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
push esi
push ecx
lea ecx, [esi + 0x100]
lea eax, [ecx + 0x100]
push eax
push edx
lea eax, [esp + 0x124]
push eax
call fcn.4001bbab
xor ecx, ecx
mov edx, eax
inc ecx
push ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.4001a1fc
test eax, eax
jne 0x400195aa
mov eax, dword [0x40026050]
lea ecx, [esi + 0x200]
mov edi, dword [esp + 0x14]
lea edx, [ecx + 0x100]
mov dword [esp + 0x1c], eax
cmp edx, ebx
je 0x40019449
cmp dword [esp + 0x2c], ebx
je 0x40019449
mov ecx, eax
shl ecx, 2
mov dword [esp + 0x10], ecx
push ecx
test eax, eax
jne 0x400193e5
push eax
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x40019449
mov edx, dword [edx]
mov ecx, dword [esp + 0x30]
push eax
push ebx
call fcn.4001b046
mov ecx, dword [esp + 0x10]
mov dword [ecx + ebx], eax
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x1c], eax
je 0x40019449
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
add ecx, 0x100
lea esi, [ecx + 0x104]
mov edx, dword [esi]
lea eax, [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x30]
push edi
push eax
call fcn.4001ae6c
mov edx, dword [esp + 0x20]
lea esi, [esi + 4]
lea ecx, [edi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov dword [esp + 0x20], edx
cmp edx, edi
jne 0x4001941a
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push ecx
mov edx, esi
lea ecx, [ebx + 0x200]
call fcn.40018cea
test eax, eax
je 0x400195aa
mov edx, dword [0x40026050]
push ecx
push 0
push ebx
push edx
push esi
add edx, edx
mov ecx, ebx
call fcn.40019f4b
mov edx, dword [0x40026050]
lea eax, [esp + 0x104]
push ecx
push esi
push 0
push 0x40026acc
push edx
push eax
add edx, edx
mov ecx, ebx
call fcn.4001cb69
mov eax, dword [0x40026050]
lea ecx, [esi + 0x100]
lea edx, [ecx + 0x100]
mov dword [esp + 0x20], eax
cmp edx, ebx
je 0x4001952d
cmp esi, ebx
je 0x4001952d
mov ecx, eax
shl ecx, 2
mov dword [esp + 0x10], ecx
push ecx
test eax, eax
jne 0x400194cc
push eax
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x4001952d
mov edx, dword [edx]
mov ecx, esi
push eax
push ebx
call fcn.4001b046
mov ecx, dword [esp + 0x10]
mov dword [ecx + ebx], eax
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], eax
je 0x4001952d
mov edi, dword [esp + 0x20]
lea ecx, [esi + 0x204]
mov dword [esp + 0x10], ecx
mov edx, dword [ecx]
lea eax, [ecx + 0x13c]
push ecx
push edi
push eax
mov ecx, esi
call fcn.4001ae6c
mov edx, dword [esp + 0x1c]
lea ecx, [edi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
cmp edx, edi
jne 0x400194f9
mov edi, dword [esp + 0x14]
mov edx, dword [0x40026050]
lea eax, [esp + 0x104]
push ecx
push dword [esp + 0x34]
mov ecx, ebx
push 0
push 0x40026acc
push edx
push eax
add edx, edx
call fcn.4001cb69
mov ecx, dword [0x40026050]
mov eax, ecx
test eax, eax
je 0x40019594
lea edx, [eax*4 + 0x100]
add edx, 0x1fc
add edx, esi
cmp dword [edx], 0
jne 0x4001957b
sub edx, 4
sub eax, 1
jne 0x4001956c
jmp 0x40019594
mov edx, dword [esp + 0x30]
mov eax, ecx
lea edx, [edx + eax*4]
add edx, 0xfffffffc
cmp dword [edx], 0
jne 0x400195b0
sub edx, 4
sub eax, 1
jne 0x40019587
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 0x3e8
jb 0x400192df
jmp 0x400195b0
mov ecx, dword [0x40026050]
mov edi, dword [esp + 0x28]
shl ecx, 2
push ecx
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [0x40026050]
lea esi, [edi + 0x100]
add esp, 0xc
shl eax, 2
push eax
push 0
push esi
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 0x400195f3
mov eax, ecx
shl eax, 2
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x48]
add esp, 0xc
add esi, 0x100
mov edi, eax
push 5
pop edx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
lea edi, [eax + 0x14]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
jmp 0x4001962e
mov dword [esp + 0x18], 0x800480d5
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
xor edx, edx
push 0x14
pop edi
mov ecx, edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40019641
mov eax, dword [ebx + 4]
mov ecx, edi
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4001964e
mov eax, dword [ebx + 8]
mov ecx, edi
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4001965b
mov ecx, ebx
call fcn.40016679
mov ebx, dword [esp + 0x18]
jmp 0x40019675
mov ebx, 0x80070057
mov ecx, edi
lea eax, [esp + 0x190]
xor edx, edx
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40019680
lea eax, [esp + 0x104]
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x4001968f
test esi, esi
je 0x400196b1
mov ecx, esi
mov eax, 0x550
mov byte [ecx], dl
inc ecx
sub eax, 1
jne 0x400196a2
mov ecx, esi
call fcn.40016679
mov ecx, dword [esp + 0x1a4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.40021790
mov esp, ebp
pop ebp
ret