joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401514c0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov qword [rbp - 0x18], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp + 0x58], rcx
mov eax, dword [rbp + 0xb4]
mov dword [rbp + 0xc], eax
lea rax, [rbp + 0xc]
mov qword [rbp + 0xa0], rax
lea rdx, [rbp + 0xc]
call sub.shell32.dll_CommandLineToArgvW
mov rcx, rax
mov qword [rbp], rcx
mov qword [rbp + 0x60], rcx
call fcn.14016c2a0
test al, 1
jne 0x140151571
mov rcx, qword [rbp]
movsxd rdx, dword [rbp + 0xc]
mov eax, edx
mov dword [rbp + 0xac], eax
mov dword [rbp + 0xb0], eax
mov dword [rbp + 0x6c], eax
call fcn.140163210
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
lea rcx, [rbp + 0x10]
call fcn.140141530
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
call fcn.140158370
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
jmp 0x14015157f
mov rcx, qword [rbp - 0x10]
call fcn.140141530
jmp 0x140151614
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x20]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x28]
call fcn.140158f30
mov qword [rbp - 0x40], rax
jmp 0x14015159e
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
cmp rax, 0
sete al
test al, 1
jne 0x1401515b7
jmp 0x1401515dd
mov rcx, qword [rbp]
call sub.kernel32.dll_LocalFree
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x18]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x20]
mov qword [rax + 0x10], rcx
jmp 0x140151614
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x80], rax
mov rcx, qword [rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x88], rdx
mov rcx, qword [rax]
call fcn.1401631d0
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rax
jmp 0x140151621
mov rax, qword [rbp - 8]
add rsp, 0x140
pop rbp
ret
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov qword [rbp + 0x90], rdx
mov qword [rbp + 0x98], r8
lea rcx, [rbp + 0x40]
call fcn.14015d7d0
jmp 0x140151642
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x40]
call fcn.140142920
jmp 0x140151651
jmp 0x14015158f
Function at 0x14016a3a0
Capabilities:
Get disk size

Disassembly:
sub rsp, 0xb8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x38], rcx
cmp qword [rcx + 0x78], 0
jne 0x14016a3c2
mov byte [rsp + 0x2f], 0
jmp 0x14016a4cb
mov byte [rsp + 0x6f], 0
mov qword [rsp + 0x70], 1
mov byte [rsp + 0x7f], 0
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x58]
mov edx, 8
call fcn.140137bd0
lea rcx, [rsp + 0x58]
xor edx, edx
mov r8d, 8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
add rcx, 0x48
call fcn.1401432b0
mov rcx, rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
xor eax, eax
mov r8d, eax
lea r9, [rsp + 0x30]
mov rdx, r8
call sub.kernel32.dll_GetDiskFreeSpaceExW
cmp eax, 0
je 0x14016a3b8
lea rcx, [rsp + 0x30]
call fcn.140167910
mov rcx, rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rcx]
mov qword [rax + 0x80], rcx
mov byte [rsp + 0x2f], 1
mov al, byte [rsp + 0x2f]
and al, 1
add rsp, 0xb8
ret
Function at 0x14016a5e0
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x138
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov byte [rsp + 0xef], 0
mov qword [rsp + 0xf0], 1
mov byte [rsp + 0xff], 0
mov qword [rsp + 0x100], 1
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0xd8]
mov edx, 8
call fcn.140137bd0
lea rcx, [rsp + 0xd8]
xor edx, edx
mov r8d, 8
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x9f], 0
mov qword [rsp + 0xa0], 1
mov byte [rsp + 0xaf], 0
mov qword [rsp + 0xb0], 1
lea rax, [rsp + 0x88]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x88]
mov edx, 8
call fcn.140137bd0
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8d, 8
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x128], rcx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
xor eax, eax
mov edx, eax
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x50]
call sub.kernel32.dll_GetDiskFreeSpaceExW
cmp eax, 0
jne 0x14016a7c3
mov rax, qword [rsp + 0x28]
mov qword [rax], 0
jmp 0x14016a7fe
lea rcx, [rsp + 0x48]
call fcn.140167910
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.140167910
mov rdx, qword [rsp + 0x20]
mov rcx, rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rcx
mov qword [rax], 1
mov rax, qword [rsp + 0x30]
add rsp, 0x138
ret

Function at 0x14016a810
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
call sub.kernel32.dll_GetLogicalDrives
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14016a83a
mov rcx, qword [rsp + 0x30]
call fcn.140141630
jmp 0x14016a86f
xor ecx, ecx
mov edx, 0x20
call fcn.140165cc0
mov dword [rsp + 0x2c], eax
mov r8d, edx
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x44]
call fcn.14015dba0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
call fcn.140163990
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x1401a2620
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x1401a2660
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1401a2700
jmp 0x1401a26ef
jae 0x1401a27ce
cmp r8, 0x201
jae 0x1401a2700
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1401a2766
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401a273e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1401bc710
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1401a278f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401a283a
mov r8d, r13d
cmp r12, r8
jne 0x1401a26e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401a286e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1401a26ef
jmp 0x1401a2700
cmp r14, r8
jb 0x1401a2888
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1401a5680
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1401a2823
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14001ac80
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1401a280e
jmp 0x1401a2823
lea rcx, str.internal_error:_entered_unreachable_code_rustc_90b35a6239c3d8bdabc530a6a0816f7ff89a0aaflibrary_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401bd6b0
jmp 0x1401a289d
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1401bdaa0
ud2
Function at 0x1401aae60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1401ee298]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401aaeef
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x1401aaefc
xor edx, edx
xor eax, eax
jmp 0x1401aaf26
cmp eax, 0x103
je 0x1401aaf30
test eax, eax
js 0x1401aaf0f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1401aaf26
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1401a5280
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1401a04b0
mov ecx, 7
int 0x29
ud2

Function at 0x1401aaf80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1401ee298]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1401ab016
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1401ab043
test eax, eax
js 0x1401ab022
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1401ab039
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1401a5280
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1401a04b0
mov ecx, 7
int 0x29
ud2
Function at 0x1401bbc50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1401bbc9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401bbc9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401bbc9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401bbc9a
cmp dword [rcx + 0x84], 0xe
jbe 0x1401bbc9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401bbc9c
xor al, al
add rsp, 0x28
ret
Function at 0x140003e00
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.1400088d0
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.1400088d0
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x140008d00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140030008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x140008d6c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140008d6c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x140008d6c
movzx edx, word [rax + 6]
test edx, edx
je 0x140008d6c
sub rcx, qword [0x140030008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140008d58
add rax, 0x28
dec edx
je 0x140008d6c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140008d50
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140008d50
jmp 0x140008d6e
xor eax, eax
ret

Function at 0x140008d70
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140030008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140008da5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140008da5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140008da5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x140008e20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140030008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140008e4c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140008e4c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x140008e4e
xor eax, eax
ret

Function at 0x1400097d0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
call fcn.140009b80
test al, al
je 0x140009823
mov r14, qword [fcn.1400088d0]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0llx__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.1400097a0
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140009c90

Function at 0x1400098b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140009b80
test al, al
je 0x1400098f8
mov rbx, qword [fcn.1400088d0]
mov ecx, 2
call rbx
lea rdx, str.libunwind:__Unwind_SetIP_context_p__value0x_0llx__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.1400097a0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140009c90
Function at 0x140009920
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm12
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rsp + 0x60], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rdi, rdx
mov rsi, rcx
cmp byte [0x14023bbdb], 1
jne 0x140009973
cmp byte [0x14023bbda], 0
jne 0x140009992
jmp 0x1400099c4
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x14023bbdb], 1
test rax, rax
setne byte [0x14023bbda]
je 0x1400099c4
mov rbx, qword [fcn.1400088d0]
mov ecx, 2
call rbx
lea rdx, str.libunwind:___unw_init_local_cursor_p__context_p__n
mov rcx, rax
mov r8, rsi
mov r9, rdi
call fcn.1400064e0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
lea rax, [0x1400312e0]
mov qword [rsi], rax
lea rax, [0x14023bbc8]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x580]
lea rcx, [rsi + 0xb0]
xorps xmm0, xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x50], xmm0
movaps xmmword [rsi + 0x60], xmm0
movaps xmmword [rsi + 0x70], xmm0
movaps xmmword [rsi + 0x80], xmm0
movaps xmmword [rsi + 0x90], xmm0
mov qword [rsi + 0xa0], 0
movaps xmmword [rsi + 0x580], xmm0
movaps xmmword [rsi + 0x590], xmm0
movaps xmmword [rsi + 0x5a0], xmm0
movaps xmmword [rsi + 0x5b0], xmm0
movaps xmmword [rsi + 0x5c0], xmm0
movaps xmmword [rsi + 0x5d0], xmm0
movaps xmmword [rsi + 0x5e0], xmm0
movaps xmmword [rsi + 0x5f0], xmm0
movaps xmmword [rsi + 0x600], xmm0
movaps xmmword [rsi + 0x610], xmm0
movaps xmmword [rsi + 0x620], xmm0
movaps xmmword [rsi + 0x630], xmm0
movaps xmmword [rsi + 0x640], xmm0
movups xmmword [rsi + 0x649], xmm0
mov qword [rsi + 0x80], rcx
mov qword [rsi + 0x98], rax
mov rbx, qword [rdi]
mov r14, qword [rdi + 8]
mov r15, qword [rdi + 0x80]
movups xmm6, xmmword [rdi + 0x10]
movdqu xmm0, xmmword [rdi + 0x30]
pshufd xmm7, xmm0, 0x4e
movdqu xmm0, xmmword [rdi + 0x20]
pshufd xmm8, xmm0, 0x4e
movups xmm9, xmmword [rdi + 0x40]
movups xmm10, xmmword [rdi + 0x50]
movups xmm11, xmmword [rdi + 0x60]
movups xmm12, xmmword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov dword [rsi + 0xe0], 0x10000b
mov qword [rsi + 0x128], rbx
movaps xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x140], r14
movdqu xmmword [rsi + 0x148], xmm7
movdqu xmmword [rsi + 0x158], xmm8
movups xmmword [rsi + 0x168], xmm9
movups xmmword [rsi + 0x178], xmm10
movups xmmword [rsi + 0x188], xmm11
movups xmmword [rsi + 0x198], xmm12
mov qword [rsi + 0x1a8], r15
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
xor edx, edx
call qword [0x14023f008]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm10, xmmword [rsp + 0x60]
movaps xmm11, xmmword [rsp + 0x70]
movaps xmm12, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140009b80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x14023bbdb], 1
jne 0x140009b9c
cmp byte [0x14023bbda], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
test rax, rax
setne al
setne byte [0x14023bbda]
mov byte [0x14023bbdb], 1
add rsp, 0x28
ret

Function at 0x140009bd0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
cmp byte [0x14023bbdb], 1
jne 0x140009bf5
cmp byte [0x14023bbda], 0
jne 0x140009c14
jmp 0x140009c4d
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x14023bbdb], 1
test rax, rax
setne byte [0x14023bbda]
je 0x140009c4d
mov r14, qword [fcn.1400088d0]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.1400064e0
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x14023f008]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x140009c81
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x14023f008]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140009c90
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rbx, r8
mov edi, edx
mov rsi, rcx
cmp byte [0x14023bbdb], 1
jne 0x140009cb6
cmp byte [0x14023bbda], 0
jne 0x140009cd5
jmp 0x140009d0e
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x14023bbdb], 1
test rax, rax
setne byte [0x14023bbda]
je 0x140009d0e
mov r14, qword [fcn.1400088d0]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rbx
lea rdx, str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_llx__n
mov rcx, rax
mov r8, rsi
mov r9d, edi
call fcn.1400064e0
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
mov edx, edi
call qword [0x14023f008]
mov ebp, 0xffffe672
test al, al
je 0x140009daf
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [0x14023f008]
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x140009daf
mov rax, qword [rsi]
mov rax, qword [rax + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [0x14023f008]
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
xor ebp, ebp
mov rcx, rsi
xor edx, edx
call qword [0x14023f008]
cmp qword [rsp + 0x48], 0
je 0x140009daf
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [0x14023f008]
add rax, qword [rsp + 0x48]
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x20]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
mov rax, r9
call qword [0x14023f008]
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret