Function at 0x1007e280
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 0x1007e4d9
jb 0x1007e2c0
cmp ecx, 0xffffffe0
ja 0x1007e4d9
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x1007e2ea
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 + 0x1c]
or ebx, eax
xor ecx, ecx
mov cl, byte [esi + 0xf]
shl ebx, 8
or ebx, ecx
test ebp, ebp
je 0x1007e363
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1007e34b
mov al, byte [edi]
mov dl, byte [esi + ebp + 0x10]
mov ecx, dword [esp + 0x20]
xor dl, al
inc edi
mov byte [ecx], dl
mov dl, byte [esi + ebp + 0x40]
inc ecx
xor dl, al
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
mov byte [esi + ebp + 0x40], dl
dec ecx
inc ebp
mov dword [esp + 0x24], ecx
and ebp, 0xf
jne 0x1007e314
jmp 0x1007e353
test ebp, ebp
jne 0x1007e4cb
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call fcn.1007d4c0
add esp, 8
mov edx, dword [esp + 0x24]
cmp edx, 0xc00
jb 0x1007e3f5
mov eax, 0xaaaaaaab
mul edx
shr edx, 0xb
mov dword [esp + 0x1c], edx
push 0xc00
lea eax, [esi + 0x60]
push edi
push eax
lea eax, [esi + 0x40]
push eax
call fcn.1007d7b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push esi
push edx
push 0xc0
push eax
push edi
call dword [esp + 0x4c]
add ebx, 0xc0
add esp, 0x24
mov ecx, ebx
mov eax, ebx
shr ecx, 0x18
shr eax, 8
mov byte [esi + 0xc], cl
mov ecx, dword [esp + 0x20]
mov byte [esi + 0xe], al
mov eax, 0xc00
add ecx, eax
mov edx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
add edi, eax
sub ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [esi + 0xf], bl
shr edx, 0x10
dec eax
mov byte [esi + 0xd], dl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jne 0x1007e381
mov edx, ecx
mov ecx, edx
and ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
je 0x1007e46d
mov eax, ecx
push ecx
lea ecx, [esi + 0x60]
push edi
lea edx, [esi + 0x40]
push ecx
shr eax, 4
push edx
mov dword [esp + 0x2c], eax
call fcn.1007d7b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push esi
push eax
push ecx
push edx
push edi
call dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
add esp, 0x24
add ebx, edx
mov eax, ebx
mov ecx, ebx
shr eax, 0x18
shr ecx, 0x10
mov byte [esi + 0xc], al
mov eax, dword [esp + 0x10]
mov byte [esi + 0xd], cl
mov ecx, dword [esp + 0x20]
add ecx, eax
mov edx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
shr edx, 8
add edi, eax
sub ecx, eax
mov byte [esi + 0xe], dl
mov byte [esi + 0xf], bl
mov dword [esp + 0x24], ecx
mov edx, ecx
test edx, edx
je 0x1007e4cb
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x10]
push eax
push ecx
push esi
call dword [esi + 0x170]
add esp, 0xc
inc ebx
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x18
mov eax, ebx
mov byte [esi + 0xe], cl
mov ecx, dword [esp + 0x24]
mov byte [esi + 0xc], dl
mov edx, dword [esp + 0x20]
mov byte [esi + 0xf], bl
shr eax, 0x10
dec ecx
mov byte [esi + 0xd], al
lea eax, [edx + ebp]
sub edi, edx
lea edx, [ecx + 1]
mov cl, byte [edi + eax]
mov bl, byte [esi + ebp + 0x40]
xor bl, cl
mov byte [esi + ebp + 0x40], bl
mov bl, byte [esi + ebp + 0x10]
xor bl, cl
inc ebp
mov byte [eax], bl
inc eax
dec edx
jne 0x1007e4b1
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