Function at 0x1007c0f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5e0
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x5dc], eax
push ebx
mov ebx, dword [esp + 0x5f4]
lea eax, [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x5fc]
push esi
push edi
push 0x44
push 0
push eax
mov edi, edx
mov dword [esp + 0x40], ebx
mov esi, ecx
mov dword [esp + 0x50], ebp
call fcn.10143f10
add esp, 0xc
mov ecx, esi
mov edx, edi
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x90]
sub edx, 1
jne 0x1007c140
cmp dword [esp + 0x90], edi
jne 0x1007c17a
mov dword [ebx], edx
mov dword [ebp], edx
xor eax, eax
mov ecx, dword [esp + 0x5ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x5e0
ret
mov ecx, 1
nop
cmp dword [esp + ecx*4 + 0x90], 0
jne 0x1007c190
inc ecx
cmp ecx, 0x10
jbe 0x1007c180
mov eax, ecx
mov dword [esp + 0x14], eax
cmp dword [ebp], ecx
jae 0x1007c19e
mov dword [ebp], ecx
mov edx, 0x10
cmp dword [esp + edx*4 + 0x90], 0
jne 0x1007c1b2
sub edx, 1
jne 0x1007c1a3
mov dword [esp + 0x2c], edx
cmp dword [ebp], edx
jbe 0x1007c1be
mov dword [ebp], edx
mov ebp, 1
shl ebp, cl
cmp ecx, edx
jae 0x1007c1e0
nop dword [eax]
sub ebp, dword [esp + ecx*4 + 0x90]
js 0x1007c1f6
inc ecx
add ebp, ebp
cmp ecx, edx
jb 0x1007c1d0
lea ebx, [edx*4]
mov eax, dword [esp + ebx + 0x90]
sub ebp, eax
mov dword [esp + 0x4c], ebp
jns 0x1007c200
mov eax, 2
jmp 0x1007c161
add eax, ebp
xor ecx, ecx
mov dword [esp + ebx + 0x90], eax
mov dword [esp + 0xdc], ecx
sub edx, 1
je 0x1007c236
xor eax, eax
nop dword [eax]
add ecx, dword [esp + eax + 0x94]
lea eax, [eax + 4]
mov dword [esp + eax + 0xdc], ecx
sub edx, 1
jne 0x1007c220
push 0x480
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.10143f10
add esp, 0xc
xor ecx, ecx
nop
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x1007c26f
mov eax, dword [esp + edx*4 + 0xd8]
mov dword [esp + eax*4 + 0x168], ecx
inc eax
mov dword [esp + edx*4 + 0xd8], eax
inc ecx
cmp ecx, edi
jb 0x1007c250
mov eax, dword [esp + ebx + 0xd8]
xor ebp, ebp
mov ecx, dword [esp + 0x14]
xor edx, edx
mov ebx, dword [esp + 0x2c]
or edi, 0xffffffff
mov dword [esp + 0x48], eax
xor esi, esi
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x168]
mov dword [esp + 0xd8], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x120], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x38], edx
cmp ecx, ebx
jg 0x1007c555
lea eax, [esp + 0x90]
mov ebp, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x1007c53d
lea ebx, [eax + 1]
dec ebx
dec eax
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + edi*4 + 0x124]
mov dword [esp + 0x3c], eax
lea eax, [ebx + edx]
cmp ecx, eax
jle 0x1007c418
nop
mov eax, dword [esp + 0x2c]
add edx, ebx
mov ebx, dword [esp + 0x44]
sub eax, edx
inc edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], edi
mov esi, dword [ebx]
cmp eax, esi
mov ebx, ecx
cmovbe esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x40]
jbe 0x1007c358
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x3c]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x1007c354
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x1007c354
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x1007c341
mov edx, dword [esp + 0x10]
lea eax, [edx + ebx]
cmp eax, 0x10
jbe 0x1007c36c
cmp edx, 0x10
jae 0x1007c36c
mov ebx, 0x10
sub ebx, edx
mov ecx, ebx
mov dword [esp + edi*4 + 0x124], ebx
mov eax, 1
mov edx, 8
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x38], eax
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10146843
add esp, 4
test eax, eax
je 0x1007c580
mov ecx, dword [esp + 0x34]
lea esi, [eax + 8]
add eax, 4
mov dword [esp + edi*4 + 0x50], esi
mov dword [esp + 0x34], eax
mov dword [ecx], esi
mov dword [eax], 0
test edi, edi
je 0x1007c405
mov ecx, dword [esp + 0x10]
mov edx, 1
mov al, byte [esp + edi*4 + 0x120]
shl edx, cl
sub ecx, dword [esp + edi*4 + 0x120]
dec edx
mov byte [esp + 0x19], al
and edx, ebp
lea eax, [ebx + 0x20]
shr edx, cl
mov byte [esp + 0x18], al
mov eax, dword [esp + edi*4 + 0x4c]
mov ecx, dword [esp + 0x18]
mov dword [esp + edi*4 + 0xd8], ebp
mov dword [esp + 0x1c], esi
mov dword [eax + edx*8], ecx
mov ecx, esi
mov dword [eax + edx*8 + 4], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [edx + ebx]
cmp ecx, eax
jg 0x1007c300
mov al, cl
lea ebx, [esp + 0x168]
sub al, dl
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x48]
lea eax, [ebx + eax*4]
mov ebx, dword [esp + 0x20]
cmp ebx, eax
jb 0x1007c43d
mov byte [esp + 0x18], 0x63
jmp 0x1007c492
mov ecx, dword [ebx]
add ebx, 4
mov eax, dword [esp + 0x5f4]
movzx edi, cx
mov dword [esp + 0x20], ebx
cmp ecx, eax
jae 0x1007c46a
cmp ecx, 0x100
mov word [esp + 0x1c], di
setb al
add al, 0x1f
mov byte [esp + 0x18], al
jmp 0x1007c48e
sub ecx, eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x5fc]
mov al, byte [ecx + eax]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x5f8]
mov ax, word [eax + ecx*2]
mov word [esp + 0x1c], ax
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
sub ecx, edx
mov edi, 1
mov eax, ebp
shl edi, cl
mov ecx, edx
shr eax, cl
cmp eax, ebx
jae 0x1007c4c6
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebp
add eax, edi
cmp eax, ebx
jb 0x1007c4b1
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test ebp, eax
je 0x1007c4e0
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x1007c4d8
mov edi, dword [esp + 0x28]
xor ebp, eax
mov eax, 1
mov dword [esp + 0x24], ebp
mov ecx, edx
shl eax, cl
dec eax
and eax, ebp
cmp eax, dword [esp + edi*4 + 0xd8]
je 0x1007c525
nop
sub edx, dword [esp + edi*4 + 0x120]
dec edi
mov eax, 1
mov ecx, edx
shl eax, cl
dec eax
and eax, ebp
cmp eax, dword [esp + edi*4 + 0xd8]
jne 0x1007c500
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
test eax, eax
jne 0x1007c2e2
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
inc ecx
add eax, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
cmp ecx, ebx
jle 0x1007c2d5
cmp dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x124]
mov dword [ecx], eax
je 0x1007c15f
cmp ebx, 1
je 0x1007c15f
mov eax, 1
jmp 0x1007c161
test edi, edi
je 0x1007c5a5
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1007c5a5
nop dword [eax]
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.10146720
add esp, 4
mov eax, esi
test esi, esi
jne 0x1007c590
mov eax, 3
jmp 0x1007c161