Function at 0x400194d8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [ebp + 0x10]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], eax
push esi
push edi
push 0x14
pop edx
test ecx, ecx
je 0x40019d1b
test ebx, ebx
je 0x40019d1b
cmp dword [ebp + 0xc], 0
je 0x40019d1b
test eax, eax
je 0x40019d1b
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0x10c], 0x123174bb
mov esi, 0x4002603c
mov dword [esp + 0x110], 0x86521ff8
lea edi, [esp + 0x15c]
mov dword [esp + 0x114], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x118], 0x7966ce12
xor ecx, ecx
mov dword [esp + 0x11c], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0x10c]
xor dword [esp + ecx*4 + 0x15c], eax
inc ecx
cmp ecx, ebx
jb 0x4001958a
mov ecx, ebx
lea esi, [esp + 0x15c]
lea edi, [esp + 0xf8]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x104
call fcn.400164ea
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x400195d3
mov ebx, 0x8007000e
jmp 0x40019815
lea eax, [ebx + 0x34]
mov dword [esp + 0x120], 0x123174bb
lea edx, [eax + 0x58]
mov dword [esp + 0x124], 0x86521ff8
push 0xd
lea ecx, [edx + 0x3c]
mov dword [esp + 0x12c], 0x98d2438b
mov dword [esp + 0x14], ecx
mov edi, ebx
add ecx, 0x14
mov dword [esp + 0x130], 0x7966ce12
mov dword [esp + 0x24], ecx
mov esi, 0x40026a40
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 [esp + 0x134], 0xc5d92014
mov edi, dword [edi + 0x30]
mov esi, dword [esi + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
lea edi, [esp + 0x174]
mov ecx, dword [esp + 0x24]
add ecx, 0x14
mov eax, dword [eax + 0x30]
mov dword [eax + 0x20], ecx
mov eax, dword [ebx]
pop ebx
mov ecx, ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x3c], 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
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0x120]
xor dword [esp + ecx*4 + 0x170], eax
inc ecx
cmp ecx, ebx
jb 0x40019687
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x170]
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov ebx, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 5
pop edx
mov dword [ebx + 4], eax
lea edi, [esp + 0x184]
mov esi, dword [0x40026a44]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
push edx
mov dword [esp + 0x138], 0x123174bb
xor ecx, ecx
mov dword [esp + 0x13c], 0x86521ff8
mov dword [esp + 0x140], 0x98d2438b
mov dword [esp + 0x144], 0x7966ce12
mov dword [esp + 0x148], 0xc5d92014
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [esp + edx*4 + 0x134]
xor dword [esp + ecx*4 + 0x184], eax
inc ecx
cmp ecx, esi
jb 0x40019709
mov edi, dword [esp + 0x10]
mov ecx, esi
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x184]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 8], eax
lea edi, [esp + 0x198]
mov esi, dword [0x40026a48]
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0x148], 0x123174bb
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14c], 0x86521ff8
xor ecx, ecx
mov dword [esp + 0x150], 0x98d2438b
mov dword [esp + 0x154], 0x7966ce12
mov dword [esp + 0x158], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0x148]
xor dword [esp + ecx*4 + 0x198], eax
inc ecx
cmp ecx, ebx
jb 0x40019785
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x198]
mov ecx, ebx
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov ecx, 0x664
mov dword [esp + 0x3c], ebx
call fcn.400164ea
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x40019863
mov esi, dword [esp + 0x14]
mov ebx, 0x8007000e
push 0x14
pop edx
test esi, esi
je 0x40019815
mov eax, dword [esi]
mov ecx, edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x400197e5
mov eax, dword [esp + 0x14]
mov esi, edx
mov ecx, dword [eax + 4]
mov byte [ecx], 0
inc ecx
sub esi, 1
jne 0x400197f7
mov ecx, edx
mov edx, dword [eax + 8]
mov byte [edx], 0
inc edx
sub ecx, 1
jne 0x40019805
mov ecx, eax
call fcn.400164fd
push 0x14
lea eax, [esp + 0xfc]
pop ecx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4001981f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40019847
mov ecx, eax
mov edx, 0x664
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x40019837
mov ecx, eax
call fcn.400164fd
mov ecx, dword [esp + 0x1ac]
not ebx
shr ebx, 0x1f
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.400215e0
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
lea edi, [eax + 0x100]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x48]
add eax, 0x214
mov dword [esp + 0x28], eax
add eax, 0x200
mov dword [esp + 0x2c], eax
add eax, 0x28
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x400198b1
push 0x28
push eax
mov eax, ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 5
pop eax
mov ecx, eax
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x5c]
mov ecx, eax
mov eax, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x70]
cmp ecx, eax
je 0x400198e2
push 0x28
push eax
mov eax, ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 0x14]
push 0x14
pop ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x34], eax
call fcn.400164ea
mov dword [esp + 0x18], eax
test eax, eax
je 0x40019936
push 5
pop edx
mov ecx, edx
lea esi, [esp + 0x70]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push ecx
push dword [esp + 0x38]
mov ecx, eax
push dword [esp + 0x34]
call fcn.4001ab5d
mov ecx, dword [esp + 0x18]
mov eax, ecx
push 0x14
pop edx
mov byte [eax], bl
inc eax
sub edx, 1
jne 0x40019925
call fcn.400164fd
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push 0x14
pop ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x34], eax
call fcn.400164ea
mov dword [esp + 0x18], eax
test eax, eax
je 0x4001998f
push 5
pop edx
mov edi, eax
lea esi, [esp + 0x84]
mov eax, dword [esp + 0x2c]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
add eax, 0x14
push ecx
push dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.4001ab5d
push 0x14
pop ecx
mov eax, esi
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4001997c
mov ecx, esi
call fcn.400164fd
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x98]
xor eax, eax
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
push dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x9c]
call fcn.40020c50
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x98]
call fcn.40020d90
push 0x5c
pop ecx
lea eax, [esp + 0x98]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x400199d3
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov edx, esi
call fcn.4001b721
test eax, eax
jne 0x400199f7
mov ebx, 0x800480d5
jmp 0x400197d4
mov edi, dword [0x40026050]
mov eax, edi
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x40019a1d
lea edx, [ecx - 4]
lea edx, [edx + eax*4]
cmp dword [edx], ebx
jne 0x40019a19
sub edx, 4
sub eax, 1
jne 0x40019a0d
test eax, eax
jne 0x40019a3f
mov eax, edi
test eax, eax
je 0x40019a3f
lea edx, [eax*4 + 0x14]
add edx, 0xfffffffc
add edx, ecx
cmp dword [edx], ebx
jne 0x40019a3b
sub edx, 4
sub eax, 1
jne 0x40019a2f
test eax, eax
jne 0x400199ed
push edi
lea edx, [esp + 0xfc]
call fcn.4001a038
test eax, eax
jns 0x400199ed
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xf8]
push edi
call fcn.4001a038
test eax, eax
jns 0x400199ed
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x40]
mov edx, dword [0x40026050]
push ecx
push 0
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x108]
push ecx
push ecx
mov ecx, dword [esp + 0x34]
push edi
push edx
push eax
call fcn.4001b9b9
xor ecx, ecx
mov edx, eax
inc ecx
push ecx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi + 0x100]
call fcn.40019fc4
test eax, eax
jne 0x400199ed
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [edi + 0x100]
call fcn.40018b25
test eax, eax
je 0x400199ed
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 0x100]
mov eax, dword [0x40026050]
add edx, 0x14
mov dword [esp + 0x10], eax
cmp edi, edx
je 0x40019b7e
cmp ecx, edx
je 0x40019b7e
test eax, eax
je 0x40019b7e
push ecx
push eax
push edx
mov edx, dword [edi]
lea ecx, [edi + 0x100]
call fcn.4001ae05
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [edx + ecx*4 + 0x14], eax
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
cmp ecx, eax
je 0x40019b73
lea eax, [edx + 0x14]
mov esi, ecx
sub eax, edi
lea ebx, [edi + 4]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov edx, dword [ebx]
add eax, ebx
push ecx
push esi
push eax
mov ecx, edi
call fcn.4001ac3e
mov edx, dword [esp + 0x18]
add ebx, 4
mov edi, dword [esp + 0x1c]
lea ecx, [esi + edx]
inc edx
mov dword [edi + ecx*4 + 0x14], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edx
cmp edx, esi
jne 0x40019b36
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, dword [0x40026050]
lea ecx, [edi + 0x100]
push ecx
push ecx
push 0
push 0x40026acc
push eax
lea ecx, [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [eax + eax]
add ecx, 0x14
call fcn.4001c9f6
mov eax, dword [esp + 0x1c]
push ecx
push esi
add eax, 0x14
mov ecx, 0x4002607c
push eax
push dword [0x40026050]
lea eax, [edi + 0x100]
push eax
push 0x3c
call fcn.4001d0c4
test eax, eax
je 0x400199ed
mov edx, dword [esp + 0x28]
mov eax, dword [0x40026050]
mov dword [esp + 0x18], eax
cmp edi, edx
je 0x40019c4d
mov ecx, dword [esp + 0x30]
cmp ecx, edx
je 0x40019c4d
test eax, eax
je 0x40019c4d
push ecx
push eax
push edx
mov edx, dword [edi]
call fcn.4001ae05
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [edx + ecx*4], eax
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
cmp ecx, eax
je 0x40019c48
mov eax, edx
lea ebx, [edi + 4]
sub eax, edi
mov esi, ecx
mov dword [esp + 0x38], eax
mov edi, edx
mov edx, dword [ebx]
add eax, ebx
push ecx
mov ecx, dword [esp + 0x34]
push esi
push eax
call fcn.4001ac3e
mov edx, dword [esp + 0x10]
add ebx, 4
lea ecx, [esi + edx]
inc edx
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edx
cmp edx, esi
jne 0x40019c16
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov eax, dword [0x40026050]
mov edi, dword [esp + 0x24]
lea edx, [eax + eax]
push ecx
push edi
push 0
push 0x40026acc
push eax
lea ecx, [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.4001c9f6
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov edx, esi
call fcn.4001b721
test eax, eax
je 0x400199ed
push ecx
mov ecx, dword [esp + 0x30]
push esi
push dword [esp + 0x30]
push dword [0x40026050]
push edi
push 0
call fcn.4001d0c4
test eax, eax
je 0x400199ed
mov edi, dword [esp + 0x1c]
push ecx
push ecx
add edi, 0x14
push esi
push 1
push edi
lea edx, [edi + 0x200]
mov ecx, edi
call fcn.4001afb6
push 0
mov edx, esi
mov ecx, edi
call fcn.4001b586
test eax, eax
jne 0x400199ed
mov edx, dword [esi]
lea eax, [esp + 0xf8]
push ecx
push dword [esp + 0x28]
mov ecx, edi
push 0x40026acc
push dword [0x40026050]
push eax
call fcn.40018c25
test eax, eax
je 0x400199ed
push dword [0x40026050]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
call fcn.4001a038
test eax, eax
je 0x400197d4
jmp 0x400199ed
mov esi, dword [esp + 0x14]
mov ebx, 0x80070057
jmp 0x400197d7