Function at 0x10117790
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb0
call fcn.10021e20
mov eax, dword [0x10195170]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xd0]
push ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc0]
push ebp
mov dword [esp + 8], eax
xor ebp, ebp
mov eax, dword [esp + 0xd0]
push esi
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0xe4]
test ecx, ecx
jne 0x10117810
call fcn.100ccd20
mov ecx, eax
mov dword [esp + 0x14], eax
test edi, edi
push ecx
cmove edi, ecx
mov dword [esp + 0x2c], edi
call fcn.100c6da0
add esp, 4
mov edi, eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0xc8], ebp
jle 0x10117b7a
test ebx, ebx
jle 0x10117b7a
cmp esi, ebx
jl 0x10117b08
lea eax, [edi*2 + 2]
cmp esi, eax
jl 0x10117b08
mov ebx, esi
push 0x9b
sub ebx, edi
dec ebx
push str..crypto_rsa_rsa_oaep.c
push ebx
mov dword [esp + 0x38], ebx
call fcn.100b0240
push 0x9c
push str..crypto_rsa_rsa_oaep.c
push esi
mov ebp, eax
call fcn.100b0240
add esp, 0x18
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x10117b3a
test eax, eax
je 0x10117b3a
push esi
push 0
push eax
call fcn.10021510
mov eax, dword [esp + 0x28]
sub esi, eax
add esi, dword [esp + 0x24]
push eax
push dword [esp + 0x20]
push esi
call fcn.10020ec0
mov edx, dword [esp + 0x30]
push dword [esp + 0x40]
push ebx
movzx eax, byte [edx]
lea esi, [edx + 1]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
add eax, edi
neg ecx
push eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x60]
push edi
push eax
mov dword [esp + 0x3c], ecx
call fcn.10117280
add esp, 0x2c
test eax, eax
jne 0x10117b55
xor edx, edx
test edi, edi
jle 0x10117990
cmp edi, 0x10
jb 0x10117971
lea eax, [esi - 1]
lea ebx, [esp + 0x3c]
add eax, edi
cmp ebx, eax
lea ecx, [esp + edi + 0x3b]
mov ebx, dword [esp + 0x2c]
ja 0x1011791e
cmp ecx, esi
jae 0x10117971
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x1011792c
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, edi
mov edi, esi
sub ecx, eax
lea eax, [esp + 0x3c]
mov ebx, eax
sub edi, ebx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
jmp 0x10117950
movdqu xmm1, xmmword [ebx + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x10117950
mov ebx, dword [esp + 0x2c]
cmp edx, edi
jge 0x10117990
lea eax, [esp + 0x3c]
sub esi, eax
jmp 0x10117980
lea ecx, [esp + 0x3c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x10117980
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push edi
push eax
push ebx
push ebp
call fcn.10117280
add esp, 0x14
test eax, eax
jne 0x10117b55
xor edx, edx
test ebx, ebx
jle 0x10117a21
cmp ebx, 0x10
jb 0x10117a00
mov esi, dword [esp + 0x1c]
lea ecx, [ebp - 1]
add ecx, ebx
lea eax, [esi - 1]
add eax, ebx
cmp ebp, eax
ja 0x101179cd
cmp ecx, esi
jae 0x10117a00
mov eax, ebx
and eax, reloc.WS2_32.dll_ntohs
jns 0x101179db
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, ebx
sub ecx, eax
mov eax, ebp
sub esi, ebp
movdqu xmm1, xmmword [esi + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x101179e3
cmp edx, ebx
jge 0x10117a21
mov edi, dword [esp + 0x1c]
lea ecx, [edx + ebp]
mov esi, ebx
sub edi, ebp
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x10117a11
mov edi, dword [esp + 0x24]
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push 0
push eax
push dword [esp + 0xec]
push dword [esp + 0x44]
call fcn.100c34b0
add esp, 0x18
test eax, eax
je 0x10117b55
push edi
lea eax, [esp + 0x80]
push eax
push ebp
call fcn.100c0880
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp edi, ebx
jge 0x10117ad7
movzx esi, byte [edi + ebp]
not ecx
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov eax, ecx
and ecx, edi
not eax
inc edi
and eax, dword [esp + 0x20]
or eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
or ecx, edx
mov edx, dword [esp + 0x10]
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [esp + 0x14], ecx
neg eax
or eax, ecx
and edx, eax
mov dword [esp + 0x10], edx
cmp edi, ebx
jl 0x10117a81
test edx, ecx
je 0x10117b08
mov eax, dword [esp + 0x20]
mov esi, ebx
inc eax
sub esi, eax
cmp dword [esp + 0xc8], esi
jge 0x10117b28
push 0xe1
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0xa1
push 4
call fcn.100bceb0
add esp, 0x14
push 0xee
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
or esi, 0xffffffff
call fcn.100bceb0
add esp, 0x14
jmp 0x10117b58
push esi
add eax, ebp
push eax
push dword [esp + 0x3c]
call fcn.10020ec0
add esp, 0xc
jmp 0x10117b58
push 0x9e
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call fcn.100bceb0
add esp, 0x14
or esi, 0xffffffff
test ebp, ebp
je 0x10117b65
push ebp
call fcn.100b01c0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10117b76
push eax
call fcn.100b01c0
add esp, 4
mov eax, esi
jmp 0x10117b7d
or eax, 0xffffffff
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10020a26
add esp, 0xb0
ret