joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015a0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x14002b580]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x260]
mov rdx, qword [rax + 0x18]
lea rcx, str.__opening__s_for_read_n
call fcn.140002590
lea rdx, [0x14002b080]
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x18]
call fcn.1400080b0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400016fa
lea rcx, str.__sending_data_n
call fcn.140002590
mov r9, qword [rsp + 0x30]
mov r8d, 0x200
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14000831c
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jg 0x140001639
jmp 0x1400016d6
mov dword [rsp + 0x20], 0
jmp 0x140001653
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x1400016a5
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x20]
lea rcx, [rsp + rcx + 0x40]
movsxd rdx, dword [rsp + 0x268]
mov qword [rsp + 0x38], rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jg 0x1400016a3
jmp 0x1400016a5
jmp 0x140001643
mov rax, qword [rsp + 0x260]
mov eax, dword [rax + 0xc0]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
mov dword [rcx + 0xc0], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x1400016d1
jmp 0x1400016d6
jmp 0x14000160f
mov rax, qword [rsp + 0x260]
mov edx, dword [rax + 0xc0]
lea rcx, str.__sent__i_bytes_n
call fcn.140002590
mov rcx, qword [rsp + 0x30]
call fcn.140007f5c
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140002680
add rsp, 0x258
ret
Function at 0x140001720
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x14002b580]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x280]
mov dword [rax + 0xc0], 0
mov ecx, 0x200
call fcn.140006b04
mov rcx, qword [rsp + 0x280]
mov qword [rcx + 0xc8], rax
mov dword [rsp + 0x38], 1
movsxd rax, dword [rsp + 0x288]
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rcx, str.__receiving_data_n
call fcn.140002590
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
jmp 0x1400017b8
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jae 0x1400017d9
mov eax, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x288]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x1400017d7
jmp 0x1400017d9
jmp 0x1400017ae
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jne 0x140001805
cmp dword [rsp + 0x50], 0x40
jae 0x140001805
mov eax, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x288]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x1400017a4
mov dword [rsp + 0x40], 5
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jg 0x140001857
lea rcx, str.__waiting_for_data_timed_out_or_failed_n
call fcn.140002590
jmp 0x140001956
mov rax, qword [rsp + 0x280]
mov eax, dword [rax + 0xc0]
mov rcx, qword [rsp + 0x280]
add rax, qword [rcx + 0xc8]
movsxd rcx, dword [rsp + 0x288]
xor r9d, r9d
mov r8d, 0x200
mov rdx, rax
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jg 0x14000189e
jmp 0x140001956
mov rax, qword [rsp + 0x280]
mov eax, dword [rax + 0xc0]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0xc0], eax
mov rax, qword [rsp + 0x280]
mov eax, dword [rax + 0xc0]
add eax, 0x200
mov eax, eax
mov edx, eax
mov rax, qword [rsp + 0x280]
mov rcx, qword [rax + 0xc8]
call fcn.140006b0c
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000193d
mov rax, qword [rsp + 0x280]
mov dword [rax + 0xc0], 0
mov rax, qword [rsp + 0x280]
mov rcx, qword [rax + 0xc8]
call fcn.140006af0
mov rax, qword [rsp + 0x280]
mov qword [rax + 0xc8], 0
lea rcx, str.__error:_out_of_memory._n
call fcn.140002590
jmp 0x140001956
mov rax, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0xc8], rcx
jmp 0x14000179c
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0xc0], 0
je 0x140001981
mov rax, qword [rsp + 0x280]
mov edx, dword [rax + 0xc0]
lea rcx, str.__received__i_bytes_n
call fcn.140002590
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002680
add rsp, 0x278
ret
Function at 0x1400019a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc0], 0
lea rcx, [0x14002b128]
call fcn.140002590
mov r8d, 6
mov edx, 1
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0x2c]
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400019ef
xor eax, eax
jmp 0x140001b83
mov dword [rsp + 0x30], 1
movsxd rax, dword [rsp + 0x34]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 4
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, str.__binding_to_port__s_n
call fcn.140002590
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x3c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + 0x48]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140001b4b
movsxd rax, dword [rsp + 0x34]
mov edx, 1
mov rcx, rax
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140001b3d
mov rcx, qword [rsp + 0x50]
call fcn.140001140
mov rdx, rax
lea rcx, str.__waiting_for_connections_on__s_n
call fcn.140002590
cmp dword [rsp + 0x38], 0
jne 0x140001b1a
mov rax, qword [rsp + 0x50]
add rax, 0x3c
movsxd rcx, dword [rsp + 0x34]
mov r8, rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x48]
call qword [sym.imp.WS2_32.dll_accept]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x50]
call fcn.140001140
mov rdx, rax
lea rcx, str.__accepting_connection_from__s_n
call fcn.140002590
cmp dword [rsp + 0x30], 0
jle 0x140001b1a
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x38], 0
jne 0x140001b02
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1400015a0
jmp 0x140001b1a
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140001720
mov rcx, qword [rsp + 0x50]
call fcn.140001490
movsxd rax, dword [rsp + 0x30]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rax, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001b49
lea rcx, str.listen
call fcn.140006fcc
jmp 0x140001b57
lea rcx, str.bind
call fcn.140006fcc
movsxd rax, dword [rsp + 0x34]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc0]
add rsp, 0x48
ret
Function at 0x140001b90
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rcx, str.__creating_socket_n
call fcn.140002590
mov r8d, 6
mov edx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x2c]
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140001bd0
xor eax, eax
jmp 0x140001c87
mov rcx, qword [rsp + 0x40]
call fcn.140001140
mov rdx, rax
lea rcx, str.__connecting_to__s_n
call fcn.140002590
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx + 0x3c]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + 0x48]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140001c49
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x38], 0
jne 0x140001c2f
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.1400015a0
jmp 0x140001c47
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140001720
mov rcx, qword [rsp + 0x40]
call fcn.140001490
jmp 0x140001c55
lea rcx, str.connect
call fcn.140001030
lea rcx, str.__closing_connection_n
call fcn.140002590
movsxd rax, dword [rsp + 0x20]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rax, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140001ca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc0], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0xc8], 0
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
lea rcx, str.__reading_code_from__s_n
call fcn.140002590
lea rdx, [0x14002b218]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
call fcn.1400080b0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001d19
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
lea rcx, str.fopen___s__
call fcn.140001030
jmp 0x140001e3f
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0xc8], 0
jne 0x140001d3e
mov ecx, 0x200
call fcn.140006b04
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0xc8], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc0]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0xc8]
mov r9, qword [rsp + 0x28]
mov r8d, 0x200
mov edx, 1
mov rcx, rax
call fcn.14000831c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jg 0x140001d7d
jmp 0x140001e1d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc0]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc0], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc0]
add eax, 0x200
mov eax, eax
mov edx, eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xc8]
call fcn.140006b0c
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001e07
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc0], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xc8]
call fcn.140006af0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0xc8], 0
lea rcx, str.__error:_out_of_memory_._n
call fcn.140002590
jmp 0x140001e1d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0xc8], rcx
jmp 0x140001d19
mov rcx, qword [rsp + 0x28]
call fcn.140007f5c
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc0], 0
je 0x140001e3f
mov rcx, qword [rsp + 0x50]
call fcn.140001490
add rsp, 0x48
ret
Function at 0x140002300
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x2e8
mov rax, qword [0x14002b580]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x28], 0
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [rsp + 0x130]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 1
call fcn.140007db0
xor edx, edx
mov rcx, rax
call fcn.140008554
mov ecx, 2
call fcn.140007db0
xor edx, edx
mov rcx, rax
call fcn.140008554
mov r8d, 0xd0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001de00
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x5c], 2
lea rax, str.4444
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140007be0
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x68], 0xffffffff
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x70], 0
lea rcx, str._n__run_shellcode_v0.2_n
call fcn.140002590
mov r8, qword [rsp + 0x2f8]
mov edx, dword [rsp + 0x2f0]
lea rcx, [rsp + 0x30]
call fcn.140002070
cmp qword [rsp + 0x48], 0
je 0x140002440
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x48]
call fcn.140001000
test eax, eax
je 0x140002440
mov rdx, qword [rsp + 0x48]
lea rcx, str.__unable_to_access__s_n
call fcn.140002590
xor eax, eax
jmp 0x14000250b
cmp qword [rsp + 0x50], 0
je 0x140002452
mov rcx, qword [rsp + 0x50]
call fcn.140001e50
cmp dword [rsp + 0x60], 2
jne 0x140002487
cmp qword [rsp + 0x48], 0
je 0x140002474
lea rcx, [rsp + 0x30]
call fcn.140001ca0
xor eax, eax
jmp 0x14000250b
lea rcx, str._n__youve_used__x_without_supplying_file_with__f
call fcn.140002590
xor eax, eax
jmp 0x14000250b
lea rcx, [rsp + 0x30]
call fcn.1400011a0
test eax, eax
je 0x1400024f2
cmp qword [rsp + 0x48], 0
jne 0x1400024a7
mov dword [rsp + 0x20], 1
jmp 0x1400024af
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x60], 0xffffffff
jne 0x1400024c6
mov dword [rsp + 0x60], 1
cmp dword [rsp + 0x68], 0xffffffff
jne 0x1400024d5
mov dword [rsp + 0x68], 1
cmp dword [rsp + 0x60], 1
jne 0x1400024e8
lea rcx, [rsp + 0x30]
call fcn.1400019a0
jmp 0x1400024f2
lea rcx, [rsp + 0x30]
call fcn.140001b90
cmp dword [rsp + 0xf0], 0
je 0x140002509
mov rcx, qword [rsp + 0xf8]
call fcn.140006af0
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140002680
add rsp, 0x2e8
ret

Function at 0x140003060
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400030aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400030aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400030aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400030aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400030aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400030ac
xor al, al
add rsp, 0x28
ret
Function at 0x140006e1c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006c87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006c87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006c87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006c87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006c87
cmp dword [rcx + 0x84], 0xe
jbe 0x140006c87
cmp dword [rcx + 0xf8], 0
je 0x140006c87
mov ecx, ebx
call fcn.140006d38
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140006b14
nop
cmp dword [rbp + 0x20], 0
je 0x140006cd5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006ce0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006c18

Function at 0x14000ad50
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14002b580]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140020688]
mov rbp, rcx
call fcn.140012660
xor edi, edi
test rax, rax
je 0x14000ae36
mov ebx, edi
call fcn.14000e8a0
mov r14d, dword [rax]
call fcn.14000e8a0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400125ac
mov rsi, rax
test rax, rax
je 0x14000adc7
call fcn.14000e8a0
mov dword [rax], r14d
jmp 0x14000adf1
call fcn.14000e8a0
cmp dword [rax], 0x22
jne 0x14000ae2e
call fcn.14000e8a0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400125ac
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14000ae2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14000adf5
cmp rax, 3
je 0x14000ae10
mov rcx, rsi
call fcn.14000acac
test al, al
je 0x14000ae21
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000ae21
mov dil, 1
mov rcx, rbx
call fcn.140006af0
mov al, dil
jmp 0x14000ae38
mov rcx, rbx
call fcn.140006af0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140002680
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000fdd8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14002cf70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000fe2f
cmp word [rdx], r13w
jne 0x14000fe2f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000fe34
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000ff59
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000ff7a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000fe6d
mov rdx, r9
mov word [rbx], cx
jmp 0x14000fe94
cmp r9, r8
jae 0x14000fea4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000fe4e
jmp 0x14000ff59
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ff4e
cmp dword [rsp + 0x80], esi
je 0x14000ff4e
lea r8, [0x14002cf70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000ff26
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000fef6
mov word [rbx], r13w
jmp 0x14000ff56
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000ff03
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000ff56
cmp word [rsp + 0x70], r13w
jne 0x14000ff33
cmp rbx, r14
je 0x14000fef0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015e40
cmp word [rsp + 0x70], r13w
je 0x14000ff59
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14002cf70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000ff53
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000ff59
Function at 0x14001435c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001438c
xor eax, eax
jmp 0x14001444f
mov rbp, rbx
cmp word [rax], si
je 0x1400143b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014398
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014394
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001427c
movsxd r14, eax
test eax, eax
jne 0x1400143ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014385
mov rcx, r14
call fcn.14000ce48
mov rdi, rax
test rax, rax
jne 0x140014408
xor ecx, ecx
call fcn.14000ce0c
jmp 0x1400143e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001427c
test eax, eax
jne 0x140014439
mov rcx, rdi
call fcn.14000ce0c
jmp 0x140014443
xor ecx, ecx
call fcn.14000ce0c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001446c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400144f3
mov rsi, rbx
cmp word [rax], bp
je 0x1400144b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001449c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014498
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ce48
mov rdi, rax
test rax, rax
je 0x1400144e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001d760
mov rbp, rdi
xor ecx, ecx
call fcn.14000ce0c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140018b74
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140018b8a
mov al, 1
jmp 0x140018bea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018b9b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018be8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d4fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018be8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018be8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018be8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018bea
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140018e28
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14002b580]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140018e72
call fcn.14000e880
mov dword [rax], send
call fcn.14000e8a0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000e5c0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140002680
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140018e7d
lea eax, [rbx + 1]
jmp 0x140018e5f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140018e5d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140018e5f