Function at 0x1007f110
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10084230
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov bl, byte [esi]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x2c], bl
test bl, 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
jne 0x1007f157
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x20]
add esp, 0xc
add ecx, 1
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x24]
adc eax, 0
mov dword [esi + 0x24], eax
mov al, bl
mov ebx, 0xf
and eax, 7
xor ecx, ecx
sub ebx, eax
mov byte [esi], al
mov eax, ebx
mov dword [esp + 0x10], ebx
cmp eax, 0xf
jae 0x1007f186
xor edx, edx
mov dl, byte [eax + esi]
mov byte [eax + esi], 0
or ecx, edx
shl ecx, 8
inc eax
cmp eax, 0xf
jb 0x1007f172
mov ebp, dword [esp + 0x38]
xor eax, eax
mov al, byte [esi + 0xf]
mov byte [esi + 0xf], 1
or ecx, eax
cmp ecx, ebp
je 0x1007f1a3
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret
mov edx, dword [esi + 0x20]
lea ecx, [ebp + 0xf]
or ecx, 8
shr ecx, 3
add edx, ecx
mov dword [esi + 0x20], edx
mov ecx, dword [esi + 0x24]
adc ecx, 0
mov eax, ecx
mov dword [esi + 0x24], ecx
cmp eax, 0x20000000
jb 0x1007f1db
ja 0x1007f1cf
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x1007f1db
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x1c
ret
push edi
mov edi, ebp
shr edi, 4
je 0x1007f25c
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esi + 0x10]
push edx
push esi
push eax
push edi
push ebx
push ecx
call dword [esp + 0x58]
shl edi, 4
mov eax, edi
mov edi, dword [esp + 0x4c]
add esp, 0x18
add edi, eax
add ebx, eax
sub ebp, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
je 0x1007f2c3
shr eax, 4
mov edi, eax
mov ecx, 8
xor eax, eax
dec ecx
xor ebx, ebx
mov edx, edi
mov bl, byte [ecx + esi + 8]
and edx, 0xff
add ebx, eax
shr edi, 8
lea eax, [ebx + edx]
mov byte [ecx + esi + 8], al
shr eax, 8
test ecx, ecx
je 0x1007f252
test edi, edi
jne 0x1007f228
test eax, eax
jne 0x1007f228
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
jmp 0x1007f260
mov edi, dword [esp + 0x34]
test ebp, ebp
je 0x1007f2c7
xor eax, eax
test ebp, ebp
jbe 0x1007f27c
mov cl, byte [eax + edi]
mov dl, byte [esi + eax + 0x10]
xor dl, cl
mov byte [esi + eax + 0x10], dl
inc eax
cmp eax, ebp
jb 0x1007f26a
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call dword [esp + 0x30]
add esp, 0x18
xor ecx, ecx
test ebp, ebp
jbe 0x1007f2c7
lea edx, [esp + 0x1c]
lea eax, [esp + 0x1c]
sub edi, edx
mov edx, dword [esp + 0x38]
sub edx, eax
lea eax, [esp + ecx + 0x1c]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
cmp ecx, ebp
mov byte [edx + eax], bl
jb 0x1007f2b2
mov ebx, dword [esp + 0x14]
cmp ebx, 0x10
jae 0x1007f2e6
mov ecx, 0x10
lea edi, [ebx + esi]
sub ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
call dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
xor ebx, edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x10], ebx
mov edi, dword [esi + 0x14]
xor edx, ecx
xor edi, eax
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x1c]
add esp, 0xc
xor eax, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0x30]
mov byte [esi], al
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret