Function at 0x40017b64
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40025d24]
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 0x4001805c
test ecx, ecx
je 0x4001805c
test edx, edx
je 0x4001805c
mov ecx, 0x104
call fcn.40015bca
mov ebx, eax
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x40017bdf
mov eax, 0x8007000e
jmp 0x400180bf
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, 0x40025a40
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 [0x40025a40]
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 [0x40025a40]
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 [0x40025a40]
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 0x40017c86
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 [0x40025a44]
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 0x40017ce4
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 [0x40025a48]
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 0x40017d4a
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.40015bca
mov edi, eax
mov dword [ebp - 0xa0], edi
test edi, edi
jne 0x40017d9a
push 0x14
mov dword [ebp - 0x9c], 0x8007000e
pop esi
jmp 0x40018066
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 0x40017de1
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 0x40017df6
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x108]
cmp ecx, eax
je 0x40017e1d
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.40015bca
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40017e77
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.4001a195
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 0x40017e69
call fcn.40015bdd
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.40015bca
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40017ed7
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.4001a195
push 0x14
pop esi
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40017ec7
mov ecx, edi
call fcn.40015bdd
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.40015bca
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40017f31
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.4001a195
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 0x40017f23
call fcn.40015bdd
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], eax
call fcn.40015bca
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40017f91
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.4001a195
push 0x14
pop esi
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40017f81
mov ecx, edi
call fcn.40015bdd
mov ecx, dword [ebp - 0xb0]
sub esp, 0xc
mov edx, ebx
call fcn.4001acfe
mov edi, dword [ebp - 0xa0]
test eax, eax
jne 0x40017fba
mov dword [ebp - 0x9c], 0x800480d5
jmp 0x40018066
push ecx
push ebx
push dword [ebp - 0xa8]
lea ecx, [edi + 0x14]
push 5
pop eax
push eax
push edi
push 0
call fcn.4001c66d
test eax, eax
je 0x40017fab
mov edx, dword [ebp - 0xa8]
push ecx
push ecx
mov ecx, dword [ebp - 0xa4]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0xac]
call fcn.4001a5d6
test eax, eax
je 0x40017fab
push 0x28
pop ecx
call fcn.40015bca
mov dword [ebp - 0x94], eax
test eax, eax
je 0x40017fab
push ecx
mov ecx, dword [ebx]
lea esi, [eax + 0x14]
mov edx, esi
push dword [ecx + 0x30]
mov ecx, dword [ebp - 0xac]
call fcn.40019e94
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 0x4001803c
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 0x40018041
mov ecx, eax
call fcn.40015bdd
mov edi, dword [ebp - 0xa0]
push 0x14
pop esi
jmp 0x40018066
mov dword [ebp - 0x9c], 0x80070057
test ebx, ebx
je 0x4001809d
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 0x40018076
mov eax, dword [ebx + 4]
mov ecx, esi
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40018083
mov eax, dword [ebx + 8]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x4001808e
mov ecx, ebx
call fcn.40015bdd
test edi, edi
je 0x400180b9
mov ecx, dword [ebp - 0xb4]
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x400180a9
mov ecx, edi
call fcn.40015bdd
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret