Function at 0x400185b9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x98], eax
xor ebx, ebx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], 0xb4
push 0x14
pop esi
test eax, eax
je 0x40018ab1
test ecx, ecx
je 0x40018ab1
test edx, edx
je 0x40018ab1
mov ecx, 0x104
call fcn.400164ea
mov ebx, eax
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x40018634
mov eax, 0x8007000e
jmp 0x40018b14
lea eax, [ebx + 0x34]
mov dword [ebp - 0x18], 0x123174bb
lea edx, [eax + 0x58]
mov dword [ebp - 0x14], 0x86521ff8
push 0xd
lea ecx, [edx + 0x3c]
mov dword [ebp - 0x10], 0x98d2438b
mov dword [ebp - 0xa4], ecx
mov esi, 0x40026a40
add ecx, 0x14
mov dword [ebp - 0xc], 0x7966ce12
mov dword [ebp - 0xa0], 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]
mov dword [ebp - 8], 0xc5d92014
mov edi, dword [edi + 0x30]
mov esi, dword [esi + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
lea edi, [ebp - 0x54]
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
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 [ebp - 0xac], eax
pop eax
mov ecx, eax
mov eax, dword [0x40026a40]
push 5
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 [ebp + edx*4 - 0x18]
xor dword [ebp + ecx*4 - 0x54], eax
inc ecx
cmp ecx, esi
jb 0x400186db
mov edi, dword [ebp - 0xac]
mov ecx, esi
mov eax, dword [ebp - 0xa4]
lea esi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], eax
lea edi, [ebp - 0x68]
mov esi, dword [0x40026a44]
push 5
pop ebx
mov ecx, ebx
mov dword [ebp - 0x2c], 0x123174bb
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], 0x86521ff8
xor ecx, ecx
mov dword [ebp - 0x24], 0x98d2438b
mov dword [ebp - 0x20], 0x7966ce12
mov dword [ebp - 0x1c], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [ebp + edx*4 - 0x2c]
xor dword [ebp + ecx*4 - 0x68], eax
inc ecx
cmp ecx, ebx
jb 0x40018739
mov edi, dword [ebp - 0xa4]
lea esi, [ebp - 0x68]
mov eax, dword [ebp - 0xa0]
mov ecx, ebx
mov ebx, dword [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
push 5
mov dword [ebx + 8], eax
lea edi, [ebp - 0x7c]
mov esi, dword [0x40026a48]
pop eax
mov ecx, eax
mov dword [ebp - 0x40], 0x123174bb
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x3c], 0x86521ff8
xor ecx, ecx
mov dword [ebp - 0x38], 0x98d2438b
mov dword [ebp - 0x34], 0x7966ce12
mov dword [ebp - 0x30], 0xc5d92014
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [ebp + edx*4 - 0x40]
xor dword [ebp + ecx*4 - 0x7c], eax
inc ecx
cmp ecx, esi
jb 0x4001879f
mov edi, dword [ebp - 0xa0]
mov ecx, esi
lea esi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xb4]
and dword [ebp - 0x9c], 0
call fcn.400164ea
mov edi, eax
mov dword [ebp - 0xa0], edi
test edi, edi
jne 0x400187ef
push 0x14
mov dword [ebp - 0x9c], 0x8007000e
pop esi
jmp 0x40018abb
mov esi, dword [ebp - 0x98]
lea eax, [edi + 0x14]
mov dword [ebp - 0xb0], eax
add eax, 0x28
mov dword [ebp - 0xa4], eax
add eax, 0x28
mov dword [ebp - 0xa8], eax
add eax, 0x28
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x90]
push 5
cmp eax, esi
pop eax
je 0x40018836
mov ecx, eax
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xa0]
mov ecx, eax
lea esi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
push 0x14
pop esi
mov ecx, esi
lea eax, [ebp - 0x90]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4001884b
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x108]
cmp ecx, eax
je 0x40018872
push 0x50
push eax
mov eax, ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.400164ea
mov dword [ebp - 0x98], eax
test eax, eax
je 0x400188cc
push 5
pop edx
mov ecx, edx
lea esi, [ebp - 0x108]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push ecx
push dword [ebp - 0x94]
mov ecx, eax
push dword [ebp - 0xb0]
call fcn.40046f81
mov ecx, dword [ebp - 0x98]
mov eax, ecx
push 0x14
pop esi
mov edx, esi
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x400188be
call fcn.400164fd
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.400164ea
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4001892c
push 5
pop edx
mov edi, eax
lea esi, [ebp - 0xf4]
mov eax, dword [ebp - 0xb0]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x98]
add eax, 0x14
push ecx
push dword [ebp - 0x94]
mov ecx, edi
push eax
call fcn.4001ab5d
push 0x14
pop esi
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4001891c
mov ecx, edi
call fcn.400164fd
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.400164ea
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40018986
push 5
pop edx
mov ecx, edx
lea esi, [ebp - 0xe0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push ecx
push dword [ebp - 0x94]
mov ecx, eax
push dword [ebp - 0xa4]
call fcn.4001ab5d
mov ecx, dword [ebp - 0x98]
mov eax, ecx
push 0x14
pop esi
mov edx, esi
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x40018978
call fcn.400164fd
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.400164ea
mov dword [ebp - 0x98], eax
test eax, eax
je 0x400189e6
push 5
pop edx
mov edi, eax
lea esi, [ebp - 0xcc]
mov eax, dword [ebp - 0xa4]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x98]
add eax, 0x14
push ecx
push dword [ebp - 0x94]
mov ecx, edi
push eax
call fcn.4001ab5d
push 0x14
pop esi
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x400189d6
mov ecx, edi
call fcn.400164fd
mov ecx, dword [ebp - 0xb0]
sub esp, 0xc
mov edx, ebx
call fcn.4001b721
mov edi, dword [ebp - 0xa0]
test eax, eax
jne 0x40018a0f
mov dword [ebp - 0x9c], 0x800480d5
jmp 0x40018abb
push ecx
push ebx
push dword [ebp - 0xa8]
lea ecx, [edi + 0x14]
push 5
pop eax
push eax
push edi
push 0
call fcn.4001d0c4
test eax, eax
je 0x40018a00
mov edx, dword [ebp - 0xa8]
push ecx
push ecx
mov ecx, dword [ebp - 0xa4]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0xac]
call fcn.4001afb6
test eax, eax
je 0x40018a00
push 0x28
pop ecx
call fcn.400164ea
mov dword [ebp - 0x94], eax
test eax, eax
je 0x40018a00
push ecx
mov ecx, dword [ebx]
lea esi, [eax + 0x14]
mov edx, esi
push dword [ecx + 0x30]
mov ecx, dword [ebp - 0xac]
call fcn.4001a846
push 5
pop eax
mov ecx, eax
mov eax, dword [ebp - 0x94]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xb8]
cmp edi, eax
je 0x40018a91
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x28
mov ecx, eax
pop edx
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x40018a96
mov ecx, eax
call fcn.400164fd
mov edi, dword [ebp - 0xa0]
push 0x14
pop esi
jmp 0x40018abb
mov dword [ebp - 0x9c], 0x80070057
test ebx, ebx
je 0x40018af2
mov eax, dword [ebx]
mov ecx, esi
xor edx, edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40018acb
mov eax, dword [ebx + 4]
mov ecx, esi
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40018ad8
mov eax, dword [ebx + 8]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x40018ae3
mov ecx, ebx
call fcn.400164fd
test edi, edi
je 0x40018b0e
mov ecx, dword [ebp - 0xb4]
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40018afe
mov ecx, edi
call fcn.400164fd
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret