Function at 0x10078620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov ebx, eax
cmp dword [edi + 0x1e6cc], 0
je 0x10078655
add eax, 7
cdq
and edx, 7
lea ebx, [edx + eax]
and ebx, 0xfffffff8
mov dword [esp + 0x1c], ebx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], esi
test ebx, ebx
je 0x10078795
nop word [eax + eax]
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x1c]
jne 0x100786a7
cmp dword [ecx + 0x20], eax
je 0x1007878e
mov eax, dword [ecx + 0x10]
add eax, 1
js 0x1007878e
cmp eax, dword [ecx + 4]
jge 0x1007878e
push eax
call fcn.100773b0
test eax, eax
je 0x1007878e
mov esi, dword [edi + 0x38]
mov eax, ebx
cdq
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
cmp edx, edi
jg 0x100786c5
jl 0x100786bd
cmp eax, ecx
jae 0x100786c5
mov eax, ebx
mov dword [esp + 0x28], eax
jmp 0x100786cb
mov eax, ecx
mov dword [esp + 0x28], ecx
test eax, eax
je 0x1007878a
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
nop dword [eax]
or ecx, edi
jne 0x10078705
mov eax, dword [esi + 0x10]
add eax, 1
js 0x1007877f
cmp eax, dword [esi + 4]
jge 0x1007877f
push eax
mov ecx, esi
call fcn.100773b0
test eax, eax
je 0x1007877f
mov edi, dword [esi + 0x18]
mov eax, ebx
cdq
cmp edx, dword [esi + 0x1c]
jg 0x10078718
jl 0x10078716
cmp eax, edi
jae 0x10078718
mov edi, ebx
mov ecx, dword [esi + 0x28]
mov eax, edi
cdq
mov dword [esp + 0x24], eax
push edx
push dword [esp + 0x28]
mov eax, dword [ecx]
push dword [esp + 0x20]
mov dword [esp + 0x38], edx
call dword [eax + 0x18]
test eax, eax
je 0x1007877f
add dword [esp + 0x18], edi
sub ebx, edi
mov ecx, dword [esi + 0x18]
sub ecx, dword [esp + 0x24]
mov edi, dword [esi + 0x1c]
sbb edi, dword [esp + 0x2c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edi
test ebx, ebx
jne 0x100786e0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub ebx, eax
add dword [esp + 0x20], eax
add ecx, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x10078792
jmp 0x10078670
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
cmp dword [edi + 0x1e6cc], 0
je 0x100788a1
cmp byte [edi + 0x1f718], 0
je 0x100788a1
lea eax, [ecx + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
and eax, 0x1fffffff
mov dword [esp + 0x20], eax
jbe 0x100788a1
lea edx, [edi + 0x1f79d]
mov dword [esp + 0x18], edx
mov eax, dword [esi]
mov ebx, eax
mov ecx, dword [esi + 4]
mov esi, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0x10
xor ebx, dword [esi]
lea esi, [esi - 4]
mov edx, dword [esp + 0x14]
mov eax, ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
mov edi, ebx
shr ecx, 0x18
mov edx, dword [edx + eax*4 + 0x1fba1]
mov eax, dword [esp + 0x14]
add edx, dword [eax + ecx*4 + 0x1f7a1]
mov eax, ebx
mov ecx, dword [esp + 0x14]
shr eax, 8
movzx eax, al
xor edx, dword [ecx + eax*4 + 0x1ffa1]
movzx eax, bl
add edx, dword [ecx + eax*4 + 0x203a1]
xor edx, dword [esp + 0x28]
sub dword [esp + 0x24], 1
mov ebx, edx
mov dword [esp + 0x28], edi
jne 0x100787f1
xor ebx, dword [ecx + 0x1f75d]
mov ecx, dword [ecx + 0x1f759]
mov esi, dword [ebp + 8]
xor ecx, edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov eax, dword [edi + 0x1f751]
xor eax, ecx
mov dword [esi], eax
mov eax, dword [edi + 0x1f755]
xor eax, ebx
mov dword [esi + 4], eax
add esi, 8
sub dword [esp + 0x20], 1
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x1f751], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1f755], eax
mov dword [ebp + 8], esi
jne 0x100787d4
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x10], eax
pop edi
cmovl eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8