Function at 0x4001b1fc
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
mov ebx, dword [eax]
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 ebx, [esi + ecx*4]
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 8]
lea ecx, [ecx + edx*4]
mov dword [ebp - 0x2c], ecx
imul ecx, edx, 3
add ecx, dword [eax + 0x24]
shl ecx, 2
call fcn.40016660
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4001b269
mov dword [0x40027360], 7
xor eax, eax
jmp 0x4001b6b3
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 0x4001b289
cmp dword [ebp - 0x28], 2
jl 0x4001b294
cmp dword [ebp + 0xc], edi
je 0x4001b2a2
cmp dword [ebp + 0xc], 0xffffffff
je 0x4001b2a2
and dword [ebp - 0x20], 0
mov dword [0x40027360], 5
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
push 0
call fcn.4001b7b9
test eax, eax
je 0x4001b2d9
cmp dword [ebp - 0x20], 0
je 0x4001b6a7
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 0x4001b6a9
mov edx, dword [ebp + 0x10]
mov ecx, esi
push 0
call fcn.4001b7b9
test eax, eax
je 0x4001b327
cmp dword [ebp + 0xc], edi
jne 0x4001b308
cmp dword [ebp - 0x20], 0
je 0x4001b6a7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
shl eax, 3
push eax
push dword [ebp - 0x14]
jmp 0x4001b2c9
cmp dword [ebp - 0x20], 0
je 0x4001b6a7
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
call fcn.4001b897
jmp 0x4001b6a3
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4001b3a3
cmp dword [ebp - 0x20], 0
je 0x4001b6a7
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 [0x400282b0]
call esi
mov esi, dword [ebx + 0x24]
push 0
push ebx
push edi
test eax, eax
je 0x4001b6ba
push dword [ebp - 4]
mov esi, dword [esi + 4]
mov ecx, esi
push dword [ebp - 0x1c]
call dword [0x400282b0]
call esi
test eax, eax
je 0x4001b402
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push 0
call fcn.4001bb3d
neg eax
sbb edi, edi
neg edi
jmp 0x4001b6a9
cmp dword [ebp - 0x28], 2
jl 0x4001b3dc
cmp dword [ebp - 0x20], 0
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
jne 0x4001b34b
jmp 0x4001b6a7
cmp dword [ebp - 0x20], 0
je 0x4001b6a7
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 [0x400282b0]
call esi
jmp 0x4001b3cf
cmp dword [ebp - 0x28], 2
jl 0x4001b4f8
mov esi, dword [ebp - 8]
mov edx, esi
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.4001f230
test eax, eax
je 0x4001b6a7
push 0
push dword [ebp - 0xc]
mov edx, esi
push ebx
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.4001b091
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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.4001b091
neg eax
sbb edx, edx
and dword [ebp - 0x28], 0
neg edx
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x38], edx
je 0x4001b4ce
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
sub eax, ebx
mov edi, dword [ebp + 0x10]
sub ebx, esi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
lea ecx, [ebx + esi]
mov edi, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
xor eax, dword [ecx + edi]
xor eax, dword [esi]
xor eax, dword [ecx]
inc edx
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
lea esi, [esi + 4]
cmp edx, dword [ebp - 0x24]
jne 0x4001b4a1
mov ebx, dword [ebp - 0x34]
xor edi, edi
mov esi, dword [ebp - 4]
inc edi
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4001b75f
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.4001b091
test eax, eax
je 0x4001b762
jmp 0x4001b764
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
mov edx, dword [ebp - 0x18]
push 0
push dword [ebp - 0xc]
push ebx
push ecx
push dword [ebp - 8]
mov ecx, edx
call fcn.4001b091
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push ebx
call fcn.4001f230
test eax, eax
je 0x4001b6a7
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.4001b091
test eax, eax
je 0x4001b6a7
mov edx, dword [ebp - 8]
push 0
push dword [ebp - 0xc]
push ebx
push ecx
push esi
mov ecx, edx
call fcn.4001b091
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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.4001b091
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
jne 0x4001b6a9
xor edi, edi
mov ecx, dword [ebp - 8]
call fcn.40016679
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
push dword [ebp - 0x10]
mov esi, dword [esi]
mov ecx, esi
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
cmp dword [ebp - 0x28], 2
jl 0x4001b6f8
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
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 [0x400282b0]
call esi
test eax, eax
je 0x4001b6a7
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push ebx
call fcn.4001f230
test eax, eax
je 0x4001b6a7
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.4001b091
test eax, eax
je 0x4001b6a7
cmp dword [ebp - 0x28], 2
jl 0x4001b5db
jmp 0x4001b466
mov ebx, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x34], edi
je 0x4001b6a9
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 0x4001b786
mov edi, dword [ebp - 0x34]
jmp 0x4001b6a9