joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0230
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
test dword [rcx + 0x58], 0x8000
mov rbx, rdx
jne 0x1400a024d
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400a02ff
cmp eax, 0xc
je 0x1400a02af
cmp eax, 0xe
je 0x1400a026e
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1400a02ff
lea r9, [rsp + 0x50]
mov r8d, 1
call fcn.14009e6a0
test eax, eax
je 0x1400a029d
mov ecx, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
jmp fcn.1400ae540
mov edx, 1
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.1400a0a60
cmp dword [rcx + 0x100], 0
ja 0x1400a02ff
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400a02f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.1400ae540
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x1400a1d10
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1400a1d72
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.1400ae540
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x1400a1d8c
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x1400a1f3a
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1400a1d9d
mov rcx, qword [rdx + 0x18]
mov r15, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r15
jl 0x1400a1dc0
mov qword [rdi + 0x88], r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, r13
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x1400a1def
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop word [rax + rax]
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x1400a1de0
sub r15, rcx
cmp r8, r15
cmovl r15, r8
test r15, r15
je 0x1400a1da9
lea rbx, [r15 + rcx]
mov r8d, dword [0x1404df260]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, r15
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1400a1e60
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x1400a1f3a
mov r14, r13
mov r12d, r13d
cmp r12d, dword [rdi + 0x170]
jae 0x1400a1eed
cmp r14, r15
jae 0x1400a1eed
mov dword [rsp + 0x30], r13d
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov esi, dword [rcx]
mov rax, r15
sub rax, r14
cmp rsi, rax
cmovae rsi, rax
add rdx, r14
add rdx, qword [rsp + 0x50]
mov r8, rsi
mov rcx, qword [rcx + 8]
call fcn.1400eab30
nop
add r14, rsi
inc r12d
mov rdx, qword [rsp + 0xb8]
jmp 0x1400a1e66
mov rcx, rdx
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test eax, eax
je 0x1400a1e4d
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1400a1f20
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.1400a0ea0
mov qword [rdi + 0x88], r15
cmp r15, 0xffffffffffffffff
jne 0x1400a1f49
call fcn.1400f51c4
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.1400ae540
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a1f60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x1400a1fa0
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.1400a0d90
test eax, eax
je 0x1400a1fc8
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400a1d10
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x70], r15
call fcn.1400f4fb8
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a2013
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.1400ae540
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400a2129
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
cmp rbp, 0xffffffffffffffff
je 0x1400a2065
xor eax, eax
lea r8, [rsp + 0xb8]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x1400a2068
mov r13d, 1
jmp 0x1400a2068
mov r12, rbx
mov esi, ebx
nop word [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1400a2087
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_ReadFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r14d, eax
test eax, eax
je 0x1400a20ca
cmp ebx, dword [rdi + 0x170]
jb 0x1400a2070
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x1400a20ee
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x1400a2120
test esi, esi
jne 0x1400a2120
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x26
je 0x1400a2120
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.1400ae540
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400a2129
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a2e10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x1400a2e53
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x1400a2f56
mov ecx, 0x290
call qword [fcn.1400edbe8]
mov rsi, rax
test rax, rax
je 0x1400a2f49
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400a2e71
test rbx, rbx
jne 0x1400a2e89
lea r14, [0x1401e64b0]
jmp 0x1400a2ea8
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x1400a2ea1
lea r14, str._s
cmp ax, 0x2f
jne 0x1400a2ea8
lea r14, [0x1401e64b8]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x1400a2f49
call qword [fcn.1400edbe8]
mov r15, rax
test rax, rax
je 0x1400a2f49
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.1400a0d30
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov qword [rsi + 0x30], rax
call fcn.1400f51e4
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.1400ed908]
call fcn.1400f51e4
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x1400a2f2b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x1400a2f2b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.1400ae540
cdqe
jmp 0x1400a2f56
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x1400a2f9c
mov r8d, ntohs
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call fcn.1400f51e4
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.1400ed908]
call fcn.1400f51e4
mov dword [rax], ebx
call fcn.1400f51e4
xor ecx, ecx
mov ebx, dword [rax]
call qword [fcn.1400ed908]
call fcn.1400f51e4
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400a4ea0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x1400a4edc
xor esi, esi
test rdx, rdx
je 0x1400a4ec7
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400a4ef0
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x1400a4f19
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x1400a4f19
cmp ax, 0x2f
jne 0x1400a4f00
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x1400a4f74
test r15, r15
je 0x1400a4f66
mov ecx, 0x20a
call qword [fcn.1400edbe8]
mov qword [r15], rax
test rax, rax
je 0x1400a5013
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
jne 0x1400a4f66
mov rcx, qword [r15]
call fcn.1400a0380
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x1400a4ff4
mov rcx, r14
call fcn.1400ffa68
mov qword [r12], rax
jmp 0x1400a4ff2
xor esi, esi
test r15, r15
je 0x1400a4fb2
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x1400a4f90
call qword [fcn.1400edbe8]
jmp 0x1400a4f93
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x1400a5013
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call fcn.1400f5efc
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x1400a4fc9
mov rcx, rbp
call qword [fcn.1400edbe8]
jmp 0x1400a4fcc
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x1400a5013
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.1400f5efc
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, ntohs
call fcn.1400ae490
int3
Function at 0x1400a59e0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400cc030
add rsp, 0x78
ret
Function at 0x1400a7430
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 0x1400a746b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400a7480
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 0x1400a74cb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x1400a74f6
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 0x1400a74bf
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400a7500
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 0x1400a753c
mov eax, 0xfffff00e
jmp 0x1400a7615
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400a755f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400a7615
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
jne 0x1400a757e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400a7615
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 0x1400a75a3
cmp dword [rsp + 0x50], eax
je 0x1400a7573
or dword [rbx + 0x58], 0x80000
mov ecx, dword [0x140560880]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x14056087c]
bt eax, 0x13
jb 0x1400a75d9
test ecx, ecx
jne 0x1400a75d9
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400a7573
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x1400a75eb
mov rdx, rdi
call fcn.1400a7430
test eax, eax
jne 0x1400a7615
test dword [rbx + 0x58], 0x2000000
je 0x1400a7600
mov rdx, rdi
call fcn.1400a7480
test eax, eax
jne 0x1400a7615
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x1400a7613
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 0x1400a78a0
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 0x1400a791c
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 0x1400a78ee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400a7981
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400a7500
mov ebp, eax
test eax, eax
je 0x1400a791c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x1400a7981
cmp word [rdi], 0x17
jne 0x1400a794d
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 0x1400a7978
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1400a7981
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 0x1400a7ce0
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, [0x14025707f]
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 0x1400a7d54
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 0x1400a7ddf
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x1400a7e47
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 0x1400a7dd2
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 0x1400a7ebd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400a7ebd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400a7e47
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x1400a7dfe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400a7e0c
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 0x1400a7e3a
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 0x1400a7ebd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x1400a7ebd
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x1400a7ebd
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x1400a7ebd
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400a79a0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400a7ebd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400a7e9f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400a7ead
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.1400a7400
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 0x1400a8bb0
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 0x1400a8c2f
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x1400a8ca7
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x1400a8c05
test dl, 1
jne 0x1400a8c05
test al, 4
je 0x1400a8c05
and eax, 0xffffffbb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1400a8c05
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov r9, qword [rbx + 0x100]
test r9, r9
je 0x1400a8ca7
mov ecx, dword [r8 + 0x40]
call fcn.1400af9d0
mov ecx, eax
call fcn.1400ae540
mov edx, eax
mov rcx, rbx
call r9
jmp 0x1400a8ca7
cmp dword [r8 + 0x40], 0
jl 0x1400a8c84
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 0x1400a8c84
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x1400a8ca7
xor edx, edx
mov rcx, rbx
call rax
jmp 0x1400a8ca7
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x1400a8ca7
mov rdx, rdi
mov rcx, rbx
call fcn.1400a7a30
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x1400a8cd0
test ecx, ecx
jne 0x1400a8cd0
test al, 0x20
jne 0x1400a8cd0
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 0x1400a8ce0
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 0x1400a8d2c
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 0x1400a8d2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400a8d35
or dword [rbx + 0x58], 0x1000000
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400a97d0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
push rsi
sub rsp, 0x38
lea rcx, str.UV_THREADPOOL_SIZE
mov dword [0x1404df264], 4
call fcn.1400f2d90
test rax, rax
je 0x1400a97fc
mov rcx, rax
call fcn.1400f5230
jmp 0x1400a9802
mov eax, dword [0x1404df264]
test eax, eax
jne 0x1400a980d
mov eax, 1
jmp 0x1400a9817
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x1404df264], eax
lea rbx, [0x1404e0358]
mov qword [0x1404e0380], rbx
cmp eax, 4
jbe 0x1400a9865
mov ecx, eax
shl rcx, 3
test rcx, rcx
je 0x1400a9845
call qword [fcn.1400edbe8]
jmp 0x1400a9848
mov rax, rsi
mov qword [0x1404e0380], rax
test rax, rax
jne 0x1400a9865
mov dword [0x1404df264], 4
mov qword [0x1404e0380], rbx
mov qword [rsp + 0x58], rbp
lea rcx, [0x1404e02f0]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.DLL_InitializeConditionVariable]
lea rcx, [0x1404e0330]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rax, [0x1404e03d0]
xor r9d, r9d
mov qword [0x1404e03d0], rax
xor edx, edx
mov qword [0x1404e03d8], rax
xor ecx, ecx
lea rax, [0x1404e03c0]
mov r8d, 0x7fffffff
mov qword [0x1404e03c0], rax
mov qword [0x1404e03c8], rax
lea rax, [0x1404e0390]
mov qword [0x1404e0390], rax
mov qword [0x1404e0398], rax
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400a9904
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400ae540
test eax, eax
jne 0x1400a9a08
mov eax, dword [0x1404df264]
mov ebp, esi
test eax, eax
je 0x1400a99de
lea r15, [0x1400a9540]
nop dword [rax + rax]
mov rax, qword [0x1404e0380]
mov ecx, ebp
lea rbx, [rax + rcx*8]
mov ecx, 0x18
call qword [fcn.1400edbe8]
mov r14, rax
test rax, rax
je 0x1400a9a08
mov qword [rax], r15
lea r8, [0x1400ae110]
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.1400f76b8
test rax, rax
jne 0x1400a9999
call fcn.1400f51e4
mov edi, dword [rax]
call fcn.1400f51e4
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.1400ed908]
call fcn.1400f51e4
mov dword [rax], ebx
test edi, edi
jne 0x1400a9a08
jmp 0x1400a99a9
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [0x1404df264]
inc ebp
cmp ebp, eax
jb 0x1400a9920
test eax, eax
je 0x1400a99de
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x1400a9a08
inc esi
cmp esi, dword [0x1404df264]
jb 0x1400a99c0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x1400a9a08
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.1400f4acc
int3