joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002a38
mov eax, 0
jmp 0x140002a86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002a61
mov eax, 0
jmp 0x140002a86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002a81
mov eax, 0
jmp 0x140002a86
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002a8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002b0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002b01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002b01
mov rax, qword [rbp - 8]
jmp 0x140002b1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002ad4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400022c4
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
push rdi
sub rsp, 0x80
mov eax, 0x6f46a6c8
mov edx, 0x1be882de
mov r8d, edx
mov r9b, 0xdb
mov r10b, byte [rsp + 0x7f]
mov r11b, r10b
or r11b, r11b
mov byte [rsp + 0x7f], r11b
mov qword [rsp + 0x68], 0xb5ea1e3
mov dword [rsp + 0x5c], 0x6f46a6c8
mov r11b, r10b
add r11b, 0xe9
mov byte [rsp + 0x7f], r11b
sub r9b, r10b
mov rsi, qword [rsp + 0x68]
sub r8, rsi
mov byte [rsp + 0x7f], r9b
mov qword [rsp + 0x50], r8
mov di, word [rsp + 0x62]
or di, di
mov r8, qword [0x1400d9b18]
mov word [rsp + 0x62], di
mov edx, dword [rsp + 0x5c]
mov ebx, edx
add ebx, 0x6ffb992
mov dword [rsp + 0x64], ebx
sub eax, edx
mov dword [rsp + 0x4c], eax
mov word [rsp + 0x62], 0xc01a
cmp r8, 0
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x3c], edx
mov byte [rsp + 0x3b], r10b
mov qword [rsp + 0x30], r8
je 0x140003586
jmp 0x14000355e
mov eax, 0xbf91b247
mov ecx, dword [rsp + 0x5c]
mov byte [rsp + 0x7f], 4
mov rdx, qword [rsp + 0x68]
xor rdx, 0x21298a1b
mov r8b, byte [rsp + 0x3b]
mov byte [rsp + 0x7f], r8b
sub eax, ecx
mov r9, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x3c]
xor ecx, 0xffffffff
mov dword [rsp + 0x64], ecx
mov byte [rsp + 0x7f], 0x34
mov dword [rsp + 0x4c], eax
cmp r9, rdx
jae 0x140003586
jmp 0x14000359c
mov eax, 0x6ff8fbf2
mov ecx, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x5c]
xor ecx, 0x3aacafde
mov word [rsp + 0x62], 0x95da
sub eax, edx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], ecx
je 0x14000355e
jmp 0x140003518
mov word [rsp + 0x62], 0x9450
mov eax, dword [rsp + 0x4c]
add rsp, 0x80
pop rdi
pop rbx
pop rsi
ret
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x64], ecx
xor eax, 0x6f46a6c9
mov qword [rsp + 0x70], 0x4b6db35b
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x4c], eax
jmp 0x140003586

Function at 0x14000464c
Capabilities:
Encode data using xor

Disassembly:
cmp r8b, r9b
jb 0x1400048e6
jmp 0x14000486d
mov eax, 0x4c5c7f5c
mov ecx, 0x58110bea
mov edx, ecx
mov r8b, byte [rsp + 0x96]
or r8b, 0x70
mov byte [rsp + 0x167], r8b
mov r8b, byte [rsp + 0x96]
add r8b, 0xae
mov ecx, dword [rsp + 0x154]
mov byte [rsp + 0x167], r8b
sub rdx, qword [rsp + 0x158]
mov r9w, word [rsp + 0xa2]
or r9w, 0xc0da
sub eax, ecx
mov word [rsp + 0x17e], r9w
mov qword [rsp + 0x108], rdx
mov dword [rsp + 0x104], eax
mov byte [rsp + 0x167], 0xb7
jmp 0x140004772
Function at 0x180005510
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800b02e4], 0
jne 0x180005562
lea rcx, str.HWLOC_HIDE_ERRORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18000554d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b02e0], eax
mov dword [0x1800b02e4], 1
add rsp, 0x28
ret
mov eax, dword [0x1800b02e0]
mov dword [0x1800b02e4], 1
add rsp, 0x28
ret
mov eax, dword [0x1800b02e0]
add rsp, 0x28
ret

Function at 0x180005570
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1800b02e8], 0
mov ebx, edx
mov rdi, rcx
jne 0x180005702
cmp dword [0x1800b02e4], 0
jne 0x1800055c0
lea rcx, str.HWLOC_HIDE_ERRORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800055b6
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b02e0], eax
mov dword [0x1800b02e4], 1
cmp dword [0x1800b02e0], 0
jne 0x180005702
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._n
call fcn.1800053c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.2.0.2
lea rdx, str._hwloc__s_has_encountered_what_looks_like_an_error_from_the_operating_system._n
call fcn.1800053c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x180091e70]
call fcn.1800053c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.__s_n
mov rcx, rax
call fcn.1800053c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str._Error_occurred_in_topology.c_line__d_n
mov rcx, rax
call fcn.1800053c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x180091e70]
call fcn.1800053c0
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._The_following_FAQ_entry_in_the_hwloc_documentation_may_help:_n
call fcn.1800053c0
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.___What_should_I_do_when_hwloc_reports__operating_system__warnings__n
call fcn.1800053c0
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._Otherwise_please_report_this_error_message_to_the_hwloc_users_mailing_list__n
call fcn.1800053c0
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._along_with_any_relevant_topology_information_from_your_platform._n
call fcn.1800053c0
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._n
call fcn.1800053c0
mov dword [0x1800b02e8], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180007e20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb0], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x180007e5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
cmp dword [rcx + 0xb8], 0
je 0x180007e41
or r8d, 0xffffffff
mov qword [rsp + 0x30], rdi
mov edx, 0x11
call sym.xmrstakrx_opencl_backend.dll_hwloc_alloc_setup_object
mov rdi, rax
test rsi, rsi
je 0x180007e90
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rdi + 0x18], rax
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call sym.xmrstakrx_opencl_backend.dll_hwloc_insert_object_by_parent
xor edx, edx
mov rcx, rbx
call sym.xmrstakrx_opencl_backend.dll_hwloc_topology_reconnect
lea rcx, str.HWLOC_DEBUG_CHECK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, qword [rsp + 0x38]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x180010120
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, qword [rcx + 0x28]
mov rax, qword [rdx + 0x28]
movzx r9d, word [r8]
movzx r10d, word [rax]
cmp r9w, r10w
jae 0x180010141
xor eax, eax
add rsp, 0x28
ret
jbe 0x18001014d
mov eax, 1
add rsp, 0x28
ret
cmp dword [rcx], 0xe
jne 0x18001016c
movzx ecx, byte [rax + 2]
cmp cl, byte [r8 + 0x1e]
jb 0x18001016c
cmp cl, byte [r8 + 0x1f]
ja 0x18001016c
mov eax, 3
add rsp, 0x28
ret
cmp dword [rdx], 0xe
jne 0x18001018a
movzx ecx, byte [r8 + 2]
cmp cl, byte [rax + 0x1e]
jb 0x18001018a
cmp cl, byte [rax + 0x1f]
ja 0x18001018a
mov eax, 2
add rsp, 0x28
ret
movzx ecx, byte [r8 + 2]
movzx edx, byte [rax + 2]
cmp cl, dl
jb 0x18001013a
ja 0x180010143
movzx ecx, byte [r8 + 3]
movzx edx, byte [rax + 3]
cmp cl, dl
jb 0x18001013a
ja 0x180010143
movzx ecx, byte [r8 + 4]
movzx edx, byte [rax + 4]
cmp cl, dl
jb 0x18001013a
ja 0x180010143
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x104
lea r8, str.....hwlocpci_common.c
mov rcx, rax
lea rdx, str.Bad_assertion_in_hwloc__s:_d__aborting__n
call fcn.1800053c0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1800101f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r10, rdx
mov r11, rcx
xor r14d, r14d
nop word [rax + rax]
mov r9, qword [r10]
test r9, r9
je 0x1800103bb
mov rax, qword [r9 + 0x28]
mov rcx, qword [rbp + 0x28]
movzx r8d, word [rax]
movzx edx, word [rcx]
cmp dx, r8w
jae 0x180010236
mov eax, r14d
jmp 0x1800102b4
ja 0x1800102af
cmp dword [rbp], 0xe
jne 0x180010253
movzx edx, byte [rax + 2]
cmp dl, byte [rcx + 0x1e]
jb 0x180010253
cmp dl, byte [rcx + 0x1f]
ja 0x180010253
mov eax, 3
jmp 0x1800102b4
cmp dword [r9], 0xe
jne 0x18001026e
movzx edx, byte [rcx + 2]
cmp dl, byte [rax + 0x1e]
jb 0x18001026e
cmp dl, byte [rax + 0x1f]
ja 0x18001026e
mov eax, 2
jmp 0x1800102b4
movzx edx, byte [rcx + 2]
movzx r8d, byte [rax + 2]
cmp dl, r8b
jae 0x180010281
mov eax, r14d
jmp 0x1800102b4
ja 0x1800102af
movzx edx, byte [rcx + 3]
movzx r8d, byte [rax + 3]
cmp dl, r8b
jae 0x180010296
mov eax, r14d
jmp 0x1800102b4
ja 0x1800102af
movzx edx, byte [rcx + 4]
movzx ecx, byte [rax + 4]
cmp dl, cl
jae 0x1800102a9
mov eax, r14d
jmp 0x1800102b4
jbe 0x180010388
mov eax, 1
test eax, eax
je 0x1800102cb
sub eax, 1
je 0x180010331
sub eax, 1
je 0x18001033a
cmp eax, 1
jne 0x180010210
mov qword [rsp + 0x40], rdi
lea rdi, [rbp + 0x58]
mov qword [rdi], r9
mov qword [r10], rbp
cmp dword [rbp], 0xe
mov qword [rbp + 0x48], r11
jne 0x180010377
mov qword [rsp + 0x38], rsi
lea rsi, [rbp + 0xa0]
cmp qword [rdi], r14
je 0x180010372
mov qword [rsp + 0x30], rbx
nop
mov rbx, qword [rdi]
mov rcx, rbp
mov rdx, rbx
call fcn.180010120
test eax, eax
jne 0x180010349
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbx + 0x28]
movzx eax, word [rdx]
cmp word [rcx], ax
ja 0x18001036d
movzx eax, byte [rdx + 0x1f]
cmp byte [rcx + 2], al
ja 0x18001036d
lea rdi, [rbx + 0x58]
jmp 0x180010368
lea r10, [r9 + 0x58]
jmp 0x180010210
mov r11, r9
lea r10, [r9 + 0xa0]
jmp 0x180010210
mov qword [rsi], rbx
mov rax, qword [rbx + 0x58]
mov qword [rdi], rax
mov rax, qword [rsi]
mov qword [rax + 0x48], rbp
mov rax, qword [rsi]
mov qword [rax + 0x58], r14
mov rsi, qword [rsi]
add rsi, 0x58
cmp qword [rdi], r14
jne 0x180010300
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x104
lea r8, str.....hwlocpci_common.c
mov rcx, rax
lea rdx, str.Bad_assertion_in_hwloc__s:_d__aborting__n
call fcn.1800053c0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rbp + 0x48], r11
mov qword [rbp + 0x58], r14
mov qword [r10], rbp
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp 0x1800101f0
Function at 0x1800103e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r10, rdx
mov r11, rcx
xor r14d, r14d
nop word [rax + rax]
mov r9, qword [r10]
test r9, r9
je 0x1800103bb
mov rax, qword [r9 + 0x28]
mov rcx, qword [rbp + 0x28]
movzx r8d, word [rax]
movzx edx, word [rcx]
cmp dx, r8w
jae 0x180010236
mov eax, r14d
jmp 0x1800102b4
ja 0x1800102af
cmp dword [rbp], 0xe
jne 0x180010253
movzx edx, byte [rax + 2]
cmp dl, byte [rcx + 0x1e]
jb 0x180010253
cmp dl, byte [rcx + 0x1f]
ja 0x180010253
mov eax, 3
jmp 0x1800102b4
cmp dword [r9], 0xe
jne 0x18001026e
movzx edx, byte [rcx + 2]
cmp dl, byte [rax + 0x1e]
jb 0x18001026e
cmp dl, byte [rax + 0x1f]
ja 0x18001026e
mov eax, 2
jmp 0x1800102b4
movzx edx, byte [rcx + 2]
movzx r8d, byte [rax + 2]
cmp dl, r8b
jae 0x180010281
mov eax, r14d
jmp 0x1800102b4
ja 0x1800102af
movzx edx, byte [rcx + 3]
movzx r8d, byte [rax + 3]
cmp dl, r8b
jae 0x180010296
mov eax, r14d
jmp 0x1800102b4
ja 0x1800102af
movzx edx, byte [rcx + 4]
movzx ecx, byte [rax + 4]
cmp dl, cl
jae 0x1800102a9
mov eax, r14d
jmp 0x1800102b4
jbe 0x180010388
mov eax, 1
test eax, eax
je 0x1800102cb
sub eax, 1
je 0x180010331
sub eax, 1
je 0x18001033a
cmp eax, 1
jne 0x180010210
mov qword [rsp + 0x40], rdi
lea rdi, [rbp + 0x58]
mov qword [rdi], r9
mov qword [r10], rbp
cmp dword [rbp], 0xe
mov qword [rbp + 0x48], r11
jne 0x180010377
mov qword [rsp + 0x38], rsi
lea rsi, [rbp + 0xa0]
cmp qword [rdi], r14
je 0x180010372
mov qword [rsp + 0x30], rbx
nop
mov rbx, qword [rdi]
mov rcx, rbp
mov rdx, rbx
call fcn.180010120
test eax, eax
jne 0x180010349
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbx + 0x28]
movzx eax, word [rdx]
cmp word [rcx], ax
ja 0x18001036d
movzx eax, byte [rdx + 0x1f]
cmp byte [rcx + 2], al
ja 0x18001036d
lea rdi, [rbx + 0x58]
jmp 0x180010368
lea r10, [r9 + 0x58]
jmp 0x180010210
mov r11, r9
lea r10, [r9 + 0xa0]
jmp 0x180010210
mov qword [rsi], rbx
mov rax, qword [rbx + 0x58]
mov qword [rdi], rax
mov rax, qword [rsi]
mov qword [rax + 0x48], rbp
mov rax, qword [rsi]
mov qword [rax + 0x58], r14
mov rsi, qword [rsi]
add rsi, 0x58
cmp qword [rdi], r14
jne 0x180010300
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x104
lea r8, str.....hwlocpci_common.c
mov rcx, rax
lea rdx, str.Bad_assertion_in_hwloc__s:_d__aborting__n
call fcn.1800053c0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rbp + 0x48], r11
mov qword [rbp + 0x58], r14
mov qword [r10], rbp
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp 0x1800101f0
Function at 0x180011760
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1800b02f0], ebx
je 0x180011789
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [0x1800b02f0], ebx
jne 0x180011777
mov eax, dword [0x1800b02f8]
mov ecx, eax
inc eax
mov qword [rsp + 0x30], rbp
mov dword [0x1800b02f8], eax
test ecx, ecx
je 0x1800117b5
xor ebp, ebp
mov dword [0x1800b02f0], ebp
mov rbp, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, str.HWLOC_COMPONENTS_VERBOSE
mov qword [rsp + 0x48], r14
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebp, ebp
test rax, rax
je 0x1800117df
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b02f4], eax
jmp 0x1800117e5
mov dword [0x1800b02f4], ebp
mov rdx, qword [0x180092300]
lea r14, [0x180092300]
mov qword [0x1800b0340], rbp
mov dword [0x1800b033c], ebp
test rdx, rdx
je 0x180011847
nop word [rax + rax]
mov ecx, dword [0x1800b033c]
inc ecx
mov dword [0x1800b033c], ecx
cmp qword [r14 + rcx*8], rbp
jne 0x180011810
test ecx, ecx
je 0x180011847
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdx, qword [0x180092300]
mov qword [0x1800b0340], rax
mov dword [0x1800b033c], ebp
mov ebx, ebp
test rdx, rdx
je 0x18001194d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
nop dword [rax]
mov eax, ebx
lea rdi, [r14 + rax*8]
mov rax, qword [r14 + rax*8]
mov esi, dword [rax + 0x1c]
test esi, esi
je 0x180011893
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, esi
lea rdx, str.Ignoring_static_component_with_invalid_flags__lx_n
mov rcx, rax
call fcn.1800053c0
jmp 0x180011937
mov rax, qword [rax + 8]
test rax, rax
je 0x1800118cc
xor ecx, ecx
call rax
test eax, eax
jns 0x1800118cc
cmp dword [0x1800b02f4], ebp
je 0x180011937
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.Ignoring_static_component__failed_to_initialize_n
call fcn.1800053c0
jmp 0x180011937
mov rax, qword [rdi]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1800118ef
mov ecx, dword [0x1800b033c]
mov rax, qword [0x1800b0340]
mov qword [rax + rcx*8], rdx
inc dword [0x1800b033c]
mov eax, ebx
mov rcx, qword [r14 + rax*8]
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x180011907
mov rcx, qword [rcx + 0x20]
call fcn.1800114b0
jmp 0x180011937
cmp eax, 1
jne 0x180011937
cmp qword [0x1800b0310], rbp
mov rdx, qword [rcx + 0x20]
jne 0x180011923
mov rax, qword [rdx]
mov qword [0x1800b0310], rax
cmp qword [0x1800b0320], rbp
jne 0x180011937
mov rax, qword [rdx + 8]
mov qword [0x1800b0320], rax
inc ebx
cmp qword [r14 + rbx*8], rbp
jne 0x180011860
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov dword [0x1800b02f0], ebp
mov rbp, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180015ce0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800b031c], 0
jne 0x180015d32
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180015d1d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b0318], eax
mov dword [0x1800b031c], 1
add rsp, 0x28
ret
mov eax, dword [0x1800b0318]
mov dword [0x1800b031c], 1
add rsp, 0x28
ret
mov eax, dword [0x1800b0318]
add rsp, 0x28
ret

Function at 0x180015d40
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800b0334], 0
jne 0x180015daf
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180015d86
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor ecx, ecx
mov dword [0x1800b0334], 1
test eax, eax
sete cl
mov dword [0x1800b0328], ecx
mov eax, ecx
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x180015d5f
mov ecx, dword [0x1800b0328]
mov eax, ecx
mov dword [0x1800b0334], 1
add rsp, 0x28
ret
mov eax, dword [0x1800b0328]
add rsp, 0x28
ret

Function at 0x180015dc0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800b030c], 0
jne 0x180015e2f
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180015e06
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor ecx, ecx
mov dword [0x1800b030c], 1
test eax, eax
sete cl
mov dword [0x1800b032c], ecx
mov eax, ecx
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x180015ddf
mov ecx, dword [0x1800b032c]
mov eax, ecx
mov dword [0x1800b030c], 1
add rsp, 0x28
ret
mov eax, dword [0x1800b032c]
add rsp, 0x28
ret
Function at 0x18001cba0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x1800aad48]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx r9d, byte [rcx]
mov r13, r8
movzx eax, byte [0x1800951c8]
mov r12, rdx
sub r9d, eax
jne 0x18001cbdf
movzx r9d, byte [rcx + 1]
movzx eax, byte [0x1800951c9]
sub r9d, eax
mov qword [rsp + 0xb8], rsi
lea rbx, str._dev_stdin
test r9d, r9d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
lea rdx, [0x1800951dc]
cmovne rbx, rcx
mov qword [rsp + 0x60], r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x18001ccfe
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov edi, 0x1000
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x18001cc4c
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x18001cc4c
mov eax, dword [rsp + 0x34]
inc eax
movsxd rdi, eax
lea rcx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18001ccf5
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r15, rax
mov byte [rax + rsi], 0
cmp rax, rdi
jne 0x18001ccd3
nop dword [rax]
nop word [rax + rax]
add rdi, rdi
mov rcx, rsi
lea rdx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r14, rax
test rax, rax
je 0x18001ccec
mov rbx, rdi
lea rcx, [rax + r15]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r15, rax
mov byte [rsi + r15], 0
cmp rax, rbx
je 0x18001cc90
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, [r15 + 1]
mov qword [r12], rsi
mov qword [r13], rax
xor eax, eax
jmp 0x18001cd01
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
or eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18005aca0
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret