joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0f50
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 rsi, [rbx + 0x40]
mov qword [rsi + 8], rax
xor r14d, r14d
mov qword [rsi + 0x10], rax
mov rbp, rdx
mov qword [rsi + 0x18], rax
mov rdi, rcx
or dword [rdx + 0x58], 0x40000
lea rax, [0x1404b2da8]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
test dword [rdx + 0x58], 0x80000
mov dword [rsp + 0x40], r14d
je 0x1400b0fc6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rbp + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], r14d
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [rbp + 0x58]
inc dword [rbp + 0x78]
bts ecx, 0x10
mov dword [rbp + 0x58], ecx
test eax, eax
jne 0x1400b101d
bt ecx, 0x11
jae 0x1400b107c
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
jmp 0x1400b104f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400b107c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x1400b103c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400b104a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi], rax
mov qword [rbx + 0x68], r14
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x1400b1072
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x1400b10e8
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x1400b10e8
test dword [rbp + 0x58], 0x80000
je 0x1400b10e8
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x1400b10e8
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400b4440]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400b10e8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400b10ca
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400b10d8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rdi
mov qword [rsi], rax
call fcn.1400affd0
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 0x1400b11b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov ebp, r9d
mov rdi, r8
mov dword [rsp + 0x30], 1
mov rbx, rdx
mov rsi, rcx
je 0x1400b11ec
mov eax, 0xfffff00e
jmp 0x1400b1352
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400b120f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400b1352
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
jne 0x1400b122e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400b1352
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
jne 0x1400b1253
cmp dword [rsp + 0x70], eax
je 0x1400b1223
or dword [rbx + 0x58], 0x80000
mov eax, dword [0x1404bae34]
cmp ebp, 0x17
cmove eax, dword [0x1404bae30]
test dword [rbx + 0x58], 0x80000
jne 0x1400b1286
test eax, eax
jne 0x1400b1286
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400b1223
or dword [rbx + 0x58], 0x20000
test dword [rbx + 0x58], 0x1000000
je 0x1400b12c9
mov edx, 6
mov dword [rsp + 0x58], 1
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400b12c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400b1352
test dword [rbx + 0x58], 0x2000000
je 0x1400b133d
lea r9, [rsp + 0x58]
mov dword [rsp + 0x38], 0x3c
mov edx, 0xffff
mov dword [rsp + 0x58], 1
mov r8d, 8
mov dword [rsp + 0x20], 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400b1333
cmp dword [rsp + 0x58], 0
je 0x1400b133d
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rdi
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400b133d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400b1352
mov qword [rbx + 0x110], rdi
cmp ebp, 0x17
jne 0x1400b1350
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400b1370
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov r15d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x1400b1408
test sil, 1
je 0x1400b13b4
cmp word [rdx], 0x17
je 0x1400b13b4
mov eax, 0x57
jmp 0x1400b146c
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b13d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400b146c
movzx r9d, word [rdi]
mov r8, rbp
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400b11b0
mov r14d, eax
test eax, eax
je 0x1400b1408
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x1400b146c
cmp word [rdi], 0x17
jne 0x1400b1438
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x50]
mov edx, 0x29
mov dword [rsp + 0x20], 4
and esi, 1
mov dword [rsp + 0x50], esi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400b1463
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1400b146c
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400b4310
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
test r9d, r9d
mov edx, 0x40040003
mov eax, 0x400c0003
cmovne edx, eax
mov rdi, r8
xor eax, eax
mov rsi, rcx
mov rcx, qword [rbx + 0x120]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b4385
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
je 0x1400b43bd
mov rax, qword [rdi + 0x70]
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x118], rax
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1401938d8]
call fcn.1400b65a0
int3

Function at 0x1400b4670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov ebx, r8d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov esi, r9d
call fcn.1400a8bd0
mov edx, ebx
lea r8, [rsp + 0x30]
mov rcx, rdi
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call qword [rdi + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400b4728
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400b4728
mov rcx, qword [rdi + 0x118]
lea r9, [rsp + 0x70]
cmp esi, eax
mov qword [rsp + 0x20], 0
cmova esi, eax
mov r8d, esi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400b4713
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov r8d, eax
mov rcx, rbp
call fcn.1400b5240
jmp 0x1400b473a
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
jmp 0x1400b473c
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400b4760
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r8d, dword [rdx + 0x1e8]
mov rbx, rdx
test r8d, r8d
je 0x1400b479d
mov r9d, r8d
call fcn.1400b4670
sub dword [rbx + 0x1e8], eax
jmp 0x1400b494d
mov qword [rsp + 0x310], rsi
mov rsi, qword [rdx + 0x118]
mov qword [rsp + 0x2e8], rdi
mov qword [rsp + 0x2e0], r14
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x300], rbp
nop word [rax + rax]
mov r8d, setsockopt
mov eax, edi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], r14
sub r8d, edi
lea r9, [rsp + 0x30]
add rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400b4805
add edi, dword [rsp + 0x30]
cmp edi, 0x10
jb 0x1400b47d0
jmp 0x1400b4815
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test eax, eax
jne 0x1400b4966
mov ecx, dword [rsp + 0x40]
test ecx, 0xfffffff8
jne 0x1400b48de
cmp dword [rsp + 0x4c], r14d
jne 0x1400b48de
mov eax, ecx
and eax, 6
test al, 2
je 0x1400b4844
and al, 4
neg al
sbb esi, esi
add esi, 2
jmp 0x1400b484f
test eax, eax
jne 0x1400b48de
mov esi, r14d
test cl, 1
je 0x1400b4860
mov eax, dword [rsp + 0x48]
mov dword [rbx + 0x1e8], eax
jmp 0x1400b4867
cmp dword [rsp + 0x48], r14d
jne 0x1400b48de
test esi, esi
jne 0x1400b4873
lea eax, [rsi + 0x10]
jmp 0x1400b492d
mov rbp, qword [rbx + 0x118]
mov edi, r14d
nop dword [rax]
mov r8d, 0x278
mov eax, edi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r14
sub r8d, edi
lea r9, [rsp + 0x30]
add rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400b48b8
add edi, dword [rsp + 0x30]
cmp edi, 0x278
jb 0x1400b4880
jmp 0x1400b48c8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test eax, eax
jne 0x1400b4966
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rbx
call fcn.1400b4540
mov eax, 0x288
jmp 0x1400b492d
mov edi, 0x2745
movups xmm0, xmmword [0x1401938c8]
mov rcx, qword [rbx + 0x128]
movaps xmmword [rsp + 0x40], xmm0
test rcx, rcx
je 0x1400b490e
lea rdx, [0x1400b4300]
call fcn.1400a44f0
mov qword [rbx + 0x128], r14
mov rcx, rbx
call fcn.1400a85c0
mov ecx, edi
call fcn.1400b6650
movsxd rdx, eax
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbp, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x310]
mov rdi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400d5050
add rsp, 0x2f0
pop rbx
ret
cmp edi, 0x6d
jne 0x1400b48e3
movups xmm0, xmmword [0x1401938c8]
mov rcx, qword [rbx + 0x128]
movaps xmmword [rsp + 0x40], xmm0
test rcx, rcx
je 0x1400b499a
lea rdx, [0x1400b4300]
call fcn.1400a44f0
mov qword [rbx + 0x128], r14
and dword [rbx + 0x58], 0xffffbfff
mov rcx, rbx
call fcn.1400a85c0
mov rdx, 0xfffffffffffff001
jmp 0x1400b4920
Function at 0x1400b4f00
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x1400b4fa3
call fcn.1400b4310
test eax, eax
jne 0x1400b4fa3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400b4f3c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400b4f4a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400b4f88
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]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x30], 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 0x1400b5057
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400b5057
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x217
jne 0x1400b4ff4
mov qword [rbx + 0x40], 0
jmp 0x1400b502c
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 0x1400b5018
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400b5026
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400b504f
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x1400b5053
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x30]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b5070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rbp, rcx
je 0x1400b50f7
mov qword [rdx + 0x238], 0
lea rcx, [0x1400b5440]
mov rdx, rdi
mov r8d, setsockopt
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
test eax, eax
jne 0x1400b51f9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400b50de
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cdqe
mov qword [rdi + 0x40], rax
jmp 0x1400b51c8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
jmp 0x1400b51c8
xor eax, eax
lea rsi, [rdi + 0x40]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
test dword [rdx + 0x58], 0x80000
je 0x1400b5121
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov rcx, qword [rbx + 0x118]
lea rdx, [0x1404b2f71]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400b5163
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400b5163
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400b51b5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400b51c3
test dword [rbx + 0x58], 0x80000
je 0x1400b51f9
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x1400b51f9
mov rdx, qword [rdi + 0x70]
lea r8, [0x1400b4440]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400b51f9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400b51b5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400b51c3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x1400b51ef
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
jmp 0x1400b5218
mov qword [rdi + 0x68], rdi
mov qword [rbp + 0x48], rdi
jmp 0x1400b5218
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x1400b5218
xor r9d, r9d
lea rdx, [0x1400b4250]
lea r8d, [r9 + 0x32]
call fcn.1400b1d80
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b6e50
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x60
xor ebx, ebx
mov rbp, r9
test byte [rdx], 1
mov r15, r8
mov r14, rcx
je 0x1400b6eab
mov rdi, qword [rdx + 8]
test rdi, rdi
je 0x1400b6eae
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
mov eax, dword [rsp + 0x34]
dec rdi
add rdi, rax
dec rax
not rax
and rdi, rax
mov eax, edi
cmp rax, rdi
je 0x1400b6eae
mov eax, 0xfffff019
jmp 0x1400b6f4e
mov rdi, rbx
mov ecx, 0x18
mov qword [rsp + 0x80], rsi
call fcn.1400a8930
mov rsi, rax
test rax, rax
jne 0x1400b6ecf
mov eax, 0xfffff027
jmp 0x1400b6f46
mov qword [rsp + 0x28], rbx
lea r8, [0x1400b6c00]
mov r9, rsi
mov dword [rsp + 0x20], 4
mov edx, edi
mov qword [rax], r15
xor ecx, ecx
mov qword [rax + 8], rbp
call fcn.140101ec8
test rax, rax
jne 0x1400b6f34
call fcn.1400fdf94
mov rcx, rsi
mov edi, dword [rax]
call fcn.1400a8720
test edi, edi
je 0x1400b6f44
cmp edi, 0xb
je 0x1400b6f2d
cmp edi, 0xd
je 0x1400b6f26
cmp edi, 0x16
setne bl
lea eax, [rbx - 0xfe7]
jmp 0x1400b6f46
mov eax, 0xfffff004
jmp 0x1400b6f46
mov eax, 0xfffff008
jmp 0x1400b6f46
mov qword [r14], rax
mov rcx, rax
mov qword [rsi + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
xor eax, eax
mov rsi, qword [rsp + 0x80]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400b8640
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x1404bae20]
xor edx, edx
lea rcx, [0x140193e88]
call fcn.1400a8c30
test eax, eax
jne 0x1400b87dd
lea r8, [0x1404bae00]
xor edx, edx
lea rcx, [0x140193e90]
call fcn.1400a8cb0
test eax, eax
jne 0x1400b87e3
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1400b87c5
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400b87e9
mov qword [rsp + 0x480], rbx
lea edx, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x470], rdi
lea ecx, [rax + 2]
mov dword [0x1404bae34], 1
call qword [sym.imp.WS2_32.dll_socket]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b8743
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]
test eax, eax
jne 0x1400b873a
mov eax, dword [0x1404bae34]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x1404bae34], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x1404bae30], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b87b5
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]
test eax, eax
jne 0x1400b87ac
mov eax, dword [0x1404bae30]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x1404bae30], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400d5050
add rsp, 0x478
ret
call fcn.1400ff9d8
int3
call fcn.1400ff9d8
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400b65a0
int3
Function at 0x1400c7c50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1401e7270]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call fcn.1400fd19c
mov rbx, rax
test rax, rax
je 0x1400c7d41
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsi + 0x2fc], 1
call fcn.1401092dc
mov edi, eax
test eax, eax
js 0x1400c7d31
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.1401089b4
test eax, eax
jne 0x1400c7d28
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x1400c7d07
inc eax
movsxd rcx, eax
call fcn.1400f8010
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call fcn.14010068c
movsxd rcx, dword [rsp + 0x34]
cmp eax, ecx
jne 0x1400c7cf6
mov byte [rcx + rbx], 0
mov rdx, rbx
mov rcx, rsi
call fcn.1400c7fa0
mov rcx, rbx
call fcn.1400f7d30
mov ecx, edi
call fcn.1400ffffc
jmp 0x1400c7d3c
mov ecx, 2
call fcn.1400f8138
mov r9d, dword [rsp + 0x34]
lea rdx, str.Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.1400060e0
mov ecx, edi
call fcn.1400ffffc
jmp 0x1400c7d3c
mov rdx, rbx
mov rcx, rsi
call fcn.1400c7fa0
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d5050
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x1400c9b80
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [0x1401e7108]
cmp eax, 1
jbe 0x1400c9bc9
mov rdx, qword [0x1404b30b8]
test rdx, rdx
je 0x1400c9bc1
lea ecx, [rax - 1]
call rdx
movzx ecx, ax
mov eax, dword [0x1401e7108]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
add rsp, 0x58
ret
shl eax, 6
add rsp, 0x58
ret
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400caad0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x140193da8]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400cac1a
lea rdx, str.GetActiveProcessorGroupCount
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetActiveProcessorCount
mov rcx, rbx
mov qword [0x1404b30a8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, [0x140196a80]
mov rcx, rbx
mov qword [0x1404b30b8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumber
mov rcx, rbx
mov qword [0x1404b3060], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumberEx
mov rcx, rbx
mov qword [0x1404b30c0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.SetThreadGroupAffinity
mov rcx, rbx
mov qword [0x1404b30c8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetThreadGroupAffinity
mov rcx, rbx
mov qword [0x1404b3070], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNode
mov rcx, rbx
mov qword [0x1404b3078], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNodeEx
mov rcx, rbx
mov qword [0x1404b3080], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.GetLogicalProcessorInformationEx
mov rcx, rbx
mov qword [0x1404b3088], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.K32QueryWorkingSetEx
mov rcx, rbx
mov qword [0x1404b3068], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.VirtualAllocExNuma
mov rcx, rbx
mov qword [0x1404b30a0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.VirtualFreeEx
mov rcx, rbx
mov qword [0x1404b3090], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1404b3098], rax
mov rax, qword [0x1404b30a8]
test rax, rax
je 0x1400cac31
call rax
movzx eax, ax
mov dword [0x1401e7108], eax
cmp qword [0x1404b30a0], 0
jne 0x1400cac64
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
je 0x1400cac64
lea rdx, str.QueryWorkingSetEx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1404b30a0], rax
add rsp, 0x20
pop rbx
ret