Function at 0x10090f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x1ec], esi
mov dword [ebp - 0x1f0], 1
call fcn.1006b560
add esp, 4
mov dword [ebp - 0x1f4], eax
test eax, eax
js 0x10090fa0
lea eax, [ebp - 0x1e4]
push eax
call fcn.100b1bb0
add esp, 4
test edi, edi
jne 0x10090f62
xor ecx, ecx
jmp 0x10090f79
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x10090f79
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10090f70
sub ecx, edx
push 0
push ebx
push ecx
lea eax, [ebp - 0x1e4]
push edi
push eax
call fcn.100b1cb0
add esp, 0x14
test eax, eax
jne 0x10090fb3
lea eax, [ebp - 0x1e4]
push eax
call fcn.100b1af0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x10091161
mov edx, 1
cmp ecx, dword [ebp - 0x1f4]
mov ebx, ecx
mov eax, edx
mov byte [ebp - 0x1e5], dl
cmovg ebx, dword [ebp - 0x1f4]
shr eax, 0x18
mov byte [ebp - 0x1e8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1e7], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1e6], al
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100b1b30
add esp, 8
test eax, eax
je 0x10090f91
push dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push dword [ebp - 0x1f8]
push eax
call fcn.100b1ed0
add esp, 0xc
test eax, eax
je 0x10091186
push 4
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100b1ed0
add esp, 0xc
test eax, eax
je 0x10091186
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100b1c10
add esp, 0xc
test eax, eax
je 0x10091186
lea eax, [ebp - 0x114]
push eax
call fcn.100b1af0
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.1003da60
mov edi, 1
add esp, 0x10
cmp dword [ebp + 0x18], edi
jle 0x1009113c
lea esp, [esp]
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100b1b30
add esp, 8
test eax, eax
je 0x10090f91
push dword [ebp - 0x1f4]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100b1ed0
add esp, 0xc
test eax, eax
je 0x10091186
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100b1c10
add esp, 0xc
test eax, eax
je 0x10091186
lea eax, [ebp - 0x114]
push eax
call fcn.100b1af0
add esp, 4
test ebx, ebx
jle 0x10091132
mov eax, esi
mov edx, ebx
lea esi, [ebp - 0x44]
sub esi, dword [ebp - 0x1ec]
lea esp, [esp]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x10091120
mov esi, dword [ebp - 0x1ec]
inc edi
cmp edi, dword [ebp + 0x18]
jl 0x100910a0
mov ecx, dword [ebp + 0x20]
add esi, ebx
mov edx, dword [ebp - 0x1f0]
sub ecx, ebx
inc edx
mov dword [ebp + 0x20], ecx
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], esi
test ecx, ecx
jne 0x10090fc3
lea eax, [ebp - 0x1e4]
push eax
call fcn.100b1af0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1e4]
push eax
call fcn.100b1af0
lea eax, [ebp - 0x114]
push eax
call fcn.100b1af0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret