joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ab50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f63f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x14005ab89
xor eax, eax
jmp 0x14005ac53
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400dac78]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x14005abbb
mov edi, ebp
jmp 0x14005ac42
mov r9, rsi
mov r8, rbx
lea rdx, [0x1400c8538]
lea rcx, [rsp + 0x30]
call fcn.1400553f0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005ac2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ac2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ac70
call fcn.140084c40
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14005ac50
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140085660
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call fcn.14008c334
nop
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005ab50

Function at 0x14005ac80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f63f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x14005ab89
xor eax, eax
jmp 0x14005ac53
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400dac78]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x14005abbb
mov edi, ebp
jmp 0x14005ac42
mov r9, rsi
mov r8, rbx
lea rdx, [0x1400c8538]
lea rcx, [rsp + 0x30]
call fcn.1400553f0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005ac2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ac2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ac70
call fcn.140084c40
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14005ac50
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140085660
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call fcn.14008c334
nop
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005ab50
Function at 0x14005b380
Capabilities:
Get file version info

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rdi, rdx
mov rbp, rcx
jne 0x14005b45b
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov dword [rsp + 0x50], 0
jb 0x14005b3ae
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x14005b45b
mov r9, qword [rbp + 0x10]
mov ecx, r14d
mov r8, qword [rbp + 8]
mov rdx, r9
sub rdx, r8
mov qword [rsp + 0x58], rsi
cmp r14, rdx
jae 0x14005b3e8
lea rax, [r8 + r14]
mov qword [rbp + 0x10], rax
jmp 0x14005b429
jbe 0x14005b429
mov rax, qword [rbp + 0x18]
sub rax, r8
cmp rcx, rax
jbe 0x14005b409
mov rdx, rcx
lea r8, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.14001a978
jmp 0x14005b429
sub rcx, rdx
mov qword [rsp + 0x48], rbx
lea rbx, [rcx + r9]
mov rcx, r9
mov rdx, rbx
call fcn.14001ac1c
mov qword [rbp + 0x10], rbx
mov rbx, qword [rsp + 0x48]
cmp qword [rdi + 0x18], 8
jb 0x14005b433
mov rdi, qword [rdi]
mov r9, qword [rbp + 8]
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rsi, qword [rsp + 0x58]
cmp eax, 1
sete al
mov byte [rbp + 0x20], al
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
xor al, al
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14009a408
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14009a43f
call fcn.14008c480
mov dword [rax], 0x16
call fcn.14008c314
xor eax, eax
jmp 0x14009a4cd
mov rdx, r9
mov rcx, r8
call fcn.14009a3a4
mov rbx, rax
test rax, rax
je 0x14009a4ca
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14009a2d0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14009a4b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008c3f4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009a49e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009a4ad
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400a6b64
jmp 0x14009a4ca
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009a4c7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400acaac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400acac2
mov al, 1
jmp 0x1400acb22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400acad3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400acb20
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ac840
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400acb20
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400acb20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400acb20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400acb22
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400aeef8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400aef7f
mov rsi, rbx
cmp word [rax], bp
je 0x1400aef3e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400aef28
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400aef24
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a6ba0
mov rdi, rax
test rax, rax
je 0x1400aef6c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140087210
mov rbp, rdi
xor ecx, ecx
call fcn.1400a6b64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b19d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400a6800
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400b1a79
cmp ebx, dword [rsp + 0x30]
je 0x1400b1a72
test esi, esi
je 0x1400b1a72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400b1a4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400b1a5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400b1a37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400b1a5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400b1a7b
mov eax, 1
jmp 0x1400b1a7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b6a94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400fcb30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400b6aeb
cmp word [rdx], r13w
jne 0x1400b6aeb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b6af0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b6c15
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b6c36
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b6b29
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b6b50
cmp r9, r8
jae 0x1400b6b60
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400b6b0a
jmp 0x1400b6c15
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b6c0a
cmp dword [rsp + 0x80], esi
je 0x1400b6c0a
lea r8, [0x1400fcb30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b6be2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b6bb2
mov word [rbx], r13w
jmp 0x1400b6c12
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400b6bbf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b6c12
cmp word [rsp + 0x70], r13w
jne 0x1400b6bef
cmp rbx, r14
je 0x1400b6bac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b57c4
cmp word [rsp + 0x70], r13w
je 0x1400b6c15
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400fcb30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b6c0f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b6c15
Function at 0x1400b7560
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b57c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b57c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b76b0
cmp rax, 0xffffffffffffffff
je 0x1400b76b0
xor edi, edi
test rbp, rbp
jle 0x1400b765b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a8a30
mov rbx, rax
test rax, rax
jne 0x1400b75e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b7651
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a4914
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b4820
cmp eax, 0xffffffff
je 0x1400b7631
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b75f8
mov edx, r15d
mov ecx, r14d
call fcn.1400a4914
jmp 0x1400b7651
cmp byte [rsi + 0x38], dil
je 0x1400b7648
cmp dword [rsi + 0x34], 5
jne 0x1400b7648
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400b7651
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a6b64
jmp 0x1400b76c4
jns 0x1400b76c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b57c4
cmp rax, 0xffffffffffffffff
jne 0x1400b767c
cmp byte [rsi + 0x30], dil
je 0x1400b76c4
mov edi, dword [rsi + 0x2c]
jmp 0x1400b76c4
mov ecx, r14d
call fcn.1400ac840
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b76c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400b76c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b76bd
mov eax, dword [rsi + 0x2c]
jmp 0x1400b76c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b57c4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1401b3000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push rbp
mov rbp, rsp
sub rsp, 0x20
and rsp, 0xfffffffffffffff0
lea rbx, [0x140126a00]
movabs rdx, 0
push rbx
Function at 0x180002620
Capabilities:
Terminate process

Disassembly:
push rbx
mov eax, 0x20
call fcn.180050e60
sub rsp, rax
or rax, 0xffffffffffffffff
mov rbx, rcx
test rcx, rcx
cmove rbx, rax
call fcn.1800074e0
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8, rbx
call fcn.1800072f0
test eax, eax
je 0x180002661
mov ecx, 0x7f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180009080
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov r10, r9
mov r11d, edx
mov rbx, rcx
test edx, edx
jne 0x18000909a
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov r9, qword [r8]
movzx eax, r9b
mov rdx, r9
xor eax, 0x811c9dc5
shr rdx, 8
movzx ecx, dl
shr rdx, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, dl
shr rdx, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, dl
shr rdx, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, dl
shr rdx, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, dl
shr rdx, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, dl
shr rdx, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, dl
shr rdx, 8
movzx r8d, dl
xor edx, edx
imul eax, eax, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
xor r8d, ecx
imul r8d, r8d, 0x1000193
mov eax, r8d
div r11d
mov rax, qword [rbx + rdx*8]
lea rdx, [rbx + rdx*8]
test rax, rax
je 0x180009151
nop
cmp qword [rax + 8], r9
je 0x180009151
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180009140
test r10, r10
je 0x180009159
mov dword [r10], r8d
mov rbx, qword [rsp + 8]
mov rax, rdx
ret
Function at 0x18000b640
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.180050e60
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x18000b680
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180050e60
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x18000b6a0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180050e60
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret

Function at 0x18000cf40
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x40
call fcn.180050e60
sub rsp, rax
mov rdx, qword [rcx + 0x18]
mov eax, dword [rcx + 8]
xor ebx, ebx
lea r8, [rdx + rax*8]
mov rsi, rcx
cmp rdx, r8
je 0x18000cf83
nop dword [rax]
cmp qword [rdx], rbx
jne 0x18000cf80
add rdx, 8
cmp rdx, r8
jne 0x18000cf70
jmp 0x18000cf83
mov rbx, qword [rdx]
test rbx, rbx
je 0x18000d0ef
mov rbx, qword [rbx + 8]
mov rax, qword [rsi]
mov rdx, rsi
mov rcx, qword [rbx]
call qword [rax + 8]
mov dl, 1
mov rcx, rbx
call fcn.18000a200
test eax, eax
jne 0x18000d0f1
mov rcx, rbx
call fcn.180008fc0
mov rcx, rbx
call fcn.18000b860
mov r11d, dword [rsi + 8]
mov r9, qword [rsi + 0x18]
test r11d, r11d
je 0x18000d0ad
movzx ecx, bl
mov r8, rbx
xor ecx, 0x811c9dc5
shr r8, 8
movzx eax, r8b
shr r8, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, r8b
shr r8, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, r8b
shr r8, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, r8b
shr r8, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, r8b
shr r8, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, r8b
shr r8, 8
movzx edx, r8b
shr r8, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, r8b
imul ecx, ecx, 0x1000193
xor edx, ecx
imul edx, edx, 0x1000193
xor eax, edx
xor edx, edx
imul eax, eax, 0x1000193
div r11d
mov rax, qword [r9 + rdx*8]
lea rdx, [r9 + rdx*8]
test rax, rax
je 0x18000d084
cmp qword [rax + 8], rbx
je 0x18000d084
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x18000d073
test rdx, rdx
je 0x18000d0ad
mov rcx, qword [rdx]
test rcx, rcx
je 0x18000d0ad
mov rax, qword [rcx]
mov qword [rdx], rax
call fcn.18000b860
dec qword [rsi + 0x10]
mov rdx, qword [rsi + 0x10]
lea rcx, [rsi + 8]
call fcn.18000c820
mov rcx, qword [rsi + 0x18]
mov eax, dword [rsi + 8]
xor ebx, ebx
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x18000d0e0
nop
cmp qword [rcx], rbx
jne 0x18000d0dd
add rcx, 8
cmp rcx, rdx
jne 0x18000d0c0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rdx
jmp 0x18000cf83
mov rbx, qword [rcx]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rdx
jmp 0x18000cf83
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18000d9d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x20
call fcn.180050e60
sub rsp, rax
xor ebx, ebx
mov rsi, rcx
mov ebp, ebx
test rcx, rcx
je 0x18000dab7
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000daba
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x18000da64
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x18000dab7
add r8, r8
mov rdx, rsi
sub r8, rsi
add r8, rbp
nop word [rax + rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8 + rdx], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
dec rcx
cmp rax, rcx
jb 0x18000da90
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x18000ddf0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800759b4], 0
jne 0x18000de42
lea rcx, str.HWLOC_HIDE_ERRORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18000de2d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800759b0], eax
mov dword [0x1800759b4], 1
add rsp, 0x28
ret
mov eax, dword [0x1800759b0]
mov dword [0x1800759b4], 1
add rsp, 0x28
ret
mov eax, dword [0x1800759b0]
add rsp, 0x28
ret
Function at 0x180016070
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180071240]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor ebx, ebx
nop
mov ecx, ebx
call fcn.180012950
mov r9, rax
lea rcx, [rsp + 0x20]
mov edx, 0x40
lea r8, str.HWLOC__s_DISTANCES
call fcn.18000dd80
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800160cd
mov r8, rax
mov edx, ebx
mov rcx, rdi
call fcn.180015a40
inc ebx
cmp ebx, 0xc
jl 0x180016090
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180050ed0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x180018770
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rcx
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1800759c8], ebx
je 0x1800187a2
nop
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [0x1800759c8], ebx
jne 0x180018790
mov eax, dword [0x1800759d0]
mov ecx, eax
inc eax
mov qword [rsp + 0x30], rsi
mov dword [0x1800759d0], eax
test ecx, ecx
je 0x1800187c2
xor esi, esi
jmp 0x18001894c
lea rcx, str.HWLOC_COMPONENTS_VERBOSE
mov qword [rsp + 0x40], r14
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor esi, esi
test rax, rax
je 0x1800187ec
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800759cc], eax
jmp 0x1800187f2
mov dword [0x1800759cc], esi
mov rdx, qword [0x180063b60]
lea r14, [0x180063b60]
mov qword [0x180075a08], rsi
mov dword [0x180075a00], esi
test rdx, rdx
je 0x180018849
mov ecx, dword [0x180075a00]
inc ecx
mov dword [0x180075a00], ecx
cmp qword [r14 + rcx*8], rsi
jne 0x180018812
test ecx, ecx
je 0x180018849
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdx, qword [0x180063b60]
mov qword [0x180075a08], rax
mov dword [0x180075a00], esi
mov ebx, esi
test rdx, rdx
je 0x180018947
mov qword [rsp + 0x38], rdi
nop dword [rax]
mov eax, ebx
mov rax, qword [r14 + rax*8]
mov edi, dword [rax + 0x1c]
test edi, edi
je 0x18001888f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
lea rdx, str.Ignoring_static_component_with_invalid_flags__lx_n
mov rcx, rax
call fcn.18000dd30
jmp 0x180018936
mov rax, qword [rax + 8]
test rax, rax
je 0x1800188c8
xor ecx, ecx
call rax
test eax, eax
jns 0x1800188c8
cmp dword [0x1800759cc], esi
je 0x180018936
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.18000dd30
jmp 0x180018936
mov eax, ebx
mov rax, qword [r14 + rax*8]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1800188ee
mov ecx, dword [0x180075a00]
mov rax, qword [0x180075a08]
mov qword [rax + rcx*8], rdx
inc dword [0x180075a00]
mov eax, ebx
mov rcx, qword [r14 + rax*8]
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x180018906
mov rcx, qword [rcx + 0x20]
call fcn.1800184b0
jmp 0x180018936
cmp eax, 1
jne 0x180018936
cmp qword [0x1800759e0], rsi
mov rdx, qword [rcx + 0x20]
jne 0x180018922
mov rax, qword [rdx]
mov qword [0x1800759e0], rax
cmp qword [0x1800759f0], rsi
jne 0x180018936
mov rax, qword [rdx + 8]
mov qword [0x1800759f0], rax
inc ebx
cmp qword [r14 + rbx*8], rsi
jne 0x180018860
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov dword [0x1800759c8], esi
mov qword [rbp + 0x7e8], rsi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x180019230
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x7e8]
mov rbx, rcx
mov dword [rcx + 0x66c], 1
mov rdx, rax
xor ecx, ecx
test rax, rax
je 0x18001926e
cmp dword [rdx + 0x10], ecx
jne 0x180019265
cmp dword [rdx + 0x28], 0xffffffff
je 0x180019265
mov dword [rbx + 0x66c], ecx
mov rdx, qword [rdx + 0x18]
test rdx, rdx
jne 0x180019254
test byte [rbx + 0x608], 2
je 0x180019281
mov dword [rbx + 0x66c], 1
test rax, rax
je 0x1800192a1
cmp dword [rax + 0x10], 1
jne 0x180019298
cmp dword [rax + 0x28], 0xffffffff
je 0x180019298
mov dword [rbx + 0x66c], ecx
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x180019286
lea rcx, str.HWLOC_THISSYSTEM
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800192c2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0x66c], eax
add rsp, 0x20
pop rbx
ret