Function at 0x10007612
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
add eax, 0x48
push eax
call fcn.10026ecc
mov esi, eax
mov eax, dword [ebp + 0x24]
test eax, eax
pop ecx
je 0x10007666
mov ebx, dword [eax]
cmp ebx, 0x20
jge 0x1000765f
push ebx
push dword [eax + 4]
push esi
call fcn.1004ccc0
push 0x20
pop eax
sub eax, ebx
add ebx, esi
push eax
push 0x10071a88
push ebx
call fcn.1004ccc0
add esp, 0x18
jmp 0x10007676
push 0x20
push dword [eax + 4]
jmp 0x1000766d
push 0x20
push 0x10071a88
push esi
call fcn.1004ccc0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push 0x20
lea eax, [esi + 0x20]
push dword [ecx + 4]
push eax
call fcn.1004ccc0
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov byte [esi + 0x40], al
sar ecx, 8
mov byte [esi + 0x41], cl
mov ecx, eax
sar ecx, 0x10
sar eax, 0x18
mov byte [esi + 0x42], cl
mov byte [esi + 0x43], al
push dword [edi]
lea eax, [esi + 0x44]
push dword [edi + 4]
push eax
call fcn.1004ccc0
mov eax, dword [edi]
add esp, 0x18
add eax, 0x44
cmp dword [ebp + 0x2c], 0
jne 0x100076d3
or byte [eax + esi], 0xff
inc eax
or byte [eax + esi], 0xff
inc eax
or byte [eax + esi], 0xff
inc eax
or byte [eax + esi], 0xff
inc eax
push dword [ebp + 0x28]
push eax
push esi
call fcn.10008531
add esp, 0xc
cmp dword [ebp + 0xc], 3
jne 0x100076fd
push 0x32
pop ebx
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0x28]
call fcn.10008531
add esp, 0xc
dec ebx
jne 0x100076e9
cmp dword [ebp + 0xc], 2
jne 0x10007771
lea eax, [ebp - 0x134]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x28]
call fcn.10007cd8
and byte [ebp + 0x23], 0
and byte [ebp - 1], 0
add esp, 0xc
xor edi, edi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov al, byte [edi + eax]
mov byte [ebp + 0x28], al
lea eax, [ebp + 0x23]
push dword [ebp + 0x28]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.10007d44
add esp, 0x10
mov byte [ebp + edi - 0x34], al
inc edi
cmp edi, 0x20
jl 0x10007722
push 0x20
lea eax, [ebp - 0x34]
push 0x10071a88
push eax
call fcn.1004d090
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x10007851
cmp dword [ebp + 0xc], 3
jne 0x1000784f
mov eax, dword [ebp + 0x18]
push 0x20
push dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.1004ccc0
add esp, 0xc
mov dword [ebp + 0x18], 0x13
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jle 0x100077bd
mov eax, dword [ebp + 0x28]
lea edx, [ebp - 0x14]
sub eax, edx
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp + ecx - 0x14]
mov dl, byte [edx + eax]
xor dl, byte [ebp + 0x18]
inc ecx
cmp ecx, dword [ebp + 0x10]
mov byte [eax], dl
jl 0x100077a8
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push eax
call fcn.10007cd8
and byte [ebp + 0x23], 0
and byte [ebp - 1], 0
add esp, 0xc
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov al, byte [ebp + eax - 0x34]
push eax
lea eax, [ebp + 0x23]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.10007d44
mov ecx, dword [ebp + 0xc]
add esp, 0x10
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x20
mov byte [ebp + ecx - 0x34], al
jl 0x100077df
dec dword [ebp + 0x18]
jns 0x10007796
push 0x20
push 0x10071a88
push esi
call fcn.1004ccc0
push dword [edi]
lea eax, [esi + 0x20]
push dword [edi + 4]
push eax
call fcn.1004ccc0
mov eax, dword [edi]
push esi
add eax, 0x20
push eax
push esi
call fcn.10008531
push 0x10
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1004d090
add esp, 0x30
jmp 0x10007765
xor edi, edi
push esi
call fcn.10027011
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret