Function at 0x10168170
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc0
call fcn.100bab40
mov eax, dword [0x102db080]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov eax, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xec]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
push esi
push edi
test eax, eax
jne 0x101681e2
call fcn.101031d0
mov dword [esp + 0x34], eax
test ebp, ebp
push eax
cmove ebp, eax
mov dword [esp + 0x18], ebp
call fcn.10107ea0
add esp, 4
mov edi, eax
mov dword [esp + 0x28], edi
cmp dword [esp + 0xd8], ebx
jle 0x1016887e
mov esi, dword [esp + 0xe0]
test esi, esi
jle 0x1016887e
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
jl 0x10168857
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x10168857
mov ebp, ecx
push 0xcd
sub ebp, edi
dec ebp
push str.crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x38], ebp
call fcn.101034e0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10168284
call fcn.1010b5b0
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xcf
push str.crypto_rsa_rsa_oaep.c
call fcn.1010b6b0
push 0
push 0xc0100
push 4
call fcn.1010b760
add esp, 0x18
jmp 0x10168803
push 0xd3
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x44]
call fcn.101034e0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x101682b5
call fcn.1010b5b0
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xd5
jmp 0x10168264
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0x3c]
add edx, esi
add ecx, eax
mov dword [esp + 0x20], ecx
test eax, eax
jle 0x10168300
mov ebx, eax
mov ebp, ecx
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebp
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [ebp], cl
sub ebx, 1
jne 0x101682d0
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
movzx ebx, byte [ecx]
lea esi, [ecx + 1]
push dword [esp + 0x14]
inc ecx
mov dword [esp + 0x1c], esi
add ecx, edi
lea eax, [esp + 0x50]
push ebp
push ecx
lea ebx, [ebx - 1]
mov dword [esp + 0x3c], ecx
push edi
shr ebx, 0x1f
push eax
neg ebx
call fcn.10167fa0
add esp, 0x14
test eax, eax
jne 0x10168803
xor edx, edx
test edi, edi
jle 0x10168456
cmp edi, 8
jb 0x10168440
lea eax, [esi - 1]
lea ebp, [esp + 0x4c]
add eax, edi
cmp ebp, eax
lea ecx, [esp + edi + 0x4b]
mov ebp, dword [esp + 0x2c]
ja 0x10168365
cmp ecx, esi
jae 0x10168440
cmp edi, 0x40
jb 0x10168405
mov eax, edi
and eax, 0x8000003f
jns 0x1016837c
dec eax
or eax, 0xffffffc0
inc eax
lea ebp, [esp + 0x4c]
mov ecx, edi
sub ebp, esi
sub ecx, eax
mov dword [esp + 0x44], ebp
lea eax, [esi + 0x20]
mov edi, dword [esp + 0x44]
lea ebp, [esp + 0x5c]
sub ebp, esi
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
movups xmm0, xmmword [esp + edx + 0x4c]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x4c], xmm1
movups xmm0, xmmword [esp + edx + 0x5c]
movups xmm1, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x5c], xmm1
add edx, 0x40
movups xmm0, xmmword [edi + eax - 0x40]
movups xmm1, xmmword [eax - 0x40]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
movups xmm0, xmmword [esi + eax - 0x40]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x40], xmm1
cmp edx, ecx
jl 0x101683a3
mov edi, dword [esp + 0x28]
mov eax, edi
mov esi, dword [esp + 0x18]
and al, 0x3f
cmp al, 8
jb 0x1016843c
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x10168413
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, edi
sub ecx, eax
nop word [eax + eax]
movq xmm0, qword [esp + edx + 0x4c]
movq xmm1, qword [esi + edx]
pxor xmm1, xmm0
movq qword [esp + edx + 0x4c], xmm1
add edx, 8
cmp edx, ecx
jl 0x10168420
cmp edx, edi
jge 0x10168456
lea eax, [esp + 0x4c]
sub esi, eax
lea ecx, [esp + 0x4c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x10168446
push dword [esp + 0x14]
lea eax, [esp + 0x50]
push edi
push eax
push ebp
push dword [esp + 0x20]
call fcn.10167fa0
add esp, 0x14
test eax, eax
jne 0x10168803
xor edx, edx
test ebp, ebp
jle 0x10168595
mov ecx, dword [esp + 0x10]
cmp ebp, 8
jb 0x10168571
mov esi, dword [esp + 0x30]
lea eax, [esi - 1]
add eax, ebp
cmp ecx, eax
ja 0x101684a6
lea eax, [ecx - 1]
add eax, ebp
cmp eax, esi
jae 0x10168571
cmp ebp, 0x40
jb 0x1016852d
mov eax, ebp
and eax, 0x8000003f
jns 0x101684bd
dec eax
or eax, 0xffffffc0
inc eax
mov dword [esp + 0x14], ebp
add esi, 0x30
sub dword [esp + 0x14], eax
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x10]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [esi - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x14]
jl 0x101684d3
mov eax, ebp
and al, 0x3f
cmp al, 8
jb 0x1016856d
jmp 0x10168533
mov ecx, esi
sub ecx, dword [esp + 0x10]
mov eax, ebp
and eax, reloc.WS2_32.dll_getsockopt
jns 0x10168541
dec eax
or eax, 0xfffffff8
inc eax
mov esi, ebp
sub esi, eax
mov eax, dword [esp + 0x10]
add eax, edx
nop dword [eax + eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [ecx + eax - 8]
add edx, 8
pxor xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, esi
jl 0x10168550
mov ecx, dword [esp + 0x10]
cmp edx, ebp
jge 0x10168595
mov edi, dword [esp + 0x30]
mov esi, ebp
sub edi, dword [esp + 0x10]
add ecx, edx
sub esi, edx
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x10168583
mov edi, dword [esp + 0x28]
push 0
push dword [esp + 0x38]
lea eax, [esp + 0x94]
push 0
push eax
push dword [esp + 0xfc]
push dword [esp + 0x30]
call fcn.10101430
add esp, 0x18
test eax, eax
je 0x10168803
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push edi
push eax
push esi
call fcn.10001390
mov edx, dword [esp + 0x34]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and ebx, ecx
mov dword [esp + 0x14], ebx
xor ebx, ebx
cmp edx, ebp
jge 0x10168645
movzx esi, byte [edi + esi]
mov eax, ebx
mov edx, esi
not eax
xor edx, 1
dec edx
shr edx, 0x1f
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x1c], eax
not eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
and ecx, edi
and eax, dword [esp + 0x24]
inc edi
or eax, ecx
mov dword [esp + 0x24], eax
lea eax, [esi - 1]
mov esi, dword [esp + 0x10]
shr eax, 0x1f
neg eax
or eax, ebx
and dword [esp + 0x14], eax
cmp edi, ebp
jl 0x101685f5
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xd8]
mov eax, ebp
sub eax, dword [esp + 0x24]
mov esi, ebp
dec eax
sub esi, edx
sub ecx, eax
mov dword [esp + 0x40], eax
xor ecx, eax
xor eax, dword [esp + 0xd8]
or ecx, eax
mov eax, dword [esp + 0xd8]
xor ecx, eax
lea edi, [esi - 1]
shr ecx, 0x1f
dec ecx
mov dword [esp + 0x34], edi
and ecx, ebx
mov ebx, dword [esp + 0x14]
and ebx, ecx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x14], ebx
xor ecx, eax
mov eax, edi
xor eax, dword [esp + 0xd8]
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
neg ecx
mov dword [esp + 0x1c], ecx
not ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and eax, edi
and ecx, dword [esp + 0xd8]
mov edi, 1
or ecx, eax
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x34], edi
jle 0x1016875e
sub esi, dword [esp + 0x40]
inc edx
mov dword [esp + 0x44], edx
lea eax, [esi - 1]
mov dword [esp + 0x30], eax
and eax, edi
mov esi, ebp
sub esi, edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, esi
jge 0x10168746
mov eax, dword [esp + 0x10]
movzx ecx, cl
add eax, edx
mov ebp, ecx
mov dword [esp + 0x38], ecx
not ebp
sub esi, edx
nop dword [eax + eax]
mov dword [esp + 0x1c], ecx
lea eax, [eax + 1]
movzx ecx, byte [eax + edi - 1]
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
and bl, cl
movzx ecx, byte [eax - 1]
and dl, cl
mov ecx, dword [esp + 0x38]
or dl, bl
mov byte [eax - 1], dl
sub esi, 1
jne 0x10168710
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
add edi, edi
cmp edi, dword [esp + 0x34]
jl 0x101686e0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
xor esi, esi
test ecx, ecx
jle 0x101687d1
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
inc ebp
shr ecx, 0x1f
neg edi
mov dword [esp + 0x38], ecx
add ebp, edx
nop dword [eax]
mov eax, edi
lea ebp, [ebp + 1]
shr eax, 0x1f
inc edi
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
movzx eax, byte [ebp - 1]
mov dword [esp + 0x1c], ecx
not ecx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and dl, al
mov eax, dword [esp + 0x48]
movzx eax, byte [eax + esi]
and cl, al
mov eax, dword [esp + 0x48]
or cl, dl
mov byte [eax + esi], cl
inc esi
mov ecx, dword [esp + 0x38]
cmp esi, dword [esp + 0x24]
jl 0x10168780
mov ebp, dword [esp + 0x2c]
call fcn.1010b5b0
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0x13a
push str.crypto_rsa_rsa_oaep.c
call fcn.1010b6b0
push 0
push 0x79
push 4
call fcn.1010b760
mov eax, ebx
and eax, 1
push eax
call fcn.10119490
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.10001320
push 0x13f
push str.crypto_rsa_rsa_oaep.c
push ebp
push dword [esp + 0x24]
call fcn.101035d0
push 0x140
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x5c]
push dword [esp + 0x44]
call fcn.101035d0
mov dword [esp + 0x44], ebx
add esp, 0x28
not ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x1c]
and ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
or eax, ecx
jmp 0x10168881
call fcn.1010b5b0
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xc8
push str.crypto_rsa_rsa_oaep.c
call fcn.1010b6b0
push 0
push 0x79
push 4
call fcn.1010b760
add esp, 0x18
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b9f43
add esp, 0xc0
ret