Function at 0x4001a5d6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, edx
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov ebx, dword [edx]
mov dword [ebp - 0x34], ebx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebx + 0x14]
inc edi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
lea eax, [eax + ecx*4]
mov dword [ebp - 0x30], eax
lea ebx, [esi + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
lea eax, [eax + ecx*4]
imul ecx, ecx, 3
mov dword [ebp - 0x2c], eax
add ecx, dword [edx + 0x24]
shl ecx, 2
call fcn.40015bca
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4001a642
mov dword [0x40026368], 7
xor eax, eax
jmp 0x4001ab89
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*4]
mov dword [ebp - 4], eax
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
lea eax, [eax + ecx*4]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x14], edi
je 0x4001a662
cmp dword [ebp - 0x28], 2
jl 0x4001a66d
cmp dword [ebp + 0xc], edi
je 0x4001a67b
cmp dword [ebp + 0xc], 0xffffffff
je 0x4001a67b
and dword [ebp - 0x20], 0
mov dword [0x40026368], 5
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
push 0
call fcn.4001ab90
test eax, eax
je 0x4001a6b2
cmp dword [ebp - 0x20], 0
je 0x4001ab7d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
shl eax, 3
push eax
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4001ab7f
mov edx, dword [ebp + 0x10]
mov ecx, esi
push 0
call fcn.4001ab90
test eax, eax
je 0x4001a700
cmp dword [ebp + 0xc], edi
jne 0x4001a6e1
cmp dword [ebp - 0x20], 0
je 0x4001ab7d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
shl eax, 3
push eax
push dword [ebp - 0x14]
jmp 0x4001a6a2
cmp dword [ebp - 0x20], 0
je 0x4001ab7d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
call fcn.40045dbd
jmp 0x4001ab79
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4001a77e
cmp dword [ebp - 0x20], 0
je 0x4001ab7d
mov eax, dword [ebx]
shl eax, 2
push eax
push dword [ebp - 0x30]
push dword [ebp - 4]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x14]
mov esi, dword [esi + 4]
mov ecx, esi
push dword [ebp - 0x18]
call dword [0x400272ac]
call esi
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
test eax, eax
je 0x4001a9c0
push dword [ebp - 4]
mov esi, dword [esi + 4]
mov ecx, esi
push dword [ebp - 0x1c]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001a7dd
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push 0
call fcn.4001aefd
mov edi, eax
neg edi
sbb edi, edi
neg edi
jmp 0x4001ab7f
cmp dword [ebp - 0x28], 2
jl 0x4001a7b7
cmp dword [ebp - 0x20], 0
je 0x4001ab7d
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 4]
mov esi, dword [esi]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [0x400272ac]
call esi
test eax, eax
jne 0x4001a724
jmp 0x4001ab7d
cmp dword [ebp - 0x20], 0
je 0x4001ab7d
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 4]
mov esi, dword [esi + 0x20]
mov ecx, esi
push dword [ebp - 0x30]
call dword [0x400272ac]
call esi
jmp 0x4001a7aa
cmp dword [ebp - 0x28], 2
jl 0x4001a8d8
mov esi, dword [ebp - 8]
mov edx, esi
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.4001e600
test eax, eax
je 0x4001ab7d
push 0
push dword [ebp - 0xc]
mov edx, esi
push ebx
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.4001a481
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 8]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi]
mov ecx, esi
push eax
push eax
push dword [ebp - 0x18]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 0
push dword [ebp - 0xc]
push ebx
push ecx
push esi
mov ecx, edx
call fcn.4001a481
cmp dword [ebp - 0x28], 2
jl 0x4001aac3
mov edx, eax
neg edx
sbb edx, edx
and dword [ebp - 0x28], 0
neg edx
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x38], edx
je 0x4001a8ae
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
sub eax, ebx
mov edi, dword [ebp - 0x28]
sub ebx, esi
mov dword [ebp - 0x30], esi
mov edx, eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi*4]
xor eax, dword [ecx + edx]
xor eax, dword [esi]
xor eax, dword [ecx]
inc edi
mov dword [esi], eax
lea esi, [esi + 4]
cmp edi, dword [ebp - 0x24]
jne 0x4001a884
mov ebx, dword [ebp - 0x34]
xor edi, edi
mov esi, dword [ebp - 4]
inc edi
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4001aa6f
push 0
push dword [ebp - 0xc]
mov edx, esi
push ebx
mov ebx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
push ebx
call fcn.4001a481
test eax, eax
je 0x4001aa72
jmp 0x4001aa74
mov esi, dword [ebx + 0x24]
mov eax, dword [ebp - 0x1c]
push 0
push ebx
mov esi, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 4]
push eax
push eax
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov edx, dword [ebp - 0x18]
push 0
push dword [ebp - 0xc]
push ebx
push ecx
push dword [ebp - 8]
mov ecx, edx
call fcn.4001a481
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x10]
mov esi, dword [esi]
mov ecx, esi
push dword [eax + 4]
push dword [ebp - 8]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi]
mov ecx, esi
push eax
push eax
push dword [ebp - 8]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi]
mov ecx, esi
push eax
push eax
push dword [ebp - 8]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push ebx
call fcn.4001e600
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 8]
mov edx, eax
push 0
push dword [ebp - 0xc]
push ebx
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.4001a481
test eax, eax
jne 0x4001a841
jmp 0x4001ab7d
push dword [ebp - 0x10]
mov esi, dword [esi]
mov ecx, esi
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [0x400272ac]
call esi
neg eax
sbb eax, eax
neg eax
cmp dword [ebp - 0x28], 2
jl 0x4001aa06
test eax, eax
je 0x4001aa04
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi]
mov ecx, esi
push eax
push dword [ebp - 0x14]
push eax
call dword [0x400272ac]
call esi
test eax, eax
jne 0x4001aa0e
xor eax, eax
test eax, eax
je 0x4001ab7d
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 4]
mov esi, dword [esi + 0x2c]
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push ebx
call fcn.4001e600
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 8]
mov edx, eax
push 0
push dword [ebp - 0xc]
push ebx
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.4001a481
test eax, eax
je 0x4001ab7d
jmp 0x4001a841
mov ebx, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x34], edi
je 0x4001ab7f
mov edx, dword [ebp - 0x18]
sub esi, edx
mov eax, dword [ebp - 0x1c]
sub ebx, edx
sub dword [ebp - 0x2c], edx
sub eax, edx
sub dword [ebp + 8], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + edx]
mov ecx, dword [esi + edx]
xor eax, dword [ebx + edx]
xor ecx, dword [edx]
mov edi, dword [ebp - 0x2c]
xor eax, ecx
sub dword [ebp - 0x24], 1
mov dword [edi + edx], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edi + edx], ecx
lea edx, [edx + 4]
jne 0x4001aa96
mov edi, dword [ebp - 0x34]
jmp 0x4001ab7f
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi + 0x2c]
mov ecx, esi
push eax
push dword [ebp - 0x18]
push eax
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi + 0x2c]
mov ecx, esi
push eax
push dword [ebp - 0x14]
push eax
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x10]
mov esi, dword [esi + 0x2c]
mov ecx, esi
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [0x400272ac]
call esi
test eax, eax
je 0x4001ab7d
mov eax, dword [ebx]
mov esi, dword [ebp - 4]
shl eax, 2
push eax
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x10]
add esp, 0xc
push 0
push dword [ebp - 0xc]
push ebx
push ecx
mov ecx, dword [ebp - 8]
push esi
call fcn.4001a481
test eax, eax
je 0x4001ab7d
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x2c]
mov esi, dword [esi + 0x2c]
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [0x400272ac]
call esi
test eax, eax
jne 0x4001ab7f
xor edi, edi
mov ecx, dword [ebp - 8]
call fcn.40015bdd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14