Function at 0x10007410
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc4c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x102
xor eax, eax
lea edi, [esp + 0x448]
mov dword [esp + 0x444], ebp
mov dword [esp + 0x850], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x102
lea edi, [esp + 0x854]
rep stosd dword es:[edi], eax
mov ecx, 0x102
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], ebp
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc68]
mov dword [esp + 0x14], ebx
cmp ecx, ebp
je 0x10007ae5
mov edi, dword [esp + 0xc6c]
cmp edi, ebp
je 0x10007ae5
mov eax, dword [edi + 0x408]
cmp eax, 1
jl 0x10007ae5
jne 0x10007517
mov eax, dword [edi + 4]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0xc60]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.10007340
mov edx, dword [esp + 0xc74]
add esp, 0x10
test edx, edx
mov esi, eax
je 0x1000750a
test esi, esi
jne 0x1000750a
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x100074ea
mov ecx, 0x103
mov edi, edx
rep stosd dword es:[edi], eax
mov al, byte [edx]
mov byte [edx], al
mov edi, dword [esp + 0xc6c]
mov dword [edx + 4], ebx
mov dword [edx + 0x408], 1
jmp 0x100074fa
mov dword [edx], 0
mov dword [edx + 0x408], 0
mov ecx, dword [esp + 0xc68]
mov eax, dword [edi]
mov edx, dword [ecx]
xor edx, eax
mov dword [ebp], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4c
ret
lea eax, [esp + 0x444]
push ecx
push eax
call fcn.100140e0
lea ecx, [esp + 0x858]
push edi
push ecx
call fcn.100140e0
mov esi, dword [esp + 0xc68]
mov edx, 0x80000000
add esp, 0x10
test dword [esp + esi*4 + 0x850], edx
jne 0x100075de
lea ecx, [esi - 1]
cmp ecx, ebp
jl 0x1000757a
lea eax, [esp + ecx*4 + 0x854]
inc ecx
test dword [eax], edx
je 0x10007566
xor dword [eax + 4], 1
mov esi, dword [eax]
sub eax, 4
shl esi, 1
mov dword [eax + 4], esi
dec ecx
jne 0x1000755e
mov esi, dword [esp + 0xc58]
mov eax, dword [esp + esi*4 + 0x850]
inc ebx
test edx, eax
mov dword [esp + 0x14], ebx
je 0x1000754f
cmp ebx, ebp
je 0x100075de
mov edx, dword [esp + 0x84c]
lea ecx, [edx - 1]
cmp ecx, ebp
jl 0x100075d4
mov edx, 0x20
lea eax, [esp + ecx*4 + 0x448]
sub edx, ebx
lea edi, [ecx + 1]
mov ebp, dword [eax]
mov ecx, edx
shr ebp, cl
mov ecx, dword [eax + 4]
sub eax, 4
xor ecx, ebp
mov dword [eax + 8], ecx
mov ebp, dword [eax + 4]
mov ecx, ebx
shl ebp, cl
dec edi
mov dword [eax + 4], ebp
jne 0x100075ad
mov edx, dword [esp + 0x84c]
xor ebp, ebp
inc edx
mov dword [esp + 0x84c], edx
jmp 0x100075e5
mov edx, dword [esp + 0x84c]
cmp dword [esp + edx*4 + 0x444], ebp
jne 0x10007604
cmp edx, 1
jle 0x10007604
dec edx
mov dword [esp + 0x84c], edx
cmp dword [esp + edx*4 + 0x444], ebp
je 0x100075ee
mov ebp, dword [esp + 0xc60]
mov ecx, 0x103
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [ebp]
mov byte [ebp], al
cmp edx, esi
mov dword [ebp + 0x408], 1
jl 0x100076d8
test esi, esi
jle 0x10007645
mov ecx, edx
sub ecx, esi
lea edi, [esp + ecx*4 + 0x3c]
mov ecx, esi
lea esi, [esp + 0x854]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x440], edx
lea edx, [esp + 0x38]
lea eax, [esp + 0x444]
push edx
push eax
call fcn.10014380
add esp, 8
test eax, eax
jl 0x100076ca
mov ecx, dword [esp + 0x84c]
mov edx, dword [esp + 0xc58]
sub ecx, edx
lea edx, [esp + 0x38]
push edx
lea eax, [ebp + ecx*4 + 4]
mov ecx, dword [ebp + ecx*4 + 4]
inc ecx
mov dword [eax], ecx
lea eax, [esp + 0x448]
lea ecx, [esp + 0x448]
push eax
push ecx
call fcn.100072a0
mov edx, dword [esp + 0x858]
mov ecx, dword [esp + 0xc64]
sub edx, ecx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x450]
inc edx
push eax
push ecx
mov dword [ebp + 0x408], edx
call fcn.10014380
add esp, 0x14
test eax, eax
jge 0x10007665
mov edx, dword [esp + 0x84c]
mov esi, dword [esp + 0xc58]
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x38]
mov byte [esp + 0x38], al
lea edi, [edx - 1]
mov dword [esp + 0x440], 1
cmp edi, esi
mov dword [esp + 0x18], edi
jl 0x100079ba
lea ebx, [edi*4]
mov dword [esp + 0x10], ebx
jmp 0x10007718
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + ebx + 0x448]
mov ecx, dword [esp + esi*4 + 0x850]
cmp eax, ecx
jne 0x10007738
mov ecx, edi
sub ecx, esi
mov dword [ebp + ecx*4 + 4], 0xffffffff
jmp 0x1000776b
push 1
push 0
push 0
push eax
call fcn.100358c0
mov ecx, eax
mov eax, dword [esp + ebx + 0x444]
xor ebx, ebx
add ecx, eax
mov eax, dword [esp + esi*4 + 0x850]
push ebx
adc edx, ebx
push eax
push edx
push ecx
call fcn.10035900
mov ecx, edi
sub ecx, esi
mov dword [ebp + ecx*4 + 4], eax
mov eax, dword [ebp + 0x408]
mov esi, dword [esp + 0xc58]
cmp eax, 1
jne 0x10007788
mov edx, edi
sub edx, esi
inc edx
mov dword [ebp + 0x408], edx
mov eax, edi
mov ecx, dword [esp + esi*4 + 0x84c]
sub eax, esi
mov ebx, dword [ebp + eax*4 + 4]
xor eax, eax
push eax
push ebx
push eax
push ecx
call fcn.100358c0
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + esi*4 + 0x850]
push eax
push ebx
push eax
push edx
call fcn.100358c0
mov ebx, dword [esp + 0x28]
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + ebx + 0x448]
cmp edx, ecx
ja 0x100077fc
jne 0x100077e0
cmp eax, dword [esp + ebx + 0x444]
ja 0x100077fc
cmp edx, ecx
jne 0x10007855
cmp eax, dword [esp + ebx + 0x444]
jne 0x10007855
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + ebx + 0x440]
cmp edx, eax
jbe 0x10007855
mov eax, edi
xor ebx, ebx
sub eax, esi
push ebx
mov edx, dword [ebp + eax*4 + 4]
lea eax, [ebp + eax*4 + 4]
dec edx
mov dword [eax], edx
mov esi, dword [esp + 0xc5c]
sub edi, esi
mov ecx, dword [esp + esi*4 + 0x850]
mov edi, dword [ebp + edi*4 + 4]
push edi
push ebx
push ecx
call fcn.100358c0
mov dword [esp + 0x28], edx
mov edx, dword [esp + esi*4 + 0x850]
push ebx
push edi
push ebx
push edx
mov dword [esp + 0x3c], eax
call fcn.100358c0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
xor ecx, ecx
add eax, ebx
adc edx, ecx
jmp 0x100077c6
mov edx, edi
xor ecx, ecx
sub edx, esi
cmp esi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + edx*4 + 0x3c], ecx
jle 0x100078c3
lea ebx, [esi*4]
mov dword [esp + 0x1c], esi
jmp 0x10007878
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov eax, ecx
sub eax, ebx
xor edi, edi
add esi, eax
mov eax, dword [esp + ecx + 0x854]
mul dword [ebp + edx*4 + 4]
mov esi, dword [esp + esi + 0x3c]
add eax, esi
mov esi, dword [esp + 0x10]
adc edx, edi
mov edi, ecx
sub edi, ebx
add edi, esi
mov dword [esp + edi + 0x3c], eax
mov eax, ecx
sub eax, ebx
add ecx, 4
add eax, esi
mov dword [esp + eax + 0x40], edx
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x10007874
mov edi, dword [esp + 0x18]
mov ebx, esi
lea eax, [edi + 1]
test eax, eax
mov dword [esp + 0x440], eax
jle 0x100078e5
mov ecx, dword [esp + eax*4 + 0x38]
test ecx, ecx
jne 0x100078e5
dec eax
test eax, eax
mov dword [esp + 0x440], eax
jg 0x100078d1
lea edx, [esp + 0x38]
lea eax, [esp + 0x444]
push edx
lea ecx, [esp + 0x448]
push eax
push ecx
call fcn.100072a0
mov eax, dword [esp + 0x450]
add esp, 0xc
test eax, eax
je 0x1000799b
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dl, byte [esp + 0x38]
mov byte [esp + 0x38], dl
mov edi, dword [esp + 0xc58]
test edi, edi
jle 0x10007957
xor ecx, ecx
lea esi, [edi*4]
mov edx, edi
mov ebx, dword [esp + 0x10]
mov eax, ecx
sub eax, esi
add ecx, 4
add eax, ebx
mov ebx, dword [esp + ecx + 0x850]
dec edx
mov dword [esp + eax + 0x3c], ebx
jne 0x1000793c
lea eax, [esp + 0x38]
lea ecx, [esp + 0x444]
push eax
lea edx, [esp + 0x448]
push ecx
push edx
mov dword [esp + 0x44c], edi
call fcn.10005f10
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc64]
sub eax, edx
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [ebp + eax*4 + 4]
lea eax, [ebp + eax*4 + 4]
dec ecx
mov dword [eax], ecx
mov esi, dword [esp + 0xc58]
dec edi
sub ebx, 4
cmp edi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
jge 0x10007714
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc64]
lea ecx, [esp + 0x444]
push ecx
push esi
call fcn.100140e0
add esp, 8
mov dword [esi], 0
test ebx, ebx
je 0x10007a29
mov edx, dword [esi + 4]
mov ecx, ebx
mov eax, dword [esp + 0xc58]
shr edx, cl
mov dword [esi + 4], edx
mov edx, 1
cmp eax, edx
jle 0x10007a29
mov edi, 0x20
lea eax, [esi + 8]
sub edi, ebx
mov ebx, dword [eax]
mov ecx, edi
shl ebx, cl
mov ecx, dword [eax - 4]
add eax, 4
xor ecx, ebx
mov dword [eax - 8], ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax - 4]
shr ebx, cl
inc edx
mov dword [eax - 4], ebx
mov ecx, dword [esp + 0xc58]
cmp edx, ecx
jl 0x10007a00
mov edx, dword [ebp + 0x408]
cmp dword [ebp + edx*4], 0
jne 0x10007a4f
mov eax, dword [ebp + 0x408]
cmp eax, 1
jle 0x10007a4f
dec eax
mov dword [ebp + 0x408], eax
cmp dword [ebp + eax*4], 0
je 0x10007a36
mov eax, dword [esi + 0x408]
cmp dword [esi + eax*4], 0
jne 0x10007a73
mov eax, dword [esi + 0x408]
cmp eax, 1
jle 0x10007a73
dec eax
mov dword [esi + 0x408], eax
cmp dword [esi + eax*4], 0
je 0x10007a5b
mov ebx, dword [esp + 0xc68]
cmp dword [ebx], 0
je 0x10007ac2
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x38]
mov byte [esp + 0x38], cl
mov edx, dword [esp + 0xc6c]
push esi
mov eax, 1
push edx
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44c], eax
call fcn.100072a0
lea eax, [esp + 0x44]
push eax
push ebp
push ebp
call fcn.10005f10
add esp, 0x18
mov edx, dword [esp + 0xc6c]
mov dword [esi], 0
mov ecx, dword [ebx]
pop edi
mov eax, dword [edx]
pop esi
xor ecx, eax
xor eax, eax
mov dword [ebp], ecx
pop ebp
pop ebx
add esp, 0xc4c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffff823
pop ebx
add esp, 0xc4c
ret