Function at 0x10001750
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
mov esi, ecx
mov dword [esp + 0x1c], 4
mov eax, dword [esi + 8]
mov ebp, 1
sub eax, 2
cmp eax, ebp
jl 0x1000180a
mov ecx, dword [esi + 4]
mov ebx, 1
sub ecx, 2
mov dword [esp + 0x10], ebx
cmp ecx, ebx
jl 0x100017fb
xor ecx, ecx
mov edx, dword [esi + edi*4 + 0x38]
mov edi, dword [edx + 0x18]
mov eax, dword [edi + ebx*4 + 4]
mov edx, dword [eax + ebp*4]
xor eax, eax
mov al, byte [edx + ecx]
mov edx, eax
mov eax, dword [edi + ebx*4 - 4]
xor ebx, ebx
mov eax, dword [eax + ebp*4]
mov bl, byte [eax + ecx]
add edx, ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + ebx*4]
mov edi, dword [eax + ebp*4]
xor eax, eax
mov al, byte [edi + ecx]
add edx, eax
mov eax, 0x55555556
imul edx
mov edi, edx
mov eax, edi
mov edi, dword [esp + 0x60]
shr edx, 0x1f
add eax, edx
mov edx, dword [esi + edi*4 + 0x40]
inc ecx
mov edx, dword [edx + 0x18]
cmp ecx, 3
mov edx, dword [edx + ebx*4]
mov edx, dword [edx + ebp*4]
mov byte [edx + ecx - 1], al
jl 0x1000178d
mov eax, dword [esi + 4]
inc ebx
sub eax, 2
mov dword [esp + 0x10], ebx
cmp ebx, eax
jle 0x1000178b
mov ecx, dword [esi + 8]
inc ebp
sub ecx, 2
cmp ebp, ecx
jle 0x10001778
mov edx, dword [esi + 8]
mov ebp, 1
sub edx, 2
cmp edx, ebp
jl 0x10001868
mov eax, dword [esi + 4]
mov ecx, 1
sub eax, 2
cmp eax, ecx
jl 0x1000185d
xor eax, eax
mov edx, dword [esi + edi*4 + 0x40]
mov ebx, dword [esi + edi*4 + 0x38]
inc eax
mov edx, dword [edx + 0x18]
mov ebx, dword [ebx + 0x18]
cmp eax, 3
mov edx, dword [edx + ecx*4]
mov ebx, dword [ebx + ecx*4]
mov edx, dword [edx + ebp*4]
mov ebx, dword [ebx + ebp*4]
mov dl, byte [edx + eax - 1]
mov byte [ebx + eax - 1], dl
jl 0x1000182a
mov eax, dword [esi + 4]
inc ecx
sub eax, 2
cmp ecx, eax
jle 0x10001828
mov ecx, dword [esi + 8]
inc ebp
sub ecx, 2
cmp ebp, ecx
jle 0x10001819
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x10001765
mov edx, dword [esi + 8]
mov dword [esp + 0x14], 1
sub edx, 2
cmp edx, 1
jl 0x10001a7c
mov ebx, 4
mov dword [esp + 0x1c], ebx
mov edx, dword [esi + 4]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
sub edx, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
cmp edx, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 1
jl 0x10001a5e
mov edx, dword [esi + edi*4 + 0x40]
mov ebp, dword [esp + 0x10]
xor eax, eax
lea ecx, [esp + 0x44]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + ebp*4]
mov ebp, dword [edx + ebx]
xor edx, edx
add ecx, 4
mov dl, byte [eax + ebp]
inc eax
mov dword [ecx - 4], edx
cmp eax, 3
jl 0x100018e9
mov ebp, dword [esp + 0x60]
test ebp, ebp
jle 0x10001a1f
xor ecx, ecx
mov eax, dword [esp + ecx + 0x20]
add ecx, 4
cdq
idiv ebp
mov edx, eax
mov eax, dword [esp + ecx + 0x40]
sub eax, edx
mov dword [esp + ecx + 0x34], edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, 0xc
mov dword [esp + ecx + 0x4c], eax
jl 0x10001908
mov ecx, dword [esp + 0x50]
mov eax, 0xf
cmp ecx, eax
jge 0x10001967
cmp dword [esp + 0x54], eax
jge 0x10001967
cmp dword [esp + 0x58], eax
jge 0x10001967
xor eax, eax
mov ecx, dword [esp + eax + 0x44]
mov edx, dword [esp + eax + 0x20]
add edx, ecx
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0xc
jl 0x10001947
inc ebp
mov dword [esp + 0x60], ebp
jmp 0x10001a47
cmp ebp, 2
jle 0x100019e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
js 0x100019c6
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
lea eax, [edx + ebp]
cmp ebp, eax
mov dword [esp + 0x60], eax
jg 0x100019c6
xor eax, eax
lea ecx, [esp + 0x38]
jmp 0x1000199c
mov ebx, dword [esp + 0x1c]
mov edx, dword [esi + edi*4 + 0x40]
inc eax
add ecx, 4
cmp eax, 3
mov edx, dword [edx + 0x18]
mov edx, dword [edx + ebp*4]
mov edx, dword [edx + ebx]
mov bl, byte [ecx - 4]
mov byte [edx + eax - 1], bl
jl 0x10001998
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jle 0x10001990
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jmp 0x10001a0b
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ebp]
cmp ecx, edx
jg 0x10001a0b
xor eax, eax
mov ebp, dword [esi + edi*4 + 0x40]
inc eax
cmp eax, 3
mov ebp, dword [ebp + 0x18]
mov ebp, dword [ebp + ecx*4]
mov ebp, dword [ebx + ebp]
mov byte [eax + ebp - 1], 0
jl 0x100019ed
inc ecx
cmp ecx, edx
jle 0x100019eb
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], eax
jmp 0x10001a47
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 4]
inc eax
sub edx, 2
cmp eax, edx
mov dword [esp + 0x10], eax
jle 0x100018d2
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
sub ecx, 2
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
jle 0x10001897
mov edx, dword [esi + 8]
mov ecx, 1
sub edx, 2
mov dword [esp + 0x14], ecx
cmp edx, ecx
jl 0x10001bf6
xor eax, eax
mov edx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edx
add eax, 0xfffffffe
cmp eax, edx
jl 0x10001be3
mov eax, dword [esi + edi*4 + 0x40]
mov dword [esp + 0x1c], 0
mov eax, dword [eax + 0x18]
lea eax, [eax + edx*4]
mov edx, dword [eax - 4]
mov eax, dword [eax]
mov ebx, dword [edx + ecx*4]
mov ebp, dword [eax + ecx*4]
xor ecx, ecx
xor eax, eax
xor edx, edx
mov al, byte [ebp]
mov dl, byte [ebx]
add dword [esp + ecx + 0x20], edx
mov dword [esp + ecx + 0x50], eax
sub eax, edx
mov dword [esp + ecx + 0x38], edx
cdq
xor eax, edx
add ecx, 4
sub eax, edx
mov edx, dword [esp + 0x1c]
add edx, eax
inc ebp
inc ebx
cmp ecx, 0xc
mov dword [esp + 0x1c], edx
jl 0x10001aef
mov eax, edx
cmp eax, 0x1e
jle 0x10001bc4
mov ebx, dword [esp + 0x60]
cmp ebx, 4
jle 0x10001bc8
lea ecx, [esp + 0x20]
mov ebp, 3
mov eax, dword [ecx]
add ecx, 4
cdq
idiv ebx
dec ebp
mov dword [ecx - 4], eax
jne 0x10001b40
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp eax, ebp
je 0x10001b9c
mov ecx, dword [esi + 4]
lea edx, [eax + ebx]
add ecx, 0xfffffffb
cmp edx, ecx
jge 0x10001b9c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push ebx
push eax
push edi
mov ecx, esi
call fcn.10002460
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], 1
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, dword [esp + eax + 0x20]
mov dword [esp + eax + 0x20], ebp
mov dword [esp + eax + 0x2c], ecx
add eax, 4
cmp eax, 0xc
jl 0x10001bae
jmp 0x10001bc8
inc dword [esp + 0x60]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
inc edx
add eax, 0xfffffffe
mov dword [esp + 0x10], edx
cmp edx, eax
jle 0x10001ad0
mov edx, dword [esi + 8]
inc ecx
sub edx, 2
mov dword [esp + 0x14], ecx
cmp ecx, edx
jle 0x10001a93
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4