joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x1048
call fcn.140156570
sub rsp, rax
cmp ecx, dword [reloc.WS2_32.dll_accept]
jle 0x14000289e
xor eax, eax
add rsp, 0x1048
ret
cmp dword [0x140175008], 0
je 0x1400029f2
mov qword [rsp + 0x1040], rbx
xor ebx, ebx
mov qword [rsp + 0x1038], rbp
lea rbp, [rsp + 0x1060]
mov qword [rsp + 0x1030], rsi
mov qword [rsp + 0x1028], rdi
movsxd rdi, dword [0x1401b9268]
test edi, edi
je 0x1400028f8
mov r8, rdi
mov dword [0x1401b9268], ebx
lea edx, [rbx + 8]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
jmp 0x1400028fa
mov edi, ebx
cmp dword [0x1401b9258], 0
movsxd rsi, edi
je 0x140002916
mov dword [0x1401b9258], ebx
mov ebx, 1
mov byte [rsp + rsi + 0x20], 0xa
cmp dword [0x1401b9254], 0
je 0x140002933
mov eax, ebx
lea rcx, [rsp + 0x20]
add rax, rsi
add rcx, rax
call fcn.140002140
add ebx, eax
mov r8, qword [section..data]
lea rcx, [rsp + 0x20]
movsxd rax, ebx
lea rdx, str._s_Warning:
add rax, rsi
add rcx, rax
call fcn.140002a20
mov rdx, qword [rsp + 0x1058]
lea rcx, [rsp + 0x20]
add ebx, eax
mov r8, rbp
movsxd rax, ebx
add rax, rsi
add rcx, rax
call fcn.140002a80
mov ecx, dword [0x140175008]
add ebx, eax
mov rbp, qword [rsp + 0x1038]
test ecx, ecx
jle 0x14000299c
lea r8d, [rbx + rdi]
test r8d, r8d
jle 0x14000299c
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov r9, qword [0x1401b9240]
mov rdi, qword [rsp + 0x1028]
test r9, r9
je 0x1400029dc
lea rcx, [rsp + 0x20]
movsxd r8, ebx
add rcx, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [0x1401b9260], 0
jle 0x1400029dc
mov rcx, qword [0x1401b9240]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
inc dword [0x1401b9290]
mov rsi, qword [rsp + 0x1030]
mov rbx, qword [rsp + 0x1040]
mov eax, 1
add rsp, 0x1048
ret
Function at 0x140004a90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401b9414]
cmp eax, 2
jne 0x140004abe
lea edx, [rax + 1]
lea rcx, [0x140176a8c]
call fcn.140009800
lea rcx, [0x140178150]
add rsp, 0x28
jmp fcn.140001fb0
cmp eax, 3
jne 0x140004ac8
call fcn.140008a90
lea rcx, [0x140178150]
add rsp, 0x28
jmp fcn.140001fb0
Function at 0x140007760
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
mov rdi, r8
mov rbx, rdx
call fcn.140002690
mov rax, qword [0x1401b92c8]
test rbx, rbx
cmovne rax, rbx
test rdi, rdi
mov qword [0x1401b92c8], rax
mov rax, qword [0x1401b92c0]
cmovne rax, rdi
test rsi, rsi
mov qword [0x1401b92c0], rax
mov rax, qword [0x1401758b0]
cmovne rax, rsi
mov qword [0x1401758b0], rax
call fcn.140022a20
call fcn.14000e300
lea rcx, str.PVIEW_STARTUP_SLEEP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400077e6
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
call fcn.140022310
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140009470
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rdx, [0x140011d30]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rdx, [0x140011d30]
mov ecx, send
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rcx, str.PVIEW_CORE_DUMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400094e3
lea rdx, [0x140011d30]
lea ecx, [rax + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rdx, [0x140011d30]
mov ecx, socket
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rdx, [0x140011d30]
mov ecx, reloc.WS2_32.dll_inet_addr
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
add rsp, 0x28
ret

Function at 0x1400096b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x420
mov eax, dword [0x1401b9414]
mov r8, 0xffffffffffffffff
mov dword [0x14017685c], r8d
mov rbx, rdx
mov dword [0x1401768ac], r8d
cmp eax, 2
jne 0x140009749
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400096e0
cmp dword [0x1401b9894], 0x320
mov byte [rsp + 0x20], 1
jl 0x140009702
mov al, reloc.WS2_32.dll_WSAStartup
cmp ecx, 1
je 0x140009704
mov al, 0x53
lea rdx, [rsp + 0x22]
mov byte [rsp + 0x21], al
sub rdx, rbx
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140009720
movsxd rax, r8d
lea edx, [r8 + 3]
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x22], 0xa
call fcn.140009800
jmp 0x1400097e0
cmp eax, 3
jne 0x1400097e0
cmp ecx, 2
jne 0x140009760
mov r8d, dword [0x1401b98e4]
jmp 0x14000977a
cmp ecx, 1
jne 0x14000976e
mov r8d, dword [reloc.WS2_32.dll_accept]
jmp 0x14000977a
cmp ecx, 3
jne 0x1400097d6
mov r8d, dword [0x1401758fc]
mov dword [reloc.WS2_32.dll_accept], r8d
test r8d, r8d
je 0x1400097e0
mov r9, rbx
lea rdx, str._TIME___d__s
lea rcx, [rsp + 0x20]
call fcn.140002a20
cmp dword [0x1401b9894], 0x320
jl 0x1400097b0
movsxd rcx, eax
inc eax
mov byte [rsp + rcx + 0x20], 0xa
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140009800
call qword [sym.imp.KERNEL32.dll_GetTickCount]
imul ecx, dword [reloc.WS2_32.dll_accept], 0x1f4
add eax, ecx
mov dword [0x1401b98dc], eax
jmp 0x1400097e0
mov dword [reloc.WS2_32.dll_accept], 0
mov rdx, rbx
lea rcx, str._s_:
add rsp, 0x420
pop rbx
jmp fcn.140002310
Function at 0x140009800
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1030
call fcn.140156570
sub rsp, rax
movsxd rax, dword [0x1401ba7d4]
mov edi, edx
mov qword [rsp + 0x1048], r14
mov rsi, rcx
imul r14, rax, 0x38
add r14, qword [0x140175020]
test byte [r14 + 0x18], 1
je 0x14000989a
cmp edx, 0x1000
mov qword [rsp + 0x1040], rbx
mov eax, edx
mov ecx, 0xfff
cmovge eax, ecx
mov rdx, rsi
movsxd rbx, eax
lea rcx, [rsp + 0x30]
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [section..data]
lea rcx, str._s_MONITOR:_s:
mov byte [rsp + rbx + 0x30], 0
mov r8, qword [r14]
call fcn.140002310
lea r8, [rsp + 0x30]
mov edx, edi
lea rcx, str.dvconChildWrite__d___s__n
call fcn.140001fb0
mov rbx, qword [rsp + 0x1040]
cmp dword [0x1401b9418], 2
mov r14, qword [rsp + 0x1048]
jne 0x1400098f5
mov rcx, qword [0x140175908]
xor r9d, r9d
mov r8d, edi
mov dword [0x1401b98d4], 1
mov rdx, rsi
call sub.WS2_32.dll_send
test eax, eax
jg 0x1400098da
lea rcx, str.Lost_connection_to_Parent_n
call fcn.140001320
mov dword [0x1401b98d4], 0
mov rsi, qword [rsp + 0x1050]
add rsp, 0x1030
pop rdi
ret
mov rax, qword [0x1401758d8]
cmp rax, 0xffffffffffffffff
jne 0x140009914
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1401758d8], rax
lea r9, [0x1401b9934]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x1401b9934], edi
je 0x140009947
lea rcx, str.Failed_to_write_to_pipe_n
call fcn.140001320
mov rsi, qword [rsp + 0x1050]
add rsp, 0x1030
pop rdi
ret
Function at 0x14000bea0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000bf8d
cmp byte [0x1401b98a1], 1
jne 0x14000bf21
mov r9, qword [0x1401b98b8]
test r9, r9
je 0x14000bf21
movsxd rax, dword [0x1401ba7d4]
imul rdx, rax, 0x38
mov rax, qword [0x140175020]
test byte [rdx + rax + 0x18], 1
je 0x14000bf11
mov r8, qword [rdx + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov rdx, qword [0x1401b98b8]
lea rcx, str.Reading_PVI_for_texture_info_from_Input_xmlpath:__s__n
call fcn.140001fb0
mov r9, qword [0x1401b98b8]
mov rdx, r9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14002d390
cmp byte [0x1401b98a2], 1
jne 0x14000bf8d
mov rdx, qword [0x1401b98c0]
test rdx, rdx
je 0x14000bf8d
movsxd rax, dword [0x1401ba7d4]
imul rcx, rax, 0x38
mov rax, qword [0x140175020]
test byte [rcx + rax + 0x18], 1
je 0x14000bf80
mov r8, qword [rcx + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov rdx, qword [0x1401b98c0]
lea rcx, str.Reading_update_info_from_Input_xmlpath:__s__n
call fcn.140001fb0
mov rdx, qword [0x1401b98c0]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14002d390
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rdx
lea r9, reloc.WS2_32.dll_accept
mov r14, rcx
xor r8d, r8d
mov rcx, rdi
xor edx, edx
mov esi, 0xffffffff
call fcn.140022a80
mov rbx, rax
test rax, rax
jne 0x14002d3e8
mov r9, rdi
lea r8, str.dvconXmlReadUpdateXMLFile_unable_to_parse_XML_file__s_n
lea edx, [rsi + 2]
mov ecx, 0x32f6
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp fcn.140001480
mov rcx, rbx
call fcn.1400232a0
cmp eax, 1
jne 0x14002d405
mov eax, dword [rbx + 0x9c]
cmp eax, 0x24
je 0x14002d429
cmp eax, 0x37
je 0x14002d417
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140022b70
jmp 0x14002d4f3
mov rdx, rbx
mov rcx, r14
call fcn.14002c070
mov esi, eax
jmp 0x14002d4f3
mov rdx, rbx
mov qword [rsp + 0x40], rbp
mov rcx, r14
call fcn.14002b950
test al, al
je 0x14002d4ee
lea r8, [0x14015711c]
mov ecx, 0x607
lea rdx, [0x140021670]
mov bpl, 1
call fcn.1400215e0
mov qword [r14 + 0x330], rax
movsxd rax, dword [0x1401ba7d4]
imul rcx, rax, 0x38
mov rax, qword [0x140175020]
test byte [rcx + rax + 0x18], 4
je 0x14002d4a2
mov r8, qword [rcx + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov rdx, qword [rbx]
lea rcx, str.Parsing_global__textures__tag___input_xml_file___s__is_in_legacy_format_n
call fcn.140001fb0
mov edi, dword [rsp + 0x50]
test bpl, bpl
jne 0x14002d4ba
mov rcx, rbx
call fcn.1400232a0
mov edi, eax
cmp eax, 0xfffffffe
je 0x14002d4ee
mov ecx, dword [rbx + 0x9c]
xor bpl, bpl
cmp ecx, 0x1c
je 0x14002d4e7
cmp ecx, 0x25
je 0x14002d4d2
cmp ecx, 0x2e
jne 0x14002d50b
mov rcx, qword [r14 + 0x330]
mov rdx, rbx
call fcn.14002c550
test eax, eax
je 0x14002d4a6
jmp 0x14002d4ee
cmp edi, 2
jne 0x14002d4a6
xor esi, esi
mov rbp, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140063360
mov rbx, qword [rsp + 0x48]
mov eax, esi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140022b70
jmp 0x14002d4ee
Function at 0x14000d3d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
push r15
sub rsp, 0x68
lea rdx, [0x140176784]
mov r15, rcx
call fcn.14001ccc0
mov rsi, rax
test rax, rax
je 0x14000d5f5
movzx edx, byte [0x1401b9d6b]
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x80], rbx
mov byte [rsp + 0x20], dl
mov rcx, rsi
mov qword [rsp + 0x88], rbp
xor edx, edx
mov qword [rsp + 0x90], rdi
lea r8d, [rax + 2]
mov byte [rsp + 0x51], al
movups xmmword [rsp + 0x21], xmm0
movups xmmword [rsp + 0x31], xmm0
movups xmmword [rsp + 0x41], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea ecx, [rbx + 1]
call fcn.140001bb0
mov r9, rsi
mov r8d, ebx
mov edx, 1
mov rcx, rax
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x14000d4b4
movsxd rcx, dword [0x1401ba7d4]
mov rax, qword [0x140175020]
imul rdx, rcx, 0x38
test byte [rdx + rax + 0x18], 0x10
je 0x14000d4b4
mov r8, qword [rdx + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov rdx, r15
lea rcx, str.Failed_to_read_file__s_n
call fcn.140001fb0
lea rdx, str.password_
mov qword [rsp + 0x60], r14
mov rcx, rbp
call sub.VCRUNTIME140.dll_strstr
mov rdi, rax
test rax, rax
je 0x14000d4d7
sub edi, ebp
add edi, 0xa
jmp 0x14000d4f4
lea rdx, str.:passwd:
mov rcx, rbp
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x14000d5c6
sub eax, ebp
lea edi, [rax + 8]
mov r14d, ebp
test edi, edi
je 0x14000d5c6
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8d, edi
mov edx, 1
mov ebx, edi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x14000d567
movsxd rax, dword [0x1401ba7d4]
imul rdx, rax, 0x38
mov rax, qword [0x140175020]
test byte [rdx + rax + 0x18], 0x10
je 0x14000d567
mov r8, qword [rdx + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov rdx, r15
lea rcx, str.Failed_to_read_password_from_file__s_n
call fcn.140001fb0
lea rdx, [0x1401767e4]
mov rcx, rbp
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x14000d5c6
sub eax, r14d
test eax, eax
jle 0x14000d5c6
movsxd rbx, eax
lea rcx, [rsp + 0x20]
mov r8, rbx
mov dl, 0x2a
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
mov byte [rsp + rbx + 0x21], 0
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
add rsp, 0x68
pop r15
pop rsi
ret
Function at 0x14000ebe0
Capabilities:
Enumerate gui resources
Send data
Send data on socket
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
lea rdi, [0x1401b9348]
mov rbx, rcx
jle 0x14000ecad
cmp dword [rcx + 0x34], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
mov r8d, 1
mov byte [rsp + 0x40], 0x58
je 0x14000ec22
xor r9d, r9d
call sub.WS2_32.dll_send
jmp 0x14000ec57
lea r9, [0x1401b9934]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x1401b9934], 1
je 0x14000ec57
lea r8, str.dvconProgramWrite_Failed_to_write_message_to_pipe_n
mov edx, 1
mov ecx, 0x32f5
call fcn.140001480
cmp dword [rbx + 0x34], 0
lea rdx, [0x140177dfc]
mov rcx, qword [rbx + 0x20]
mov r8d, 1
je 0x14000ec78
xor r9d, r9d
call sub.WS2_32.dll_send
jmp 0x14000ecad
lea r9, [0x1401b9934]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x1401b9934], 1
je 0x14000ecad
lea r8, str.dvconProgramWrite_Failed_to_write_message_to_pipe_n
mov edx, 1
mov ecx, 0x32f5
call fcn.140001480
mov rcx, qword [0x1401b9348]
cmp rcx, rbx
je 0x14000ecce
nop dword [rax]
mov rax, qword [rcx]
mov rdi, rcx
mov rcx, rax
cmp rax, rbx
jne 0x14000ecc0
mov rax, qword [rbx]
mov qword [rdi], rax
cmp dword [rbx + 0x30], 0
jbe 0x14000ecf9
mov rdx, rbx
lea rcx, [0x140009960]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0x28]
mov edx, 0x3e7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x34], 0
mov rcx, qword [rbx + 0x20]
je 0x14000ed14
call sub.WS2_32.dll_closesocket
jmp 0x14000ed24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
Function at 0x14000f4a0
Capabilities:
Read file on windows
Read pipe
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
movsxd r14, dword [rcx + 0x3c]
xor ebp, ebp
movaps xmmword [rsp + 0x50], xmm6
mov r15, r14
movaps xmmword [rsp + 0x40], xmm7
xor esi, esi
movsd xmm7, qword [0x1401587a0]
mov r13d, r9d
mov r12, rdx
mov rbx, rcx
nop
cmp r14d, dword [rbx + 0x38]
jl 0x14000f63c
xor r14d, r14d
mov qword [rbx + 0x38], 0
xor r15d, r15d
cmp dword [rbx + 0x10], r14d
jl 0x14000f5c0
test r13d, r13d
jle 0x14000f5c0
call fcn.1400222d0
subsd xmm0, qword [rbx + 0x840]
movd xmm6, r13d
cvtdq2pd xmm6, xmm6
divsd xmm6, xmm7
comisd xmm0, xmm6
jae 0x14000f5a3
xor edi, edi
nop dword [rax]
mov eax, dword [rbx + 0x38]
sub eax, dword [rbx + 0x3c]
mov dword [rsp + 0xa0], eax
test eax, eax
jg 0x14000f5c0
mov rcx, qword [rbx + 0x18]
cmp dword [rbx + 0x34], edi
je 0x14000f560
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call sub.WS2_32.dll_recv
jmp 0x14000f58c
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp eax, 1
jne 0x14000f5c0
mov eax, dword [rsp + 0xa0]
test eax, eax
jne 0x14000f5c0
call fcn.1400222d0
subsd xmm0, qword [rbx + 0x840]
comisd xmm0, xmm6
jb 0x14000f530
test ebp, ebp
jne 0x14000f681
lea eax, [rbp - 2]
jmp 0x14000f6a5
lea rdx, [rbx + 0x40]
mov rcx, qword [rbx + 0x18]
mov r8d, 0x800
cmp dword [rbx + 0x34], r14d
je 0x14000f5e3
xor r9d, r9d
call sub.WS2_32.dll_recv
mov dword [rbx + 0x38], eax
test eax, eax
jmp 0x14000f605
lea r9, [0x1401b9930]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x1401b9930]
mov dword [rbx + 0x38], eax
cmp dword [0x1401b9930], r14d
jle 0x14000f613
cmp dword [rbx + 0x38], r14d
jg 0x14000f634
cmp dword [rbx + 0x10], r14d
jge 0x14000f5c0
lea r8, str.Lost_connection_or_program_aborted_n
mov dword [rbx + 0x10], 0xfffffffc
mov edx, 3
mov ecx, 0x32db
call fcn.140001480
test eax, eax
jne 0x14000f68a
mov r8d, dword [rsp + 0xb0]
movzx eax, byte [r15 + rbx + 0x40]
cmp al, 1
jne 0x14000f64f
test rsi, rsi
je 0x14000f64f
mov al, 0xa
jmp 0x14000f65e
inc r14d
inc r15
cmp al, 0xa
jne 0x14000f666
test rsi, rsi
je 0x14000f666
cmp byte [rsi + r12 - 1], 0xd
je 0x14000f691
mov byte [rsi + r12], al
inc ebp
inc rsi
cmp al, 0xa
je 0x14000f697
lea eax, [r8 - 1]
cmp ebp, eax
jl 0x14000f4e0
jmp 0x14000f697
movsxd rcx, ebp
mov byte [rcx + r12], r14b
jmp 0x14000f6a3
mov eax, 0xffffffff
jmp 0x14000f6a5
mov byte [rsi + r12 - 1], 0xa
movsxd rax, ebp
mov byte [rax + r12], 0
mov dword [rbx + 0x3c], r14d
mov eax, ebp
mov rbx, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400100c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1400100f8
lea r8, str.Failed_to_initialise_sockets_n
mov edx, 1
mov ecx, 0x32c8
call fcn.140001480
add rsp, 0x1c8
ret
mov dword [0x1401b9938], 1
xor eax, eax
add rsp, 0x1c8
ret

Function at 0x140012bd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rax, dword [0x1401ba2c0]
mov rdi, rdx
imul r8, rax, 0x38
mov rax, qword [0x140175020]
mov rbx, rcx
test byte [r8 + rax + 0x18], 0x20
je 0x140012c23
mov r8, qword [r8 + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov r8, rbx
lea rcx, str.Copy___s__to___s__n
mov rdx, rdi
call fcn.140001fb0
mov rdx, rdi
mov rcx, rbx
call fcn.14001d3e0
test eax, eax
jne 0x140012c3d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.14001ceb0
test eax, eax
je 0x140012c51
mov rcx, rbx
call fcn.14001cc60
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140014e20
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x1020
call fcn.140156570
sub rsp, rax
mov rbx, rdx
mov rbp, rcx
mov rcx, rbx
lea rdx, [0x14017ae9c]
xor r14d, r14d
call fcn.14001ccc0
mov rdi, rax
test rax, rax
jne 0x140014e7a
mov r9, rbx
lea r8, str.Copy_failed_to_open_source_file___s__n
lea edx, [rax + 1]
mov ecx, 0x3ff
call fcn.140001480
jmp 0x140014f49
lea rdx, [0x14017aeac]
mov qword [rsp + 0x1030], rsi
mov rcx, rbp
call fcn.14001ccc0
mov rsi, rax
test rax, rax
jne 0x140014eb5
mov r9, rbp
lea r8, str.Copy_failed_to_open_destination_file___s__n
lea edx, [rax + 1]
mov ecx, 0x400
call fcn.140001480
jmp 0x140014f41
mov r9, rdi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x140014f0e
mov r9, rsi
mov r8d, eax
mov edx, 1
mov ebx, eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140014f63
mov r9, rdi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x140014ed2
test eax, eax
jns 0x140014f2c
lea r8, str.Copy_failed_to_read_source_file___s__n
mov ecx, 0x401
mov r9, rbp
mov edx, 1
call fcn.140001480
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r14d
mov rsi, qword [rsp + 0x1030]
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea r8, str.Copy_failed_to_write_destination_file___s__n
mov ecx, 0x402
jmp 0x140014f1c
Function at 0x140013970
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
xor ebx, ebx
lea rdx, [0x14017af44]
call fcn.14001ccc0
mov rdi, rax
test rax, rax
je 0x140013a74
xor edx, edx
mov qword [rsp + 0x30], rbp
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
test eax, eax
jle 0x140013a50
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
lea eax, [rbp + 1]
movsxd rcx, eax
call fcn.140001bb0
mov r8, rbp
mov r9, rdi
mov edx, 1
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x140013a04
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x140013a0a
cdqe
mov byte [rax + rbx], 0
test sil, 2
je 0x140013a66
movzx ecx, byte [rbx]
mov r8, rbx
mov rdx, rbx
test cl, cl
je 0x140013a4a
nop dword [rax]
movzx eax, byte [rdx + 1]
lea rdx, [rdx + 1]
cmp cl, 0x1a
jne 0x140013a31
test al, al
jmp 0x140013a38
cmp cl, 0xd
jne 0x140013a3a
cmp al, 0xa
je 0x140013a43
mov byte [r8], cl
inc r8
movzx eax, byte [rdx]
movzx ecx, al
test al, al
jne 0x140013a20
mov byte [r8], 0
jmp 0x140013a66
test sil, 1
jne 0x140013a66
mov ecx, 1
call fcn.140001bb0
mov rbx, rax
mov byte [rax], 0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret