Function at 0x1007e020
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10084230
push ebx
mov ecx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, dword [esi + 0x174]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
xor eax, eax
add ecx, ebx
adc eax, edi
cmp eax, 0xf
ja 0x1007e273
jb 0x1007e060
cmp ecx, 0xffffffe0
ja 0x1007e273
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x1007e08a
lea ecx, [esi + 0x60]
lea edx, [esi + 0x40]
push ecx
push edx
call fcn.1007d4c0
add esp, 8
mov dword [esi + 0x16c], 0
xor ebx, ebx
mov ebp, dword [esi + 0x168]
mov bh, byte [esi + 0xc]
xor eax, eax
mov bl, byte [esi + 0xd]
mov al, byte [esi + 0xe]
shl ebx, 8
mov edi, dword [esp + 0x20]
or ebx, eax
xor ecx, ecx
mov cl, byte [esi + 0xf]
shl ebx, 8
or ebx, ecx
test ebp, ebp
je 0x1007e101
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1007e0e9
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + ebp + 0x10]
xor al, byte [ecx]
mov byte [edi], al
mov dl, byte [esi + ebp + 0x40]
xor dl, al
inc edi
inc ecx
mov byte [esi + ebp + 0x40], dl
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
dec ecx
inc ebp
and ebp, 0xf
mov dword [esp + 0x24], ecx
jne 0x1007e0b4
jmp 0x1007e0f1
test ebp, ebp
jne 0x1007e265
lea edx, [esi + 0x60]
lea eax, [esi + 0x40]
push edx
push eax
call fcn.1007d4c0
add esp, 8
mov ecx, dword [esp + 0x24]
cmp ecx, 0xc00
jb 0x1007e191
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push 0xc0
push edi
push edx
call dword [esp + 0x3c]
add ebx, 0xc0
push 0xc00
mov eax, ebx
push edi
shr eax, 0x18
mov byte [esi + 0xc], al
lea eax, [esi + 0x60]
mov ecx, ebx
mov edx, ebx
push eax
lea eax, [esi + 0x40]
shr ecx, 0x10
shr edx, 8
push eax
mov byte [esi + 0xd], cl
mov byte [esi + 0xe], dl
mov byte [esi + 0xf], bl
call fcn.1007d7b0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov eax, 0xc00
add esp, 0x24
add edi, eax
add edx, eax
sub ecx, eax
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jne 0x1007e11f
mov eax, ecx
and eax, 0xfffffff0
mov dword [esp + 0x20], eax
je 0x1007e207
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shr eax, 4
push esi
push ecx
push eax
push edi
push edx
mov dword [esp + 0x24], eax
call dword [esp + 0x3c]
add ebx, dword [esp + 0x24]
mov eax, ebx
mov ecx, ebx
mov edx, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
shr ecx, 0x10
shr edx, 8
mov byte [esi + 0xc], al
mov eax, dword [esp + 0x34]
mov byte [esi + 0xd], cl
mov ecx, dword [esp + 0x30]
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x38]
add ecx, eax
sub edx, eax
push eax
mov dword [esp + 0x34], ecx
lea eax, [esi + 0x60]
push edi
lea ecx, [esi + 0x40]
push eax
push ecx
mov dword [esp + 0x48], edx
call fcn.1007d7b0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add esp, 0x24
add edi, eax
test ecx, ecx
je 0x1007e265
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x10]
push edx
push eax
push esi
call dword [esi + 0x170]
add esp, 0xc
inc ebx
mov eax, ebx
mov edx, ebx
shr eax, 8
mov ecx, ebx
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x24]
mov byte [esi + 0xf], bl
shr edx, 0x10
shr ecx, 0x18
mov byte [esi + 0xd], dl
mov edx, dword [esp + 0x1c]
dec eax
mov byte [esi + 0xc], cl
lea ecx, [edi + ebp]
sub edx, edi
lea edi, [eax + 1]
mov al, byte [esi + ebp + 0x10]
mov bl, byte [edx + ecx]
xor al, bl
mov byte [ecx], al
mov bl, byte [esi + ebp + 0x40]
xor bl, al
mov byte [esi + ebp + 0x40], bl
inc ebp
inc ecx
dec edi
jne 0x1007e24b
mov dword [esi + 0x168], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret