joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140167b50
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10060
call fcn.1403122f0
sub rsp, rax
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rsi, r8
test r8, r8
je 0x140167c9a
cmp qword [r8], 0
je 0x140167c9a
lea rdx, [rsp + 0x40]
lea rcx, [0x14044e710]
call fcn.140167910
test eax, eax
jne 0x140167be9
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x7fff
mov qword [rsp + 0x10070], rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call fcn.14015ca10
test rbx, rbx
jne 0x140167c02
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140167c81
mov eax, 0xfffff026
mov rbx, qword [rsp + 0x10070]
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x10060
pop rsi
ret
xor ebx, ebx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140167c7b
mov rcx, qword [rsi]
mov eax, eax
cmp rax, rcx
jbe 0x140167c45
mov qword [rsi], rax
mov eax, 0xfffff024
jmp 0x140167be1
mov qword [rsp + 0x38], rbx
lea rax, [0x1404a46a0]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140167c8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
jmp 0x140167be1
lea ecx, [rax - 1]
xor eax, eax
mov qword [rsi], rcx
jmp 0x140167be1
mov eax, 0xfffff019
jmp 0x140167be9

Function at 0x1401683c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1401683fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x140168410
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14016845b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x140168486
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14016844f
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140168490
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x38], 1
mov rbx, rdx
mov rbp, rcx
je 0x1401684cc
mov eax, 0xfffff00e
jmp 0x1401685a5
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1401684ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1401685a5
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14016850e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401685a5
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140168533
cmp dword [rsp + 0x50], eax
je 0x140168503
or dword [rbx + 0x58], 0x80000
mov ecx, dword [0x14073a640]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x14073a63c]
bt eax, 0x13
jb 0x140168569
test ecx, ecx
jne 0x140168569
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140168503
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x14016857b
mov rdx, rdi
call fcn.1401683c0
test eax, eax
jne 0x1401685a5
test dword [rbx + 0x58], 0x2000000
je 0x140168590
mov rdx, rdi
call fcn.140168410
test eax, eax
jne 0x1401685a5
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x1401685a3
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140168830
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x1401688ac
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14016887e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140168911
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.140168490
mov ebp, eax
test eax, eax
je 0x1401688ac
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x140168911
cmp word [rdi], 0x17
jne 0x1401688dd
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140168908
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x140168911
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140168c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor eax, eax
lea rbx, [rdx + 0x80]
mov qword [rbx + 0x40], rax
lea r14, [rbx + 0x40]
mov qword [r14 + 8], rax
xor ebp, ebp
mov qword [r14 + 0x10], rax
mov rdi, rdx
mov qword [r14 + 0x18], rax
mov rsi, rcx
or dword [rdx + 0x58], 0x40000
lea rax, [0x1404a4b97]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [rdx + 0x58], 0x80000
mov dword [rsp + 0x40], ebp
je 0x140168ce4
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140168d6f
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x140168dd7
bts eax, 0x10
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140168d62
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140168e4d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140168e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140168dd7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x140168d8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140168d9c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140168dca
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140168e4d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140168e4d
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x140168e4d
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x140168e4d
mov rdx, qword [rbx + 0x70]
lea r8, [0x140168930]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140168e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140168e2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140168e3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.140168390
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140169ab0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x140169b2f
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x140169ba7
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x140169b05
test dl, 1
jne 0x140169b05
test al, 4
je 0x140169b05
and eax, 0xffffffbb
mov dword [rbx + 0x58], eax
test al, 8
je 0x140169b05
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov r9, qword [rbx + 0x100]
test r9, r9
je 0x140169ba7
mov ecx, dword [r8 + 0x40]
call fcn.140170270
mov ecx, eax
call fcn.14016e340
mov edx, eax
mov rcx, rbx
call r9
jmp 0x140169ba7
cmp dword [r8 + 0x40], 0
jl 0x140169b84
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140169b84
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x140169ba7
xor edx, edx
mov rcx, rbx
call rax
jmp 0x140169ba7
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x140169ba7
mov rdx, rdi
mov rcx, rbx
call fcn.1401689c0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x140169bd0
test ecx, ecx
jne 0x140169bd0
test al, 0x20
jne 0x140169bd0
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140169be0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x140169c2c
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140169c2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140169c35
or dword [rbx + 0x58], 0x1000000
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14016c3a0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x14016c495
mov rcx, qword [rdi + 0x120]
mov r9d, 0xff
mov qword [rax - 0x10], rbp
xor r8d, r8d
mov dword [rax - 0x18], ebp
mov edx, 0x40040003
mov dword [rax - 0x20], 0x10000
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14016c45b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14016c414
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14016c422
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14016c44e
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14016c541
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14016c541
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.14016bba0
test eax, eax
je 0x14016c495
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14016c414
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14016c422
xor eax, eax
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x40], rax
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14016c53c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14016c53c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14016c4dd
mov rax, rbp
jmp 0x14016c511
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14016c501
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14016c50f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14016c534
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14016c538
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14016c980
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14016c9cb
mov qword [rdx + 0x238], 0
lea rcx, [0x14016c740]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x14016ca85
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x80000
je 0x14016c9f5
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x14072dc75]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14016ca25
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14016ca89
test dword [rbx + 0x58], 0x80000
je 0x14016cae0
cmp qword [rdi + 0x70], 0
jne 0x14016ca56
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14016cb19
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x14016cae0
mov rdx, qword [rdi + 0x58]
lea r8, [0x140168930]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14016cae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14016ca9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14016caa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14016cad6
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14016caff
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14016caff
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14016caff
xor r9d, r9d
lea rdx, [0x14016da60]
lea r8d, [r9 + 0x32]
call fcn.14016a110
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14016e290
int3
Function at 0x14016d210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x30]
mov edi, r9d
mov edx, r8d
lea r8, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14016d2cf
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14016d2cf
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x70]
cmp edi, eax
mov qword [rsp + 0x20], 0
cmova edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14016d2b1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
call fcn.14016d170
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x14016f6e0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
push rsi
sub rsp, 0x38
lea rcx, str.UV_THREADPOOL_SIZE
mov dword [0x14072ddb0], 4
call fcn.140337e60
test rax, rax
je 0x14016f70c
mov rcx, rax
call fcn.14033b560
jmp 0x14016f712
mov eax, dword [0x14072ddb0]
test eax, eax
jne 0x14016f71d
mov eax, 1
jmp 0x14016f727
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x14072ddb0], eax
lea rbx, [0x14072dde0]
mov qword [0x14072de00], rbx
cmp eax, 4
jbe 0x14016f775
mov ecx, eax
shl rcx, 3
test rcx, rcx
je 0x14016f755
call qword [str.p3_]
jmp 0x14016f758
mov rax, rsi
mov qword [0x14072de00], rax
test rax, rax
jne 0x14016f775
mov dword [0x14072ddb0], 4
mov qword [0x14072de00], rbx
mov qword [rsp + 0x58], rbp
lea rcx, [0x14072dd70]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [0x14072ddb8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x14072de50]
xor r9d, r9d
mov qword [0x14072de50], rax
xor edx, edx
mov qword [0x14072de58], rax
xor ecx, ecx
lea rax, [0x14072de40]
mov r8d, 0x7fffffff
mov qword [0x14072de40], rax
mov qword [0x14072de48], rax
lea rax, [0x14072de10]
mov qword [0x14072de10], rax
mov qword [0x14072de18], rax
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14016f814
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
test eax, eax
jne 0x14016f918
mov eax, dword [0x14072ddb0]
mov ebp, esi
test eax, eax
je 0x14016f8ee
lea r15, [0x14016f450]
nop dword [rax + rax]
mov rax, qword [0x14072de00]
mov ecx, ebp
lea rbx, [rax + rcx*8]
mov ecx, 0x18
call qword [str.p3_]
mov r14, rax
test rax, rax
je 0x14016f918
mov qword [rax], r15
lea r8, [0x14016f0c0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r9, r14
mov qword [r14 + 8], rax
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.140344880
test rax, rax
jne 0x14016f8a9
call fcn.1403379a0
mov edi, dword [rax]
call fcn.1403379a0
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.1403379d4]
call fcn.1403379a0
mov dword [rax], ebx
test edi, edi
jne 0x14016f918
jmp 0x14016f8b9
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x14072ddb0]
inc ebp
cmp ebp, eax
jb 0x14016f830
test eax, eax
je 0x14016f8ee
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14016f918
inc esi
cmp esi, dword [0x14072ddb0]
jb 0x14016f8d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14016f918
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret
call fcn.140339b18
int3
Function at 0x14016ffc0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor eax, eax
mov ebx, 2
mov qword [0x14073a600], rax
xor ecx, ecx
mov word [0x14073a600], bx
mov qword [0x14073a608], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x14073a604]
mov word [0x14073a602], ax
lea rcx, str.0.0.0.0
call fcn.14016edc0
test eax, eax
jne 0x140170260
lea r8, [0x14073a620]
xor edx, edx
lea rcx, [0x14044ebb8]
call fcn.14015cf70
test eax, eax
jne 0x140170260
lea ecx, [rbx + 0x41]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1401701ba
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401701d3
mov qword [rsp + 0x480], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401700ed
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1401701e2
mov eax, dword [0x14073a640]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14073a640], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x1401701f7
jmp 0x140170114
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14017024b
cmp eax, 0x273a
jbe 0x14017024b
cmp eax, 0x2740
jae 0x14017024b
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14017018b
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14017020c
mov eax, dword [0x14073a63c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14073a63c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x140170221
jmp 0x1401701b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140170236
cmp eax, 0x273a
jbe 0x140170236
cmp eax, 0x2740
jae 0x140170236
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x470
pop rbx
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.14016e290
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14016e290
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14016e290
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14016e290
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14016e290
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14016e290
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14016e290
int3
call fcn.140339b18
int3