joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d920
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov rsi, r8
mov qword [rbp + 0x40], rbx
mov rdi, rdx
mov qword [rbp + 0x48], rbx
mov r14, rcx
mov qword [r8], rbx
test rdx, rdx
jne 0x14006d95f
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006db28
lea rcx, [rbp - 0x10]
call fcn.14000c258
lea r9, [rbp + 0x48]
mov rdx, rdi
lea r8, [rbp + 0x40]
mov rcx, r14
call fcn.14006d6c4
test eax, eax
jne 0x14006d992
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006dace
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14006dabe
mov ecx, dword [rbp + 0x38]
cmp ecx, 0x48
jb 0x14006dabe
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
jne 0x14006da0c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006dabe
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
mov r14d, 2
test eax, eax
jne 0x14006da9d
mov rcx, qword [rsi]
mov r10d, 0x8007000d
mov r9d, dword [rbp + 0x38]
test rcx, rcx
je 0x14006da71
cmp r9, 0x4c
jb 0x14006da71
movzx r8d, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add r8, rax
cmp r9, r8
jb 0x14006da71
call fcn.140006da0
mov r10d, eax
mov ecx, r10d
call fcn.14000810c
mov edi, eax
test eax, eax
je 0x14006dab8
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
cmove edi, r14d
test edi, edi
je 0x14006dab8
mov r8, qword [rsi]
xor edx, edx
mov rcx, qword [0x1400b9518]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rsi], rbx
cmp edi, r14d
cmove edi, ebx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x14006db18
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp edi, 5
je 0x14006db1d
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006db1d
test byte [rcx + 0x44], 0x20
je 0x14006db1d
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cd28]
mov edx, 0xf
mov r9d, edi
call fcn.1400307d8
jmp 0x14006db1d
mov ebx, 1
lea rcx, [rbp - 0x10]
call fcn.14000c128
mov eax, ebx
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14006db40
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rbx, r8
and qword [rsp + 0x58], 0
mov rdi, rdx
test rdx, rdx
jne 0x14006db7e
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.14006d6c4
test eax, eax
je 0x14006db70
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x14006dbb7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
jne 0x14006dc00
xor ebx, ebx
jmp 0x14006dc00
movzx ecx, word [rbx + 0x46]
mov r9d, 3
movzx eax, word [rbx + 0x44]
xor r8d, r8d
add ecx, eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006dc00
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
lea ecx, [rax + 2]
lea r8d, [rax + 0x1b]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14006dc74
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x14006db70
test byte [rax + 0x44], 0x20
je 0x14006db70
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009cd28]
mov r9d, eax
mov edx, 0xe
mov rcx, qword [rcx + 0x38]
call fcn.1400307d8
jmp 0x14006db70
mov eax, 1
jmp 0x14006db72
Function at 0x14006f648
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rcx, qword [0x1400b90e0]
mov ebx, 1
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test byte [0x1400b90e8], bl
jne 0x14006f75d
mov eax, dword [0x1400b90f0]
test eax, eax
je 0x14006f6d3
lea r9d, [rax - 1]
mov dword [0x1400b90f0], r9d
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006f6bb
test byte [rcx + 0x44], 0x80
je 0x14006f6bb
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 9]
lea r8, [0x1400ac658]
call fcn.1400307d8
mov rcx, qword [0x1400b90f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
jmp 0x14006f75f
mov rax, qword [0x1400b90e0]
mov r9d, dword [0x1400b90ec]
cmp r9d, dword [rax]
jae 0x14006f75f
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006f714
test byte [rcx + 0x44], 0x80
je 0x14006f714
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac658]
mov edx, 0xb
call fcn.1400307d8
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x1400b90e0]
and dword [rsp + 0x20], 0
lea r8, [0x14006f890]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14006f75d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
add dword [0x1400b90ec], ebx
jmp 0x14006f75f
xor ebx, ebx
mov rcx, qword [0x1400b90e0]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140076c00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400b7c44], 0xffffffff
jne 0x140076cb1
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400b7c44], ebx
lea rdx, [0x1400acb40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140076cb1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140076ca0
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400b7c44], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x1400b7c44]
add rsp, 0x30
pop rbx
ret

Function at 0x1400772c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140077367
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077356
cmp dword [rsp + 0x58], 4
jne 0x140077356
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x50], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400773ab
test byte [rcx + 0x1c], 2
je 0x1400773ab
cmp dword [rdi + 0x50], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x1400acbc0]
mov edx, 0xe
call fcn.140040ed0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007749c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14007753d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077522
cmp dword [rsp + 0x60], ebx
je 0x140077527
mov ebx, 1
mov dword [rdi + 0x4c], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140077544
mov dword [rdi + 0x4c], 1
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140077588
test byte [rcx + 0x1c], 2
je 0x140077588
cmp dword [rdi + 0x4c], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400acbc0]
mov edx, 0xd
call fcn.140040ed0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007a7c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007a8dc
cmp dword [rsp + 0x30], 3
jne 0x14007a8dc
cmp dword [rsp + 0x68], 0x48
jbe 0x14007a8dc
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14007a8d5
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14007a8c0
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x14007a88f
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x14007a88f
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x14007a90d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007a8c0
test byte [rcx + 0x1c], 4
je 0x14007a8c0
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x14009ce08]
call fcn.1400307ac
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x14007a90d
mov ebx, 8
jmp 0x14007a90d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007a90d
test byte [rcx + 0x1c], 4
je 0x14007a90d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x14009ce08]
call fcn.1400307ac
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140002690
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140022a88]
mov edx, 0x66
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbx, rax
call fcn.140018230
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140022a90]
lea rcx, str.C:windows_temp_
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, str.___MSI_file:__ls_n
call fcn.1400013d0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0x40040000
mov dword [rsp + 0x20], 2
mov rdi, rax
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rdx, str.ACTIONINSTALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rdx, str.REMOVEALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002890
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003334
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007093
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007093
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007093
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007093
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007093
cmp dword [rcx + 0x84], 0xe
jbe 0x140007093
cmp dword [rcx + 0xf8], 0
je 0x140007093
mov ecx, ebx
call fcn.140007144
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140006f20
nop
cmp dword [rbp + 0x20], 0
je 0x1400070e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400070ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007024
Function at 0x14001103c
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 0x1400110c3
mov rsi, rbx
cmp word [rax], bp
je 0x140011082
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001106c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011068
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ddfc
mov rdi, rax
test rax, rax
je 0x1400110b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400185f0
mov rbp, rdi
xor ecx, ecx
call fcn.14000d1c8
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 0x14001528c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400152a2
mov al, 1
jmp 0x140015302
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400152b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015300
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400117e0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015300
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015300
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015300
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015302
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140017eb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017ed8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017ed8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001da0
Capabilities:
Parse pe header

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

Function at 0x140005ea0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005c90
Function at 0x140008ef8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008f28
xor eax, eax
jmp 0x140008feb
mov rbp, rbx
cmp word [rax], si
je 0x140008f4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008f34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008f30
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008e48
movsxd r14, eax
test eax, eax
jne 0x140008f8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008f21
mov rcx, r14
call fcn.140009964
mov rdi, rax
test rax, rax
jne 0x140008fa4
xor ecx, ecx
call fcn.1400074b0
jmp 0x140008f80
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008e48
test eax, eax
jne 0x140008fd5
mov rcx, rdi
call fcn.1400074b0
jmp 0x140008fdf
xor ecx, ecx
call fcn.1400074b0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000e750
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e778
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e778
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003e60
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x140089040]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140003ed0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140003f4a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140003efb
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14006b220
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140003f4a
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140003f4d
mov rbx, r14
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
jbe 0x140003f5a
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140003f72
inc rbx
test eax, eax
jne 0x140003f60
test ecx, ecx
mov rcx, rsi
je 0x140003fd2
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003ec1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140003fce
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003fc9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004049
mov rcx, r8
call fcn.14006a60c
xor eax, eax
jmp 0x140004015
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140004012
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000400d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004049
mov rcx, r8
call fcn.14006a60c
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.14006a180
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3