Function at 0x4001afb6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [edx]
mov dword [ebp - 0x34], ebx
push edi
xor edi, edi
mov dword [ebp - 0x20], esi
mov ecx, dword [ebx + 0x14]
inc edi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], edi
lea eax, [eax + ecx*4]
mov dword [ebp - 0x30], eax
lea ebx, [esi + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
lea eax, [eax + ecx*4]
imul ecx, ecx, 3
mov dword [ebp - 0x38], eax
add ecx, dword [edx + 0x24]
shl ecx, 2
call fcn.400164ea
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4001b02c
mov dword [0x40027368], 7
xor eax, eax
jmp 0x4001b573
mov ecx, dword [ebp - 0x2c]
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
lea eax, [eax + ecx*4]
mov dword [ebp - 0x14], eax
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x14], edi
je 0x4001b04c
cmp dword [ebp - 0x28], 2
jl 0x4001b057
cmp dword [ebp + 0xc], edi
je 0x4001b065
cmp dword [ebp + 0xc], 0xffffffff
je 0x4001b065
and dword [ebp - 0x1c], 0
mov dword [0x40027368], 5
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
push 0
call fcn.4001b586
test eax, eax
je 0x4001b09c
cmp dword [ebp - 0x1c], 0
je 0x4001b567
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 0x4001b569
mov edx, dword [ebp + 0x10]
mov ecx, esi
push 0
call fcn.4001b586
test eax, eax
je 0x4001b0ea
cmp dword [ebp + 0xc], edi
jne 0x4001b0cb
cmp dword [ebp - 0x1c], 0
je 0x4001b567
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
shl eax, 3
push eax
push dword [ebp - 0x18]
jmp 0x4001b08c
cmp dword [ebp - 0x1c], 0
je 0x4001b567
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push 0
push dword [ebp + 0x10]
call fcn.40046dcf
jmp 0x4001b563
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4001b168
cmp dword [ebp - 0x1c], 0
je 0x4001b567
mov eax, dword [ebx]
shl eax, 2
push eax
push dword [ebp - 0x30]
push dword [ebp - 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x18]
mov esi, dword [esi + 4]
mov ecx, esi
push dword [ebp - 0x20]
call dword [0x400282a8]
call esi
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
test eax, eax
je 0x4001b3aa
push dword [ebp - 8]
mov esi, dword [esi + 4]
mov ecx, esi
push dword [ebp - 0x24]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b1c7
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push 0
call fcn.4001b93a
mov edi, eax
neg edi
sbb edi, edi
neg edi
jmp 0x4001b569
cmp dword [ebp - 0x28], 2
jl 0x4001b1a1
cmp dword [ebp - 0x1c], 0
je 0x4001b567
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 8]
mov esi, dword [esi]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [0x400282a8]
call esi
test eax, eax
jne 0x4001b10e
jmp 0x4001b567
cmp dword [ebp - 0x1c], 0
je 0x4001b567
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 8]
mov esi, dword [esi + 0x20]
mov ecx, esi
push dword [ebp - 0x30]
call dword [0x400282a8]
call esi
jmp 0x4001b194
cmp dword [ebp - 0x28], 2
jl 0x4001b2c2
mov esi, dword [ebp - 0xc]
mov edx, esi
push ecx
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.4001f10e
test eax, eax
je 0x4001b567
push 0
push dword [ebp - 0x10]
mov edx, esi
push ebx
push ecx
mov ecx, dword [ebp - 0x24]
push esi
call fcn.4001ae48
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 0xc]
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 - 0x20]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
push ebx
push ecx
push esi
mov ecx, edx
call fcn.4001ae48
cmp dword [ebp - 0x28], 2
jl 0x4001b4ad
mov edx, eax
neg edx
sbb edx, edx
and dword [ebp - 0x28], 0
neg edx
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], edx
je 0x4001b298
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18]
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 - 0x2c]
jne 0x4001b26e
mov ebx, dword [ebp - 0x34]
xor edi, edi
mov esi, dword [ebp - 8]
inc edi
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4001b459
push 0
push dword [ebp - 0x10]
mov edx, esi
push ebx
mov ebx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.4001ae48
test eax, eax
je 0x4001b45c
jmp 0x4001b45e
mov esi, dword [ebx + 0x24]
mov eax, dword [ebp - 0x24]
push 0
push ebx
mov esi, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 8]
push eax
push eax
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov edx, dword [ebp - 0x20]
push 0
push dword [ebp - 0x10]
push ebx
push ecx
push dword [ebp - 0xc]
mov ecx, edx
call fcn.4001ae48
test eax, eax
je 0x4001b567
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x14]
mov esi, dword [esi]
mov ecx, esi
push dword [eax + 4]
push dword [ebp - 0xc]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 0x14]
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 - 0xc]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 0x14]
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 - 0xc]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push ecx
push dword [ebp - 0x10]
mov ecx, esi
push ebx
call fcn.4001f10e
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 0xc]
mov edx, eax
push 0
push dword [ebp - 0x10]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.4001ae48
test eax, eax
jne 0x4001b22b
jmp 0x4001b567
push dword [ebp - 0x14]
mov esi, dword [esi]
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x24]
call dword [0x400282a8]
call esi
neg eax
sbb eax, eax
neg eax
cmp dword [ebp - 0x28], 2
jl 0x4001b3f0
test eax, eax
je 0x4001b3ee
mov eax, dword [ebp - 0x14]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi]
mov ecx, esi
push eax
push dword [ebp - 0x18]
push eax
call dword [0x400282a8]
call esi
test eax, eax
jne 0x4001b3f8
xor eax, eax
test eax, eax
je 0x4001b567
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 8]
mov esi, dword [esi + 0x2c]
mov ecx, esi
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push ecx
push dword [ebp - 0x10]
mov ecx, esi
push ebx
call fcn.4001f10e
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 0xc]
mov edx, eax
push 0
push dword [ebp - 0x10]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.4001ae48
test eax, eax
je 0x4001b567
jmp 0x4001b22b
mov ebx, dword [ebp - 0x14]
xor edi, edi
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], edi
je 0x4001b569
mov edx, dword [ebp - 0x20]
sub esi, edx
mov eax, dword [ebp - 0x24]
sub ebx, edx
sub dword [ebp - 0x38], edx
sub eax, edx
sub dword [ebp + 8], edx
mov dword [ebp - 0x24], eax
mov eax, dword [eax + edx]
mov ecx, dword [esi + edx]
xor eax, dword [ebx + edx]
xor ecx, dword [edx]
mov edi, dword [ebp - 0x38]
xor eax, ecx
sub dword [ebp - 0x2c], 1
mov dword [edi + edx], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edi + edx], ecx
lea edx, [edx + 4]
jne 0x4001b480
mov edi, dword [ebp - 0x34]
jmp 0x4001b569
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 8]
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
mov esi, dword [esi + 0x2c]
mov ecx, esi
push eax
push dword [ebp - 0x20]
push eax
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov eax, dword [ebp - 8]
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 [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x14]
mov esi, dword [esi + 0x2c]
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x20]
call dword [0x400282a8]
call esi
test eax, eax
je 0x4001b567
mov eax, dword [ebx]
mov esi, dword [ebp - 8]
shl eax, 2
push eax
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0
push dword [ebp - 0x10]
push ebx
push ecx
mov ecx, dword [ebp - 0xc]
push esi
call fcn.4001ae48
test eax, eax
je 0x4001b567
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
push dword [ebp - 0x38]
mov esi, dword [esi + 0x2c]
mov ecx, esi
push dword [ebp - 0x24]
push dword [ebp - 8]
call dword [0x400282a8]
call esi
test eax, eax
jne 0x4001b569
xor edi, edi
mov ecx, dword [ebp - 0xc]
call fcn.400164fd
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 0x14