Function at 0x1400fd170
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r13
push r15
sub rsp, 0xc0
mov rax, qword [0x1402581e0]
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 0x1400fd1ed
mov r15d, 0x4000
cmp dword [rax + 0xe8], r13d
jne 0x1400fd1f0
mov edx, 0x8f
lea r9, [0x140275750]
lea r8d, [r13 + 0x44]
lea ecx, [rdx - 0x7b]
mov dword [rsp + 0x20], 0x134
call fcn.1400d9be0
or eax, 0xffffffff
jmp 0x1400fd69a
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 0x1400fd22c
cmp dword [rbx + 0x70], 5
jae 0x1400fd2be
mov rax, qword [rbx + 0x80]
xor r9d, r9d
mov rcx, rbx
mov r8d, dword [rax + 0xf8]
lea edx, [r9 + 5]
call fcn.1400fcf00
test eax, eax
jle 0x1400fd682
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 0x1400fd294
movsx eax, di
cmp eax, dword [rbx]
jne 0x1400fd4c1
and di, bp
cmp di, r14w
jne 0x1400fd65f
mov rax, qword [rbx + 0x80]
mov rcx, qword [rax + 0xf8]
mov eax, edx
sub rcx, 5
cmp rax, rcx
ja 0x1400fd624
mov eax, dword [rbx + 0x70]
mov ecx, dword [rsi + 4]
sub eax, 5
cmp ecx, eax
jbe 0x1400fd2f0
test ecx, ecx
jle 0x1400fd50d
mov r8d, ecx
mov edx, ecx
mov r9d, 1
mov rcx, rbx
call fcn.1400fcf00
mov ecx, eax
test eax, eax
jle 0x1400fd50d
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 0x1400fd60d
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 0x1400fd5f3
test r12, r12
je 0x1400fd45d
mov r8, qword [rbx + 0xd0]
test r8, r8
je 0x1400fd45d
mov rcx, qword [rbx + 0xd8]
mov rax, r13
test rcx, rcx
je 0x1400fd363
mov rax, qword [rcx]
test rax, rax
je 0x1400fd45d
test rcx, rcx
je 0x1400fd531
mov rax, qword [rcx]
test rax, rax
je 0x1400fd531
mov ebp, dword [rax + 8]
cmp ebp, 0x40
ja 0x1400fd553
mov r9d, dword [rsi]
mov edx, dword [rsi + 4]
shr r9d, 8
add r9d, edx
cmp r9d, ebp
jb 0x1400fd514
mov rax, qword [r8]
mov ecx, dword [rax + 0x10]
and ecx, 0xf0007
cmp ecx, 2
jne 0x1400fd3de
lea eax, [rbp + 1]
cmp r9d, eax
jb 0x1400fd514
cmp ecx, ecx
jne 0x1400fd3de
lea rcx, [rsp + 0x70]
mov r8d, ebp
mov rdx, rsi
lea rdi, [rsp + 0x70]
call fcn.14012f6c0
sub dword [rsi + 4], ebp
jmp 0x1400fd3e9
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 + reloc.WS2_32.dll_htonl]
test eax, eax
js 0x1400fd43e
test rdi, rdi
je 0x1400fd43e
xor r8b, r8b
mov rdx, r13
test ebp, ebp
je 0x1400fd442
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 0x1400fd420
test r8b, r8b
je 0x1400fd442
or r14d, 0xffffffff
mov eax, dword [rsi + 4]
lea rcx, [rbp + 0x4400]
add rcx, r15
cmp rax, rcx
ja 0x1400fd5d5
mov ebp, 0xffffff00
test r14d, r14d
js 0x1400fd5d5
cmp qword [rbx + 0xe0], r13
je 0x1400fd492
mov eax, dword [rsi + 4]
lea rcx, [r15 + 0x4400]
cmp rax, rcx
ja 0x1400fd5a7
mov rcx, rbx
call fcn.1400fd6c0
test eax, eax
je 0x1400fd58a
mov eax, dword [rsi + 4]
lea rcx, [r15 + 0x4000]
cmp rax, rcx
ja 0x1400fd5be
mov dword [rsi + 8], r13d
mov dword [rbx + 0x70], r13d
cmp dword [rsi + 4], r13d
je 0x1400fd20d
mov eax, 1
jmp 0x1400fd682
mov edx, 0x8f
lea r9, [0x140275778]
mov dword [rsp + 0x20], 0x152
lea ecx, [rdx - 0x7b]
lea r8d, [rdx + 0x7c]
call fcn.1400d9be0
movzx ecx, di
mov eax, ecx
xor eax, dword [rbx]
test eax, 0xff00
jne 0x1400fd503
cmp qword [rbx + 0xe8], r13
jne 0x1400fd503
cmp qword [rbx + 0xf0], r13
jne 0x1400fd503
mov dword [rbx], ecx
mov edi, 0x46
jmp 0x1400fd64d
mov eax, ecx
jmp 0x1400fd682
mov edi, 0x32
mov dword [rsp + 0x20], 0x1be
lea r9, [0x140275888]
lea r8d, [rdi + 0x6e]
jmp 0x1400fd63e
mov edx, 0xa2
lea r9, str.....opensslopensslcryptoevpevp_lib.c
mov ecx, 6
lea r8d, [rdx - 3]
mov dword [rsp + 0x20], 0x10e
call fcn.1400d9be0
lea r9, [0x140275840]
lea rdx, [0x140275860]
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0x1ae
call fcn.1400f6440
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, [0x140275900]
lea r8d, [rdi + 0x4d]
jmp 0x1400fd63e
mov dword [rsp + 0x20], 0x1ef
lea r9, [0x1402758d8]
mov r8d, 0x8c
jmp 0x1400fd639
mov dword [rsp + 0x20], 0x1fd
lea r9, [0x140275928]
mov r8d, __WSAFDIsSet
jmp 0x1400fd639
mov edi, setsockopt
mov dword [rsp + 0x20], 0x1e5
lea r9, [0x1402758b0]
mov ecx, edi
mov r8d, 0x119
jmp 0x1400fd643
mov edi, reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x20], 0x19b
lea r9, [0x140275818]
lea r8d, [rdi + 0x6c]
jmp 0x1400fd63e
mov dword [rsp + 0x20], 0x18c
lea r9, [0x1402757f0]
mov r8d, __WSAFDIsSet
jmp 0x1400fd639
mov dword [rsp + 0x20], 0x164
lea r9, [0x1402757c8]
mov r8d, 0xc6
mov edi, reloc.WS2_32.dll_shutdown
mov ecx, setsockopt
mov edx, 0x8f
call fcn.1400d9be0
mov r8d, edi
mov edx, 2
mov rcx, rbx
call fcn.1400fe9f0
jmp 0x1400fd67f
mov edx, 0x8f
lea r9, [0x1402757a0]
mov dword [rsp + 0x20], 0x15d
lea ecx, [rdx - 0x7b]
lea r8d, [rdx + 0x7c]
call fcn.1400d9be0
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.1401bddc0
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rsi
pop rbx
ret