Function at 0x10084b70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x103b2018]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, ecx
cmp dword [esi], 0
mov ebx, edx
mov dword [esp + 0x14], ebx
je 0x10084bad
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10126cba
add esp, 0x30
ret
mov ecx, dword [esi + 4]
cmp ecx, 2
je 0x10084bd2
cmp dword [esi + 8], 0
jne 0x10084bd2
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10126cba
add esp, 0x30
ret
test ebx, ebx
je 0x10084ef9
test eax, eax
jle 0x10084ef9
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
push edi
mov dword [esp + 0x14], eax
je 0x10084eb4
sub ecx, 1
je 0x10084df2
sub ecx, 1
je 0x10084c1d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10126cba
add esp, 0x30
ret
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], eax
test eax, eax
jle 0x10084ee3
xor edi, edi
jmp 0x10084c50
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov bl, byte [esp + 0x1d]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x40], eax
call fcn.100851d0
movzx ecx, byte [esp + 0x24]
add cl, cl
mov al, bl
shr al, 7
or al, cl
mov cl, byte [esp + 0x27]
mov byte [esp + 0x24], al
mov al, byte [esp + 0x26]
mov dl, al
shr dl, 7
add al, al
add bl, bl
or dl, bl
mov byte [esp + 0x25], dl
mov dl, cl
shr dl, 7
or dl, al
mov al, byte [esp + 0x28]
mov byte [esp + 0x26], dl
mov dl, al
shr dl, 7
add cl, cl
or dl, cl
mov cl, byte [esp + 0x29]
mov byte [esp + 0x27], dl
mov dl, cl
shr dl, 7
add al, al
or dl, al
mov al, byte [esp + 0x2a]
mov byte [esp + 0x28], dl
mov dl, al
shr dl, 7
add cl, cl
or dl, cl
mov cl, byte [esp + 0x2b]
mov byte [esp + 0x29], dl
mov dl, cl
shr dl, 7
add al, al
or dl, al
mov al, byte [esp + 0x2c]
mov byte [esp + 0x2a], dl
mov dl, al
shr dl, 7
add cl, cl
or dl, cl
mov cl, byte [esp + 0x2d]
mov byte [esp + 0x2b], dl
mov dl, cl
shr dl, 7
add al, al
or dl, al
mov al, byte [esp + 0x2e]
mov byte [esp + 0x2c], dl
mov dl, al
shr dl, 7
add cl, cl
or dl, cl
mov cl, byte [esp + 0x2f]
mov byte [esp + 0x2d], dl
mov dl, cl
shr dl, 7
add al, al
add esp, 8
or dl, al
mov byte [esp + 0x26], dl
mov al, byte [esp + 0x28]
add cl, cl
mov dl, al
shr dl, 7
or dl, cl
mov cl, byte [esp + 0x29]
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x27], dl
mov dl, cl
shr dl, 7
add al, al
or dl, al
mov al, byte [esp + 0x2a]
add cl, cl
mov byte [esp + 0x28], dl
mov dl, al
shr dl, 7
or dl, cl
movzx ecx, byte [esp + 0x2b]
shr cl, 7
add al, al
or cl, al
mov byte [esp + 0x2a], cl
mov eax, edi
mov byte [esp + 0x29], dl
shr eax, 3
movzx ebx, byte [eax + ebx]
mov edx, edi
and edx, 7
mov cl, 7
sub cl, dl
shr bl, cl
movzx ecx, byte [esp + 0x2b]
and bl, 1
add cl, cl
or bl, cl
mov byte [esp + 0x2b], bl
movzx ebx, byte [esp + 0x2c]
and bl, 0x80
mov cl, dl
shr bl, cl
inc edi
xor byte [eax + ebp], bl
cmp edi, 0x80
jl 0x10084c50
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x10084c45
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
shl eax, 7
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10126cba
add esp, 0x30
ret
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
test eax, eax
jle 0x10084ee3
lea ebx, [ebx]
lea edx, [esp + 0x2c]
push edx
push ebx
mov edi, esi
call fcn.100855b0
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x28]
xor dword [esp + 0x40], edi
mov edi, dword [ebx]
mov edx, dword [esp + 0x3c]
xor edx, dword [esp + 0x2c]
mov dword [ebp], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x18]
dec eax
add esp, 8
add ebx, 0x10
add ebp, 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], eax
test eax, eax
jg 0x10084e20
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
shl eax, 7
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10126cba
add esp, 0x30
ret
mov dword [esp + 0x10], eax
test eax, eax
jle 0x10084ee3
lea esp, [esp]
push ebp
push ebx
mov edi, esi
call fcn.100855b0
mov eax, dword [esp + 0x18]
dec eax
add esp, 8
add ebx, 0x10
add ebp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jg 0x10084ec0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
shl eax, 7
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10126cba
add esp, 0x30
ret
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10126cba
add esp, 0x30
ret