joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e7870
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 0x1400e7908
test sil, 1
je 0x1400e78b4
cmp word [rdx], 0x17
je 0x1400e78b4
mov eax, 0x57
jmp 0x1400e796c
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 0x1400e78d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400e796c
movzx r9d, word [rdi]
mov r8, rbp
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400e7730
mov r14d, eax
test eax, eax
je 0x1400e7908
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x1400e796c
cmp word [rdi], 0x17
jne 0x1400e7938
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 0x1400e7963
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1400e796c
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 0x1400e7d20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
je 0x1400dabad
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x1400dabb9
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400dabdb
cmp eax, 0xc
je 0x1400dabd6
cmp eax, 0xe
je 0x1400dabd1
mov eax, 0xfffff02a
ret
jmp 0x1400dcb60
jmp 0x1400e7d20
mov eax, 0xfffff008
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x1400dcb89
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.1400dcd10
test eax, eax
je 0x1400dcbaa
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400ee860
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400d9970
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x1400e7d37
mov eax, 0xfffff008
add rsp, 0x48
ret
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
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400e7d70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400ee860
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1400ebb20
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 0x1400ebb95
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 0x1400ebbcd
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, [0x14013b028]
call fcn.1400ee7b0
int3
Function at 0x1400ec460
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 0x1400ec503
call fcn.1400ebb20
test eax, eax
jne 0x1400ec503
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400ec49c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ec4aa
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 0x1400ec4e8
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
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rbx + 0x40], xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400ec5aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400ec5aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x1400ec547
xor eax, eax
jmp 0x1400ec57b
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 0x1400ec56b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ec579
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 0x1400ec5a2
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x1400ec5a6
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 0x1400ec6f0
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 0x1400ec73b
mov qword [rdx + 0x238], 0
lea rcx, [0x1400edc00]
mov rdx, rdi
mov r8d, select
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x1400ec7ca
lea rcx, [rdi + 0x40]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
je 0x1400ec75e
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1403ea2d0]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ec78e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400ec7ce
test dword [rbx + 0x58], 0x80000
je 0x1400ec825
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x1400ec825
mov rdx, qword [rdi + 0x70]
lea r8, [0x1400e6150]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400ec825
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400ec7e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ec7ee
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 0x1400ec81b
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 0x1400ec82d
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1400ec82d
mov rcx, rbx
call fcn.1400ebae0
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
Function at 0x1400ec850
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.1400d9de0
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 0x1400ec908
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400ec908
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 0x1400ec8f3
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.1400ec9d0
jmp 0x1400ec91a
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 0x1400ec91c
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 0x1400eca10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
je 0x1400eca6a
nop word [rax + rax]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400eca7f
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jb 0x1400eca40
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400eca6c
Function at 0x1400f0110
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x14046aa60]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.1400d9e40
test eax, eax
jne 0x1400f02ad
lea r8, [0x14046aa40]
xor edx, edx
lea rcx, [0x14013b5b8]
call fcn.1400d9eb0
test eax, eax
jne 0x1400f02ad
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1400f0295
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400f02b3
mov qword [rsp + 0x480], rbx
lea edx, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x470], rdi
lea ecx, [rax + 2]
mov dword [0x14046aa74], 1
call qword [sym.imp.WS2_32.dll_socket]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f0213
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 0x1400f020a
mov eax, dword [0x14046aa74]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x14046aa74], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x14046aa70], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f0285
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 0x1400f027c
mov eax, dword [0x14046aa70]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x14046aa70], 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.14011ae70
add rsp, 0x478
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400ee7b0
int3
Function at 0x1400f2bf8
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1403ea340], 0
jne 0x1400f2c30
lea rcx, str.HWLOC_HIDE_ERRORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f2c26
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x140159b44], eax
mov dword [0x1403ea340], 1
mov eax, dword [0x140159b44]
add rsp, 0x28
ret
Function at 0x1400f6764
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov esi, r8d
mov rdi, rcx
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call fcn.1400fdf80
mov r14, rax
test sil, 1
je 0x1400f68e3
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1400f9c58
mov r13, qword [rsp + 0x20]
mov r15d, eax
mov rcx, rdi
test eax, eax
je 0x1400f68ca
lea r8, str.object
lea rdx, [rbp - 0x49]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov r9d, esi
lea rcx, [rbp - 0x49]
mov r8, r14
mov rdx, rbx
call fcn.1400f5a78
lea r8, str.object
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x49]
call qword [rbp - 0x41]
mov r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r9d, esi
mov rdx, rbx
call fcn.1400f5a78
mov rdi, qword [r14 + 0x78]
jmp 0x1400f6836
mov r9d, esi
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rbx
call fcn.1400f9b6c
mov rdi, qword [rdi + 0x58]
test rdi, rdi
jne 0x1400f681f
mov rdi, qword [r14 + 0xa0]
jmp 0x1400f685b
mov r9d, esi
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rbx
call fcn.1400f9b6c
mov rdi, qword [rdi + 0x58]
test rdi, rdi
jne 0x1400f6844
mov rdi, qword [r14 + 0xb0]
jmp 0x1400f687b
mov r9d, esi
mov r8, rdi
mov rdx, rbx
call fcn.1400f9b6c
mov rdi, qword [rdi + 0x58]
lea rcx, [rsp + 0x30]
test rdi, rdi
jne 0x1400f6869
lea rdx, str.object
call qword [rsp + 0x50]
cmp r15d, 1
jbe 0x1400f68ba
lea rdi, [r13 + 8]
lea r14d, [r15 - 1]
mov r8, qword [rdi]
lea rcx, [rbp - 0x49]
mov r9d, esi
mov rdx, rbx
call fcn.1400f9b6c
lea rdi, [rdi + 8]
sub r14, 1
jne 0x1400f689e
lea rdx, str.object
lea rcx, [rbp - 0x49]
call qword [rbp - 0x29]
jmp 0x1400f68d8
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.1400f9b6c
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400f693f
mov r9d, esi
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call fcn.1400fa308
mov rdx, rbx
mov rcx, rdi
call fcn.1400fa298
lea rcx, str.HWLOC_XML_EXPORT_SUPPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f691e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x1400f6929
mov rdx, rbx
mov rcx, rdi
call fcn.1400fa40c
mov rdx, rbx
mov rcx, rdi
call fcn.1400f594c
mov rdx, rbx
mov rcx, rdi
call fcn.1400f5348
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14011ae70
add rsp, 0x100
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400fbf68
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1403ea364], 0
jne 0x1400fbfa0
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400fbf96
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1403ea368], eax
mov dword [0x1403ea364], 1
mov eax, dword [0x1403ea368]
add rsp, 0x28
ret
Function at 0x1400fbfac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
movss xmm7, dword [0x14013df64]
mov r12, rcx
lea rcx, str.HWLOC_XML_V1DIST_SCALE
mov r14, r9
mov rsi, r8
mov ebx, edx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
imul ebx, ebx
xor edi, edi
test rax, rax
je 0x1400fc0df
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm7, xmm7
cvtsd2ss xmm7, xmm0
test ebx, ebx
je 0x1400fc06a
movss xmm1, dword [0x14013df68]
mov edx, ebx
movaps xmm0, xmm7
xor ecx, ecx
mulss xmm0, dword [rsi]
comiss xmm0, xmm1
jb 0x1400fc051
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400fc051
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rsi, 4
add rax, rcx
mov qword [r14], rax
add r14, 8
sub rdx, 1
jne 0x1400fc02d
xorps xmm2, xmm2
lea rdx, [0x14013db28]
cvtss2sd xmm2, xmm7
lea rcx, [rsp + 0x28]
movq r8, xmm2
call fcn.1400fc918
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.1400fdf80
mov rcx, rax
lea r8, [rsp + 0x28]
lea rdx, str.xmlv1DistancesScale
call fcn.1400f2fb8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011ae70
lea r11, [rsp + 0x90]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test ebx, ebx
je 0x1400fc0a8
movss xmm9, dword [0x14013df60]
mov r15, r14
mov rbp, rsi
xorps xmm8, xmm8
movss xmm6, dword [rbp]
comiss xmm8, xmm6
ja 0x1400fc023
lea rdx, [rsp + 0x20]
movaps xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_modff]
comiss xmm0, dword [0x14013df58]
jbe 0x1400fc126
comiss xmm9, xmm0
ja 0x1400fc023
addss xmm6, dword [0x14013df5c]
inc edi
add rbp, 4
cvttss2si eax, xmm6
movsxd rcx, eax
mov qword [r15], rcx
add r15, 8
cmp edi, ebx
jb 0x1400fc0f6
jmp 0x1400fc0a8

Function at 0x1400fc6f8
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x1403ea374], ebx
jne 0x1400fc74a
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400fc72c
lea rcx, str.HWLOC_LIBXML_EXPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400fc740
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
sete bl
mov dword [0x1403ea378], ebx
mov dword [0x1403ea374], 1
mov eax, dword [0x1403ea378]
add rsp, 0x20
pop rbx
ret
Function at 0x1400fc758
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x1403ea36c], ebx
jne 0x1400fc7aa
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400fc78c
lea rcx, str.HWLOC_LIBXML_IMPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400fc7a0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
sete bl
mov dword [0x1403ea370], ebx
mov dword [0x1403ea36c], 1
mov eax, dword [0x1403ea370]
add rsp, 0x20
pop rbx
ret

Function at 0x1400ff610
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x318]
mov edx, 1
mov dword [rcx + 0xc4], edx
mov rbx, rcx
mov rcx, rax
test rax, rax
je 0x1400ff64f
cmp dword [rcx + 0x10], 0
jne 0x1400ff646
cmp dword [rcx + 0x28], 0xffffffff
je 0x1400ff646
and dword [rbx + 0xc4], 0
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400ff633
test byte [rbx + 0x20], 2
je 0x1400ff673
mov dword [rbx + 0xc4], edx
jmp 0x1400ff673
cmp dword [rax + 0x10], edx
jne 0x1400ff66f
cmp dword [rax + 0x28], 0xffffffff
je 0x1400ff66f
and dword [rbx + 0xc4], 0
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x1400ff65d
lea rcx, str.HWLOC_THISSYSTEM
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400ff699
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0xc4], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400ff734
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x20
mov ebp, 1
jmp 0x1400ff756
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [0x1403ea390], ebp
jne 0x1400ff750
mov eax, dword [0x1403ea388]
mov ecx, eax
add eax, ebp
mov dword [0x1403ea388], eax
test ecx, ecx
jne 0x1400ff8ce
lea rcx, str.HWLOC_COMPONENTS_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400ff795
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
and qword [0x1403ea398], 0
lea r15, [0x140159b70]
and dword [0x1403ea394], 0
xor r8d, r8d
mov rcx, qword [0x140159b70]
xor edx, edx
mov dword [0x1403ea38c], eax
test rcx, rcx
je 0x1400ff7d4
add r8d, ebp
inc edx
cmp qword [r15 + r8*8], 0
jne 0x1400ff7c2
mov dword [0x1403ea394], edx
test edx, edx
je 0x1400ff7fa
mov ecx, edx
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
and dword [0x1403ea394], 0
mov rcx, qword [0x140159b70]
mov qword [0x1403ea398], rax
xor edi, edi
test rcx, rcx
je 0x1400ff8ce
mov rbx, r15
cmp dword [rcx + 0x1c], 0
je 0x1400ff83f
call fcn.1400f2bf8
cmp eax, 2
jge 0x1400ff8bc
mov rbx, qword [rbx]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rbx + 0x1c]
lea rdx, str.hwloc:_Ignoring_static_component_with_invalid_flags__lx_n
mov rcx, rax
call fcn.14000f480
jmp 0x1400ff8bc
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400ff875
xor ecx, ecx
call rax
test eax, eax
jns 0x1400ff875
cmp dword [0x1403ea38c], 0
je 0x1400ff8bc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.hwloc:_Ignoring_static_component__failed_to_initialize_n
call fcn.14000f480
jmp 0x1400ff8bc
mov rax, qword [rbx]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400ff898
mov ecx, dword [0x1403ea394]
mov rax, qword [0x1403ea398]
mov qword [rax + rcx*8], rdx
add dword [0x1403ea394], ebp
mov rcx, qword [rbx]
cmp dword [rcx + 0x18], 0
jne 0x1400ff8ae
mov rcx, qword [rcx + 0x20]
xor edx, edx
call fcn.1400ffbb8
jmp 0x1400ff8bc
cmp dword [rcx + 0x18], ebp
jne 0x1400ff8bc
mov rcx, qword [rcx + 0x20]
call fcn.1400fc8d8
add edi, ebp
lea rbx, [r15 + rdi*8]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400ff808
and dword [0x1403ea390], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret
Function at 0x1400ffad0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xc8], 0
mov rsi, r9
mov ebp, edx
mov rbx, rcx
je 0x1400ffb19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], select
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor edx, edx
mov rcx, r8
call fcn.1400ffa48
mov rdi, rax
test rax, rax
jne 0x1400ffb39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
jmp 0x1400ffb01
mov rax, qword [rsp + 0x68]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [rdi + select]
mov rsi, rax
test rax, rax
je 0x1400ffb01
mov dword [rax + 0x10], ebp
cmp qword [rbx + 0x318], 0
je 0x1400ffb79
mov rcx, rbx
call fcn.1400ff558
mov rcx, rsi
call fcn.1400ff410
cmp dword [rdi + 8], 1
mov esi, eax
jne 0x1400ffbaf
lea rcx, str.HWLOC_ANNOTATE_GLOBAL_COMPONENTS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400ffbaf
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x1400ffbaf
and dword [rbx + 0x32c], 0xffffffbf
mov eax, esi
jmp 0x1400ffb04