Function at 0x140097870
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r13
push r15
sub rsp, 0xc0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rcx + 0x80]
mov r12, qword [rcx + 0x130]
xor r13d, r13d
test byte [rcx + 0x19c], 0x20
mov rbx, rcx
lea rsi, [rax + 0x120]
je 0x1400978ed
mov r15d, 0x4000
cmp dword [rax + 0xe8], r13d
jne 0x1400978f0
mov edx, 0x8f
lea r9, [0x140194720]
lea r8d, [r13 + 0x44]
lea ecx, [rdx - 0x7b]
mov dword [rsp + 0x20], 0x134
call fcn.140073540
or eax, 0xffffffff
jmp 0x140097d9a
mov r15, r13
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x108], r14
mov ebp, 0xffffff00
cmp dword [rbx + 0x4c], 0xf1
mov r14d, 0x300
nop word [rax + rax]
jne 0x14009792c
cmp dword [rbx + 0x70], 5
jae 0x1400979be
mov rax, qword [rbx + 0x80]
xor r9d, r9d
mov rcx, rbx
mov r8d, dword [rax + 0xf8]
lea edx, [r9 + 5]
call fcn.140097600
test eax, eax
jle 0x140097d82
mov rcx, qword [rbx + 0x68]
mov dword [rbx + 0x4c], 0xf1
movzx eax, byte [rcx]
mov dword [rsi], eax
movzx eax, byte [rcx + 2]
movzx edi, byte [rcx + 1]
movzx edx, byte [rcx + 4]
shl di, 8
or di, ax
movzx eax, byte [rcx + 3]
shl eax, 8
or edx, eax
mov dword [rsi + 4], edx
cmp dword [rbx + 0x1a8], r13d
jne 0x140097994
movsx eax, di
cmp eax, dword [rbx]
jne 0x140097bc1
and di, bp
cmp di, r14w
jne 0x140097d5f
mov rax, qword [rbx + 0x80]
mov rcx, qword [rax + 0xf8]
mov eax, edx
sub rcx, 5
cmp rax, rcx
ja 0x140097d24
mov eax, dword [rbx + 0x70]
mov ecx, dword [rsi + 4]
sub eax, 5
cmp ecx, eax
jbe 0x1400979f0
test ecx, ecx
jle 0x140097c0d
mov r8d, ecx
mov edx, ecx
mov r9d, 1
mov rcx, rbx
call fcn.140097600
mov ecx, eax
test eax, eax
jle 0x140097c0d
mov rdx, qword [rbx + 0x68]
mov dword [rbx + 0x4c], 0xf0
mov eax, dword [rsi + 4]
add rdx, 5
lea rcx, [r15 + 0x4540]
mov qword [rsi + 0x18], rdx
cmp rax, rcx
ja 0x140097d0d
mov qword [rsi + 0x10], rdx
mov rax, qword [rbx + 8]
mov rcx, rbx
mov r8, qword [rax + 0xc8]
xor edx, edx
call qword [r8]
mov r14d, eax
test eax, eax
je 0x140097cf3
test r12, r12
je 0x140097b5d
mov r8, qword [rbx + 0xd0]
test r8, r8
je 0x140097b5d
mov rcx, qword [rbx + 0xd8]
mov rax, r13
test rcx, rcx
je 0x140097a63
mov rax, qword [rcx]
test rax, rax
je 0x140097b5d
test rcx, rcx
je 0x140097c31
mov rax, qword [rcx]
test rax, rax
je 0x140097c31
mov ebp, dword [rax + 8]
cmp ebp, 0x40
ja 0x140097c53
mov r9d, dword [rsi]
mov edx, dword [rsi + 4]
shr r9d, 8
add r9d, edx
cmp r9d, ebp
jb 0x140097c14
mov rax, qword [r8]
mov ecx, dword [rax + 0x10]
and ecx, 0xf0007
cmp ecx, 2
jne 0x140097ade
lea eax, [rbp + 1]
cmp r9d, eax
jb 0x140097c14
cmp ecx, ecx
jne 0x140097ade
lea rcx, [rsp + 0x70]
mov r8d, ebp
mov rdx, rsi
lea rdi, [rsp + 0x70]
call fcn.1400c9c30
sub dword [rsi + 4], ebp
jmp 0x140097ae9
sub edx, ebp
mov edi, edx
mov dword [rsi + 4], edi
add rdi, qword [rsi + 0x10]
mov rax, qword [rbx + 8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov r9, qword [rax + 0xc8]
mov rcx, rbx
call qword [r9 + ioctlsocket]
test eax, eax
js 0x140097b3e
test rdi, rdi
je 0x140097b3e
xor r8b, r8b
mov rdx, r13
test ebp, ebp
je 0x140097b42
lea rax, [rsp + 0x30]
sub rdi, rax
nop
lea rax, [rsp + 0x30]
add rax, rdx
inc rdx
movzx ecx, byte [rax + rdi]
xor cl, byte [rax]
or r8b, cl
cmp rdx, rbp
jb 0x140097b20
test r8b, r8b
je 0x140097b42
or r14d, 0xffffffff
mov eax, dword [rsi + 4]
lea rcx, [rbp + 0x4400]
add rcx, r15
cmp rax, rcx
ja 0x140097cd5
mov ebp, 0xffffff00
test r14d, r14d
js 0x140097cd5
cmp qword [rbx + 0xe0], r13
je 0x140097b92
mov eax, dword [rsi + 4]
lea rcx, [r15 + 0x4400]
cmp rax, rcx
ja 0x140097ca7
mov rcx, rbx
call fcn.140097dc0
test eax, eax
je 0x140097c8a
mov eax, dword [rsi + 4]
lea rcx, [r15 + 0x4000]
cmp rax, rcx
ja 0x140097cbe
mov dword [rsi + 8], r13d
mov dword [rbx + 0x70], r13d
cmp dword [rsi + 4], r13d
je 0x14009790d
mov eax, 1
jmp 0x140097d82
mov edx, 0x8f
lea r9, [0x140194748]
mov dword [rsp + 0x20], 0x152
lea ecx, [rdx - 0x7b]
lea r8d, [rdx + 0x7c]
call fcn.140073540
movzx ecx, di
mov eax, ecx
xor eax, dword [rbx]
test eax, 0xff00
jne 0x140097c03
cmp qword [rbx + 0xe8], r13
jne 0x140097c03
cmp qword [rbx + 0xf0], r13
jne 0x140097c03
mov dword [rbx], ecx
mov edi, 0x46
jmp 0x140097d4d
mov eax, ecx
jmp 0x140097d82
mov edi, 0x32
mov dword [rsp + 0x20], 0x1be
lea r9, [0x140194858]
lea r8d, [rdi + 0x6e]
jmp 0x140097d3e
mov edx, 0xa2
lea r9, str.....opensslopensslcryptoevpevp_lib.c
mov ecx, 6
lea r8d, [rdx - 3]
mov dword [rsp + 0x20], 0x10e
call fcn.140073540
lea r9, [0x140194810]
lea rdx, [0x140194830]
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0x1ae
call fcn.140090b40
mov ecx, reloc.WS2_32.dll_shutdown
call qword [sym.imp.MSVCR120.dll_raise]
mov ecx, 3
call qword [sym.imp.MSVCR120.dll__exit]
int3
mov edi, 0x1e
mov dword [rsp + 0x20], 0x1f5
lea r9, [0x1401948d0]
lea r8d, [rdi + 0x4d]
jmp 0x140097d3e
mov dword [rsp + 0x20], 0x1ef
lea r9, [0x1401948a8]
mov r8d, 0x8c
jmp 0x140097d39
mov dword [rsp + 0x20], 0x1fd
lea r9, [0x1401948f8]
mov r8d, __WSAFDIsSet
jmp 0x140097d39
mov edi, socket
mov dword [rsp + 0x20], 0x1e5
lea r9, [0x140194880]
mov ecx, edi
mov r8d, 0x119
jmp 0x140097d43
mov edi, reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x20], 0x19b
lea r9, [0x1401947e8]
lea r8d, [rdi + 0x6c]
jmp 0x140097d3e
mov dword [rsp + 0x20], 0x18c
lea r9, [0x1401947c0]
mov r8d, __WSAFDIsSet
jmp 0x140097d39
mov dword [rsp + 0x20], 0x164
lea r9, [0x140194798]
mov r8d, 0xc6
mov edi, reloc.WS2_32.dll_shutdown
mov ecx, socket
mov edx, 0x8f
call fcn.140073540
mov r8d, edi
mov edx, 2
mov rcx, rbx
call fcn.1400990f0
jmp 0x140097d7f
mov edx, 0x8f
lea r9, [0x140194770]
mov dword [rsp + 0x20], 0x15d
lea ecx, [rdx - 0x7b]
lea r8d, [rdx + 0x7c]
call fcn.140073540
or eax, 0xffffffff
mov rdi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov r14, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140129b50
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rsi
pop rbx
ret