Function at 0x100075b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x100bf358]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, eax
mov esi, eax
and esi, 0xf
shr edi, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], esi
cmp eax, 0x10
jae 0x100075fb
mov eax, 0xffffffde
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1009625b
mov esp, ebp
pop ebp
ret
cmp eax, 0x1000000
ja 0x100075e4
lea eax, [esp + 0x3c]
push eax
add edx, 0x118
push edx
call fcn.10006460
add esp, 8
test eax, eax
jne 0x100078ed
test edi, edi
je 0x100077b8
lea ecx, [esp + 0x3d]
mov eax, ebx
sub eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, ecx
lea edx, [esp + 0x3c]
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, ecx
neg eax
mov dword [esp + 0x10], eax
mov eax, ebx
neg eax
mov dword [esp + 0x18], eax
jmp 0x1000765a
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0x20]
dec edi
mov dword [esp + 0x20], edi
test esi, esi
je 0x1000769b
cmp dword [ebp + 8], 0
jne 0x1000769b
test edi, edi
jne 0x1000769b
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x3c]
mov esi, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.100073d0
mov ecx, dword [ebp + 0x10]
mov edi, 0xfffffffe
lea eax, [ecx + 2]
sub edi, ecx
mov edx, dword [esp + 0x14]
lea ecx, [edi + eax]
lea esi, [esp + ecx + 0x3c]
movzx edx, byte [esi + edx]
xor dl, byte [esi]
mov esi, dword [esp + 0x10]
mov byte [esp + ecx + 0x2c], dl
movzx edx, byte [esp + ecx + 0x3d]
xor dl, byte [eax - 1]
add eax, 4
mov byte [esp + ecx + 0x2d], dl
lea ecx, [esp + esi + 0x3c]
movzx edx, byte [eax + ecx - 4]
xor dl, byte [eax - 4]
lea ecx, [esp + esi + 0x2c]
mov byte [eax + ecx - 4], dl
lea ecx, [esp + esi + 0x3d]
mov cl, byte [eax + ecx - 4]
xor cl, byte [eax - 3]
lea esi, [esp + esi + 0x2d]
mov byte [eax + esi - 4], cl
lea edx, [edi + eax]
cmp edx, 0x10
jb 0x100076a5
cmp dword [ebp + 8], 1
jne 0x10007715
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, eax
call fcn.10006460
jmp 0x10007726
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, edx
call fcn.10006b40
add esp, 8
test eax, eax
jne 0x100078ed
mov ecx, dword [esp + 0x18]
lea edi, [esp + ecx + 0x3d]
lea ecx, [esp + ecx + 0x2d]
mov dword [esp + 0x1c], ecx
movzx edx, byte [esp + eax + 0x2c]
xor dl, byte [esp + eax + 0x3c]
mov ecx, dword [esp + 0x28]
lea esi, [esp + eax + 0x3d]
mov byte [esi + ecx], dl
movzx edx, byte [esp + eax + 0x2d]
xor dl, byte [esi]
lea ecx, [ebx + eax + 2]
mov byte [ecx - 1], dl
movzx edx, byte [esp + eax + 0x3e]
xor dl, byte [esp + eax + 0x2e]
add eax, 4
mov byte [ecx], dl
mov edx, dword [esp + 0x1c]
movzx edx, byte [ecx + edx]
xor dl, byte [ecx + edi]
mov byte [ecx + 1], dl
cmp eax, 0x10
jb 0x10007741
lea ecx, [esp + 0x3c]
mov esi, ecx
call fcn.100073d0
mov esi, dword [esp + 0xc]
mov eax, 0x10
add dword [esp + 0x28], eax
sub dword [esp + 0x18], eax
add dword [ebp + 0x10], eax
add dword [esp + 0x14], eax
sub dword [esp + 0x10], eax
add ebx, eax
cmp dword [esp + 0x20], 0
jne 0x10007653
test esi, esi
je 0x100078eb
cmp dword [ebp + 8], 0
lea edi, [esp + 0x4c]
je 0x100077ce
lea edi, [esp + 0x3c]
lea ecx, [ebx - 0x10]
xor edx, edx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10007832
mov edx, edi
sub edx, ebx
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x10]
sub edx, ebx
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x2c]
sub ecx, ebx
sub edx, ebx
mov eax, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], esi
movzx edx, byte [ecx + eax]
mov ebx, dword [esp + 0x20]
mov byte [eax], dl
mov edx, dword [esp + 0x1c]
movzx edx, byte [edx + eax]
xor dl, byte [ebx + eax]
mov ebx, dword [esp + 0x14]
mov byte [ebx + eax], dl
inc eax
dec dword [esp + 0xc]
jne 0x10007802
cmp esi, 0x10
jae 0x10007853
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, ecx
lea ebx, [esp + 0x2c]
mov ecx, 0x10
sub esi, edi
sub ebx, edi
lea eax, [edx + edi]
sub ecx, edx
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
dec ecx
mov byte [ebx + eax - 1], dl
jne 0x10007846
cmp dword [ebp + 8], 1
jne 0x1000786c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, eax
call fcn.10006460
jmp 0x1000787d
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, edx
call fcn.10006b40
add esp, 8
test eax, eax
jne 0x100078ed
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov eax, edi
sub eax, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
mov edx, ebx
sub edx, eax
mov eax, edi
xor ecx, ecx
inc esi
sub eax, ebx
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x1c]
lea eax, [esp + ecx + 0x2c]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add ecx, 4
mov byte [edx + eax], bl
mov ebx, dword [esp + 0xc]
movzx ebx, byte [ebx + esi]
xor bl, byte [eax + 1]
add esi, 4
mov byte [esi - 4], bl
movzx ebx, byte [edi + ecx - 2]
xor bl, byte [eax + 2]
mov byte [esi - 3], bl
movzx ebx, byte [edi + ecx - 1]
xor bl, byte [eax + 3]
mov byte [esi - 2], bl
cmp ecx, 0x10
jb 0x100078ab
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009625b
mov esp, ebp
pop ebp
ret