Function at 0x140086000
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov esi, r9d
mov dword [rbp - 0x80], r9d
mov ebx, r8d
mov r10, rdx
mov r13, rcx
mov r14d, 1
lea eax, [r8 - 0xa]
cmp eax, r14d
jbe 0x140086064
lea eax, [r14 - 6]
jmp 0x140086775
test r10, r10
je 0x140086770
cmp byte [rdx], 0
je 0x140086770
lea rdx, [0x140138698]
mov rcx, r10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r15, rax
test rax, rax
je 0x140086770
cmp esi, 2
jne 0x1400860e3
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400a8330
test rax, rax
je 0x1400860cd
nop dword [rax]
mov rdx, rax
mov rcx, r13
call fcn.140099de0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.1400a8330
test rax, rax
jne 0x1400860b0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140086759
jmp 0x140086767
mov edi, reloc.WS2_32.dll_recv
mov ecx, 8
test esi, esi
cmove edi, ecx
add rdi, r13
mov qword [rbp - 0x78], rdi
mov rcx, r15
cmp ebx, 0xa
jne 0x140086173
xor edx, edx
lea r8d, [rbx - 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14012e898
mov qword [rbp - 0x78], rax
xor r12d, r12d
test rax, rax
je 0x140086144
mov edx, ebx
mov rcx, rax
call fcn.1400ace50
jmp 0x140086147
mov rax, r12
mov qword [rdi], rax
mov rcx, rax
call fcn.14009a0e0
mov rcx, rax
mov r9, r15
mov r8, r14
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x140086536
jmp 0x140086767
xor r12d, r12d
mov dword [rbp + 0x10], r12d
mov byte [rbp + 0x14], r12b
lea r8, [rbp - 0x60]
mov edx, esi
call fcn.1400a8330
mov qword [rdi], rax
test rax, rax
je 0x140086767
cmp byte [rbp + 0x14], r12b
je 0x140086536
mov rcx, r13
call fcn.14009a100
mov rbx, rax
test rax, rax
je 0x140086767
mov rcx, r13
call fcn.14009a1d0
mov r9, rax
xor r8d, r8d
lea edx, [r12 + 0x50]
lea rcx, [rbp + 0x60]
call rbx
mov ebx, eax
mov ecx, dword [rbp + 0x10]
mov dword [rsp + 0x4c], ecx
test ecx, ecx
jne 0x1400861de
mov eax, r12d
jmp 0x1400861e7
call fcn.14012e8dc
mov ecx, dword [rsp + 0x4c]
mov qword [rsp + 0x50], rax
mov r8d, ecx
lea rdx, [rbp - 0x10]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x68], r12
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140085f60
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.VCRUNTIME140.dll_memset
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
call fcn.1400aee90
nop
mov eax, dword [rsp + 0x4c]
mov esi, 0x20
cmp eax, esi
cmova eax, esi
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x60]
lea r8, [rbp - 0x10]
lea rdx, [0x14013869c]
lea rcx, [rbp - 0x60]
call fcn.140086aa0
mov rbx, r12
mov qword [rsp + 0x78], rbx
lea r8d, [rsi - 0x19]
lea rdx, str.DES_CBC
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400862da
lea ecx, [rsi - 0x10]
call fcn.14012e898
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400862d2
mov rcx, rax
call fcn.1400a6890
jmp 0x1400862d5
mov rax, r12
jmp 0x140086399
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.DES_EDE3_CBC
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140086319
lea ecx, [rax + 0x10]
call fcn.14012e898
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140086311
mov rcx, rax
call fcn.1400a6950
jmp 0x140086314
mov rax, r12
jmp 0x140086399
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.AES_128_CBC
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14008635a
lea ecx, [rax + 0x10]
call fcn.14012e898
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140086355
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call fcn.1400a67c0
jmp 0x140086358
mov rax, r12
jmp 0x140086399
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.AES_192_CBC
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400863a8
lea ecx, [rax + 0x10]
call fcn.14012e898
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140086396
mov edx, 0x18
mov rcx, rax
call fcn.1400a67c0
jmp 0x140086399
mov rax, r12
test rax, rax
je 0x1400863f4
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x1400863f4
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.AES_256_CBC
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400864ee
lea ecx, [rax + 0x10]
call fcn.14012e898
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400863e5
mov edx, esi
mov rcx, rax
call fcn.1400a67c0
jmp 0x1400863e8
mov rax, r12
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0x78], rbx
mov rax, qword [rbx]
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0xf0]
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14012e898
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140086433
mov rcx, qword [rdi]
call fcn.1400ad840
mov edx, eax
mov rcx, rsi
call fcn.1400ace50
jmp 0x140086436
mov rax, r12
mov qword [rsp + 0x40], rax
mov qword [rbp + 0xe0], rax
mov r14, qword [rbx]
mov rcx, qword [rdi]
call fcn.1400ad840
mov esi, eax
mov rcx, qword [rdi]
call fcn.14009a0e0
mov rdi, rax
mov rcx, qword [rsp + 0x40]
call fcn.14009a0e0
mov rdx, rax
mov r9d, esi
mov r8, rdi
mov rcx, rbx
call qword [r14 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp - 0x78]
mov rsi, qword [rdi]
test rsi, rsi
je 0x140086495
mov rcx, rsi
call fcn.140099c10
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.14012e770
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [rbx]
mov r14d, 1
mov edx, r14d
mov rcx, rbx
call qword [rax + gethostname]
nop
mov r8d, dword [rsp + 0x64]
mov rbx, qword [rsp + 0x68]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
nop
mov r8d, dword [rsp + 0x4c]
mov rbx, qword [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov esi, dword [rbp - 0x80]
jmp 0x140086536
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov r8d, dword [rsp + 0x64]
mov rbx, qword [rsp + 0x68]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
nop
mov rbx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x4c]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
jmp 0x140086770
cmp esi, 1
jne 0x140086759
mov rcx, qword [r13 + 0x10]
test rcx, rcx
je 0x140086759
call fcn.1400ad840
mov ebx, eax
mov rcx, qword [r13 + 0x10]
call fcn.14009a0e0
mov rdi, rax
mov dword [rsp + 0x4c], ebx
mov ecx, ebx
test ebx, ebx
jne 0x14008656e
mov rax, r12
jmp 0x140086577
call fcn.14012e8dc
mov ebx, dword [rsp + 0x4c]
mov qword [rsp + 0x50], rax
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x58], 0
lea rcx, [rbp - 0x60]
call fcn.140085a70
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call fcn.1400b7600
cmp dword [rsp + 0x5c], 0
je 0x140086733
mov rcx, qword [r13 + 0x10]
call fcn.1400ad840
mov ebx, eax
mov rcx, qword [r13 + 0x10]
call fcn.14009a0e0
mov rdi, rax
mov dword [rsp + 0x64], ebx
mov ecx, ebx
test ebx, ebx
jne 0x1400865dc
mov rax, r12
jmp 0x1400865e5
call fcn.14012e8dc
mov ebx, dword [rsp + 0x64]
mov qword [rsp + 0x68], rax
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x70], 0
lea rcx, [rbp + 0x60]
call fcn.1400af5c0
nop
lea rcx, [rbp + 0x78]
call fcn.1400af5c0
nop
lea rcx, [rbp + 0x90]
call fcn.1400af5c0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400af5c0
nop
lea rcx, [rbp + 0xc0]
call fcn.1400af5c0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.1400b7c70
nop
cmp dword [rsp + 0x74], 0
sete r12b
mov r8d, dword [rbp + 0xc4]
mov rbx, qword [rbp + 0xc8]
lea r8, [r8*8]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov r8d, dword [rbp + 0xac]
mov rbx, qword [rbp + 0xb0]
lea r8, [r8*8]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov r8d, dword [rbp + 0x94]
mov rbx, qword [rbp + 0x98]
lea r8, [r8*8]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov r8d, dword [rbp + 0x7c]
mov rbx, qword [rbp + 0x80]
lea r8, [r8*8]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov r8d, dword [rbp + 0x64]
mov rbx, qword [rbp + 0x68]
lea r8, [r8*8]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
nop
mov r8d, dword [rsp + 0x64]
mov rbx, qword [rsp + 0x68]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov r14d, r12d
lea rcx, [rbp - 0x60]
call fcn.140085c90
nop
mov rbx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x4c]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14012e770
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r14d
jmp 0x140086775
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xfffffffc
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14012e750
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret