Function at 0x400196ce
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 + 0x30], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
mov esi, 0x664
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
push 0x14
pop ecx
test edx, edx
je 0x40019efe
test ebx, ebx
je 0x40019efe
cmp dword [ebp + 0xc], edi
je 0x40019efe
test eax, eax
je 0x40019efe
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0x104], 0x123174bb
mov esi, 0x4002603c
mov dword [esp + 0x108], 0x86521ff8
lea edi, [esp + 0x154]
mov dword [esp + 0x10c], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x110], 0x7966ce12
xor ecx, ecx
mov dword [esp + 0x114], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0x104]
xor dword [esp + ecx*4 + 0x154], eax
inc ecx
cmp ecx, ebx
jb 0x4001977f
mov ecx, ebx
lea esi, [esp + 0x154]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x104
call fcn.40016660
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x400197d4
mov edi, dword [esp + 0x20]
mov ebx, 0x8007000e
push 0x14
pop ecx
mov esi, 0x664
jmp 0x40019f03
lea edx, [ebx + 0x34]
mov dword [esp + 0x118], 0x123174bb
lea eax, [edx + 0x58]
mov dword [esp + 0x11c], 0x86521ff8
lea ecx, [eax + 0x3c]
mov dword [esp + 0x120], 0x98d2438b
mov dword [esp + 0x14], ecx
mov edi, ebx
add ecx, 0x14
mov dword [esp + 0x124], 0x7966ce12
mov dword [esp + 0x24], ecx
mov esi, 0x40026a40
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 + 0x168]
mov ecx, dword [esp + 0x24]
add ecx, 0x14
mov dword [esp + 0x128], 0xc5d92014
push 5
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 + 0x30], 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 + 0x118]
xor dword [esp + ecx*4 + 0x168], eax
inc ecx
cmp ecx, ebx
jb 0x40019886
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x168]
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push 5
pop edx
mov dword [ebx + 4], eax
lea edi, [esp + 0x17c]
mov esi, dword [0x40026a44]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
push edx
mov dword [esp + 0x130], 0x123174bb
xor ecx, ecx
mov dword [esp + 0x134], 0x86521ff8
mov dword [esp + 0x138], 0x98d2438b
mov dword [esp + 0x13c], 0x7966ce12
mov dword [esp + 0x140], 0xc5d92014
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [esp + edx*4 + 0x12c]
xor dword [esp + ecx*4 + 0x17c], eax
inc ecx
cmp ecx, esi
jb 0x40019908
mov edi, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 8], eax
lea edi, [esp + 0x190]
mov esi, dword [0x40026a48]
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0x140], 0x123174bb
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x144], 0x86521ff8
xor ecx, ecx
mov dword [esp + 0x148], 0x98d2438b
mov dword [esp + 0x14c], 0x7966ce12
mov dword [esp + 0x150], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0x140]
xor dword [esp + ecx*4 + 0x190], eax
inc ecx
cmp ecx, ebx
jb 0x40019984
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x190]
mov ecx, ebx
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov ecx, 0x664
mov dword [esp + 0x30], ebx
call fcn.40016660
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x400199d4
mov esi, dword [esp + 0x1c]
mov ebx, 0x8007000e
jmp 0x40019ec2
mov esi, dword [esp + 0xc]
lea eax, [edi + 0x100]
lea edx, [eax + 0x100]
mov dword [esp + 0x38], eax
lea eax, [edx + 0x14]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
add eax, 0x214
mov dword [esp + 0x28], eax
add eax, 0x200
mov dword [esp + 0x2c], eax
add eax, 0x28
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
cmp eax, esi
je 0x40019a1b
push 0xa
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 5
pop eax
mov ecx, eax
lea esi, [esp + 0x40]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea esi, [esp + 0x54]
lea edi, [edx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x68]
cmp eax, esi
je 0x40019a46
push 0xa
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
push 0x14
pop ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov dword [esp + 0xc], eax
call fcn.40016660
mov dword [esp + 0x18], eax
test eax, eax
je 0x40019a9a
push 5
pop edx
mov ecx, edx
lea esi, [esp + 0x68]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push ecx
push dword [esp + 0x10]
mov ecx, eax
push dword [esp + 0x34]
call fcn.4001ad8c
mov ecx, dword [esp + 0x18]
mov eax, ecx
push 0x14
pop edx
mov byte [eax], bl
inc eax
sub edx, 1
jne 0x40019a89
call fcn.40016679
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push 0x14
pop ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 0xc], eax
call fcn.40016660
mov dword [esp + 0x18], eax
test eax, eax
je 0x40019af0
push 5
pop edx
mov edi, eax
lea esi, [esp + 0x7c]
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 + 0x10]
mov ecx, esi
push eax
call fcn.4001ad8c
push 0x14
pop ecx
mov eax, esi
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x40019add
mov ecx, esi
call fcn.40016679
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x90]
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.40020d60
push dword [ebp + 0xc]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x94]
call fcn.40020e20
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x90]
call fcn.40020f50
push 0x5c
pop ecx
lea eax, [esp + 0x90]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x40019b34
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov edx, esi
call fcn.4001b938
test eax, eax
jne 0x40019b57
mov edi, dword [esp + 0x20]
jmp 0x40019ebd
mov edi, dword [0x40026050]
mov eax, edi
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x40019b90
lea edx, [ecx - 4]
lea edx, [edx + eax*4]
cmp dword [edx], ebx
jne 0x40019b90
sub edx, 4
sub eax, 1
jne 0x40019b6d
lea eax, [ecx + 0x14]
mov edx, edi
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp dword [eax], ebx
jne 0x40019b4e
sub eax, 4
sub edx, 1
jne 0x40019b84
push edi
lea edx, [esp + 0xf4]
call fcn.4001a276
test eax, eax
jns 0x40019b4e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xf0]
push edi
call fcn.4001a276
mov edi, dword [esp + 0x20]
test eax, eax
jns 0x40019ebd
mov edx, dword [0x40026050]
lea eax, [esp + 0x3c]
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
push dword [esp + 0x48]
lea eax, [esp + 0x104]
push ecx
mov ecx, dword [esp + 0x28]
push edi
push edx
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
lea ecx, [edi + 0x100]
call fcn.4001a1fc
test eax, eax
jne 0x40019ebd
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [edi + 0x100]
call fcn.40018cea
test eax, eax
je 0x40019ebd
mov ecx, dword [esp + 0x10]
mov eax, dword [0x40026050]
mov dword [esp + 0x18], eax
lea edx, [ecx + 0x14]
cmp edi, edx
je 0x40019ce1
lea ecx, [edi + 0x100]
cmp ecx, edx
je 0x40019c62
mov esi, eax
shl esi, 2
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x40019c68
push dword [esp + 0x14]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0x10]
jmp 0x40019ce1
push ecx
push eax
push edx
mov edx, dword [edi]
call fcn.4001b046
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ecx + edx + 0x14], eax
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], eax
je 0x40019cdf
mov ebx, dword [esp + 0x18]
lea ecx, [edi + 4]
mov dword [esp + 0xc], ecx
lea esi, [edi + 0x100]
mov edx, dword [ecx]
lea eax, [ecx + 0x228]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.4001ae6c
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea ecx, [ebx + edx]
inc edx
mov dword [edi + ecx*4 + 0x14], eax
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
cmp edx, ebx
jne 0x40019c9c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
jmp 0x40019c62
mov ecx, edx
push ecx
lea edx, [edi + 0x100]
push edx
mov edx, dword [0x40026050]
lea eax, [esp + 0xf8]
push 0
push 0x40026acc
push edx
push eax
add edx, edx
lea ecx, [ecx + 0x14]
call fcn.4001cb69
mov eax, dword [esp + 0x10]
mov ecx, 0x4002607c
push 0
push esi
add eax, 0x14
push eax
push dword [0x40026050]
lea eax, [edi + 0x100]
push eax
push 0x3c
push 4
pop edx
call fcn.4001d23b
test eax, eax
je 0x40019ebd
mov edx, dword [esp + 0x28]
mov eax, dword [0x40026050]
mov dword [esp + 0x18], eax
cmp edi, edx
je 0x40019de2
mov ecx, dword [esp + 0x24]
cmp ecx, edx
je 0x40019de2
mov esi, eax
shl esi, 2
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x40019d7b
push dword [esp + 0xc]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x40019de2
push ecx
push eax
push edx
mov edx, dword [edi]
call fcn.4001b046
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [edx + ecx], eax
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
cmp dword [esp + 0x18], eax
je 0x40019de2
mov esi, dword [esp + 0x18]
lea eax, [edi + 4]
mov dword [esp + 0x34], eax
mov ebx, ecx
mov edi, eax
mov edx, dword [edi]
lea eax, [edi + 0x428]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push eax
call fcn.4001ae6c
mov edx, dword [esp + 0xc]
lea edi, [edi + 4]
lea ecx, [esi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov dword [esp + 0xc], edx
cmp edx, esi
jne 0x40019dac
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [0x40026050]
lea eax, [edi + 0x100]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push 0
push 0x40026acc
push edx
lea eax, [esp + 0x104]
add edx, edx
push eax
call fcn.4001cb69
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov edx, esi
call fcn.4001b938
test eax, eax
je 0x40019ebd
mov ecx, dword [esp + 0x2c]
lea eax, [edi + 0x100]
push 0
push esi
push dword [esp + 0x30]
push dword [0x40026050]
push eax
push 0
push 4
pop edx
call fcn.4001d23b
test eax, eax
je 0x40019ebd
mov eax, dword [esp + 0x10]
push 0
push 0
add eax, 0x14
push esi
push 1
push eax
lea edx, [eax + 0x200]
mov ecx, eax
call fcn.4001b1fc
mov ecx, dword [esp + 0x10]
mov edx, esi
push 0
add ecx, 0x14
call fcn.4001b7b9
test eax, eax
jne 0x40019ebd
mov edx, dword [esi]
lea eax, [edi + 0x100]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 0x40026acc
push dword [0x40026050]
lea eax, [esp + 0x100]
push eax
lea ecx, [ecx + 0x14]
call fcn.40018dee
test eax, eax
je 0x40019ebd
push dword [0x40026050]
mov ecx, dword [esp + 0x28]
lea edx, [edi + 0x100]
call fcn.4001a276
test eax, eax
je 0x40019ec2
mov ebx, 0x800480d5
mov eax, dword [esi]
push 0x14
pop ecx
mov edx, ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x40019ecf
mov eax, dword [esi + 4]
mov edx, ecx
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x40019edd
mov eax, dword [esi + 8]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40019ee9
mov ecx, esi
call fcn.40016679
jmp 0x400197c7
mov ebx, 0x80070057
lea eax, [esp + 0xf0]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40019f0a
test edi, edi
je 0x40019f29
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x40019f19
mov ecx, edi
call fcn.40016679
mov ecx, dword [esp + 0x1a4]
not ebx
shr ebx, 0x1f
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.40021790
mov esp, ebp
pop ebp
ret