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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov dword [rbp + 0x48], 4
mov dword [rbp + 0x30], ebx
mov r14d, r8d
mov r15d, edx
mov rdi, rcx
test rcx, rcx
je 0x1800329ac
mov rcx, qword [0x1800a9f20]
xor edx, edx
mov r8d, pe_nt_image_headers64
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rdi], rax
test rax, rax
je 0x1800329ac
mov r8d, r14d
mov dword [rdi + 0xc], 0x1f
mov edx, r15d
mov dword [rdi + 8], ebx
mov rcx, rdi
call fcn.180032b54
test eax, eax
je 0x180049188
mov esi, dword [rdi + 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionReliability
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x18003296b
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.ShutdownIgnorePredefinedReasons
lea rax, [rbp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x30]
mov r9d, r14d
mov rdx, qword [rbp - 0x10]
test eax, eax
mov r8d, r15d
cmovne ecx, ebx
mov dword [rbp + 0x30], ecx
mov rcx, rdi
call fcn.1800329b8
test eax, eax
je 0x1800329a7
cmp dword [rdi + 8], ebx
je 0x1800329a7
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rbp + 0x30], ebx
jne 0x180049196
movsxd rdx, dword [rdi + 8]
lea r9, [0x1800326c0]
mov rcx, qword [rdi]
mov r8d, 8
call qword [sym.imp.ntdll.dll_qsort]
mov eax, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0x30], ebx
jmp 0x180032961
xor eax, eax
jmp 0x180032993
mov rcx, rdi
call sym.USER32.dll_DestroyReasons
nop
jmp 0x1800329ac
mov eax, dword [rdi + 8]
cmp eax, esi
jle 0x180032974
test esi, esi
je 0x1800491cb
mov r14, rsi
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800a9f20]
mov r8, qword [r8 + rbx]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rbx, [rbx + 8]
sub r14, 1
jne 0x1800491a8
mov eax, dword [rdi + 8]
mov rcx, qword [rdi]
sub eax, esi
mov r8d, eax
shl r8, 3
lea rdx, [rcx + rsi*8]
call sub.ntdll.dll_memmove
sub dword [rdi + 8], esi
jmp 0x180032974
Function at 0x18003302c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
mov qword [rbp + 0x1f], 0x13
mov rbx, qword [rbp + 0x1f]
lea rax, [rbp + 0x1f]
mov qword [r11 - 0x58], rax
mov rsi, rcx
mov dword [r11 - 0x60], r15d
lea rcx, [rbp + 0x37]
mov dword [r11 - 0x68], r15d
lea r8d, [r15 + 2]
mov dword [r11 - 0x70], r15d
xor r9d, r9d
mov dword [r11 - 0x78], r15d
mov dl, 1
mov dword [r11 - 0x80], r15d
mov r14d, r15d
mov dword [rsp + 0x20], r15d
mov edi, r15d
mov qword [rbp + 0x2f], rbx
mov dword [rbp + 0x27], r15d
mov qword [rbp + 0x1f], r15
mov dword [rbp + 0x37], r15d
mov word [rbp + 0x3b], 0x500
call qword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
test eax, eax
js 0x180033173
mov rdx, qword [rbp + 0x1f]
lea r8, [rbp + 0x27]
mov rcx, rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x1800330e2
cmp dword [rbp + 0x27], r15d
jne 0x180049748
xor r9d, r9d
lea rax, [rbp + 0x17]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea edx, [r9 + 3]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
cmp eax, 0xc0000023
jne 0x180033173
mov r8d, dword [rbp + 0x17]
mov edx, 8
mov rcx, qword [0x1800a9f20]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180033173
mov r9d, dword [rbp + 0x17]
lea rax, [rbp + 0x17]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x180033173
mov ecx, r15d
cmp dword [rdi], r15d
jbe 0x180033173
lea rdx, [rdi + 4]
mov rax, qword [rdx]
cmp eax, ebx
je 0x180033164
inc ecx
add rdx, 0xc
cmp ecx, dword [rdi]
jb 0x180033151
jmp 0x180033173
shr rax, 0x20
cmp eax, dword [rbp + 0x33]
jne 0x180033158
mov r14d, 1
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x180033182
call qword [sym.imp.ntdll.dll_RtlFreeSid]
test rdi, rdi
je 0x180033199
mov rcx, qword [0x1800a9f20]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, r14d
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180033470
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rbp + 0x2f], 0x18
mov rbx, qword [rbp + 0x2f]
mov qword [rbp + 0x2f], rbx
jmp 0x1800330e2
Function at 0x18004b8f0
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx + 0x80]
test r10, r10
je 0x18004b907
sub r10, qword [rcx + 8]
add r10, rcx
test edx, edx
jns 0x18004b936
cmp edx, 0xffffffde
jl 0x18004b945
movsxd rax, edx
lea r9, [0x18008dda2]
cmp byte [rax + r9], 4
ja 0x18004b945
mov r9d, r8d
mov r8d, edx
mov rdx, rcx
mov rcx, r10
add rsp, 0x28
jmp fcn.1800077a8
mov ecx, dword [r10 + 0xc]
mov eax, edx
add rax, 4
cmp rax, rcx
jbe 0x18004b954
mov ecx, 0x585
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x18004b95c
movsxd rax, edx
mov eax, dword [rax + r10 + 0x58]
add rsp, 0x28
ret
Function at 0x180067b88
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x110
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov ebp, ecx
xor edx, edx
xor ecx, ecx
xor r14d, r14d
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
mov rcx, qword [0x1800a9f20]
xor edx, edx
lea esi, [rax + 1]
mov ebx, esi
add rbx, 0xe
lea r8, [rbx + rbx]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180067d6c
mov edx, esi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
cmp rbx, 0x7fffffff
mov edx, 0x80070057
cmovbe edx, r14d
ja 0x180067c2f
mov rax, rbx
mov rcx, rdi
cmp word [rcx], r14w
je 0x180067c19
add rcx, 2
sub rax, 1
jne 0x180067c09
test rax, rax
mov edx, 0x80070057
cmovne edx, r14d
je 0x180067c2f
mov rcx, rbx
sub rcx, rax
jmp 0x180067c32
mov rcx, r14
test edx, edx
js 0x180067c89
mov r8, rbx
lea rdx, [rdi + rcx*2]
sub r8, rcx
je 0x180067c7a
mov r9, r8
lea rax, str.winhlp32.exe
sub r9, rbx
add r9, 0x7ffffffe
add r9, rcx
sub rax, rdx
test r9, r9
je 0x180067c7a
movzx ecx, word [rax + rdx]
test cx, cx
je 0x180067c7a
mov word [rdx], cx
dec r9
add rdx, 2
sub r8, 1
jne 0x180067c5c
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r14w
lea rcx, [0x18008fba4]
mov edx, 0x10
movzx eax, word [rcx + rbp*2]
lea r9, [0x18008fbf2]
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0x20], eax
lea r8, str._ws___wc
call qword [sym.imp.ntdll.dll_swprintf_s]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.ntdll.dll_memset
mov eax, 5
mov dword [rsp + 0x70], 0x68
mov word [rsp + 0xb0], ax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
mov dword [rsp + 0xac], 0x41
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x180067d56
mov rcx, qword [rsp + 0x50]
mov edx, 0x2710
call sym.USER32.dll_WaitForInputIdle
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x1800a9f20]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x180067d6f
mov eax, r14d
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180033470
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18006cc1c
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6b0
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rax, r8
mov edi, edx
mov rbx, rcx
mov r8d, 0x104
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.18002a5c8
xor r13d, r13d
mov word [rsp + 0x488], r13w
lea rax, [rsp + 0x280]
mov qword [rsp + 0x20], rax
or esi, 0xffffffff
test byte [rbx + 0x5c], 4
je 0x18006ccac
mov rcx, qword [rbx + 8]
call fcn.180004f48
test eax, eax
je 0x18006ccac
lea r12d, [rsi + 2]
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0xc]
mov rcx, qword [rcx]
call sym.USER32.dll_SendMessageW
jmp 0x18006ccaf
mov r12d, r13d
cmp edi, 0xd000
je 0x18006cd93
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18006cd93
mov edx, edi
and edx, 0xb7
mov ecx, edi
mov r15d, edx
or r15d, 0xa1
and ecx, 0x8000
cmovne r15d, edx
mov r13d, edi
not r13d
mov edx, dword [rsp + 0x30]
mov eax, 0x80
cmp edx, 0x800
cmove edx, eax
test edx, r15d
setne cl
mov eax, r13d
and eax, edx
test al, 0x16
sete al
test al, cl
je 0x18006cd6c
test dl, 0x10
je 0x18006cd39
cmp dword [rsp + 0x5c], 0x2e
je 0x18006cd6c
test dil, 0x10
je 0x18006cd6c
jmp 0x18006cd3f
bt edi, 0xc
jb 0x18006cd6c
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.18006c5c8
mov r9d, 0x10000004
xor r8d, r8d
lea rdx, [rsp + 0x490]
mov rcx, rbx
call fcn.180004f94
mov esi, eax
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
cmp esi, 0xffffffff
jl 0x18006cd87
test eax, eax
jne 0x18006ccff
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
xor r13d, r13d
cmp esi, 0xfffffffe
je 0x18006ce0b
bt edi, 0xe
jae 0x18006ce06
mov dword [rsp + 0x5c], 0x2d005b
mov dword [rsp + 0x62], 0x5d002d
mov word [rsp + 0x66], r13w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
mov edi, eax
mov r14d, r13d
test eax, eax
je 0x18006ce06
mov r15d, edi
test dil, 1
je 0x18006cdfb
lea ecx, [r14 + 0x41]
mov word [rsp + 0x60], cx
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharLowerW]
mov rdx, rax
mov r9d, 0x10000000
or r8d, 0xffffffff
mov rcx, rbx
call fcn.180004f94
mov esi, eax
test eax, eax
js 0x18006ce06
shr edi, 1
inc r14d
cmp r15d, 2
jae 0x18006cdc3
cmp esi, 0xfffffffe
jne 0x18006ce18
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.18006b830
test r12d, r12d
je 0x18006ce34
mov rcx, qword [rbx + 8]
xor r9d, r9d
lea edx, [r9 + 0xb]
lea r8d, [r9 + 1]
mov rcx, qword [rcx]
call sym.USER32.dll_SendMessageW
mov rcx, rbx
call int.1800046b8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180004bd4
cmp esi, 0xfffffffe
je 0x18006ce55
mov eax, dword [rbx + 0x20]
dec eax
jmp 0x18006ce5f
mov eax, 0xfffffffe
jmp 0x18006ce5f
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.180033470
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800705c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
and qword [rsp + 0x30], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetServicesEventLogApplicationError_Instrument_
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 0x30
mov edx, 0x20019
mov dword [rsp + 0x78], 0x40
lea rcx, [rsp + 0x30]
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x1800706a7
lea rdx, str.EventMessageFile
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x70]
mov r8d, 2
mov dword [rsp + 0x20], 0x210
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x18007069c
lea rdx, str._SystemRoot_System32user32.dll
lea rcx, [rbp - 0x64]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180033470
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rbp
ret
Function at 0x1800743a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rbp + 0x70], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov ebx, 1
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTReliability
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x180074518
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.ShutdownReasonUI
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1800744ad
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800744a5
cmp eax, ebx
je 0x1800744a1
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
test eax, eax
je 0x18007446d
cmp byte [rbp + 0x6a], bl
je 0x18007445d
cmp dword [rsp + 0x30], 3
jmp 0x180074462
cmp dword [rsp + 0x30], 2
je 0x18007450f
and dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180074482
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180033470
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rbp
ret
mov eax, ebx
jmp 0x1800744a7
xor eax, eax
mov dword [rsp + 0x30], eax
jmp 0x18007446d
cmp eax, 2
jne 0x18007446d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.ShutdownReasonOn
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x18007446d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
test eax, eax
je 0x18007446d
cmp byte [rbp + 0x6a], bl
je 0x180074468
mov dword [rsp + 0x30], ebx
jmp 0x18007446d
cmp eax, 2
jne 0x180074478
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
test eax, eax
je 0x180074478
cmp byte [rbp + 0x6a], bl
jne 0x180074482
xor eax, eax
jmp 0x18007447c
Function at 0x18007adf0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov r9d, 1
mov rdi, r8
mov ebx, edx
call qword [sym.imp.win32u.dll_NtUserMapVirtualKeyEx]
mov r9d, 2
mov eax, eax
mov qword [rsp + 0x40], rax
cmp ebx, r9d
jne 0x18007aeb8
test rax, rax
je 0x18007aeb8
cmp rdi, qword [0x1800aaa48]
mov word [rsp + 0x68], ax
je 0x18007ae67
movzx ecx, di
lea r8, [rsp + 0x78]
mov edx, 0x20001004
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x18007aeaf
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x40]
mov dword [0x1800aaa38], ecx
mov qword [0x1800aaa48], rdi
jmp 0x18007ae6d
mov ecx, dword [0x1800aaa38]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x68]
and qword [rsp + 0x30], 0
mov edx, 0xffff0000
and rax, rdx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x40], rax
mov r9d, 1
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
test eax, eax
jne 0x18007aeb3
xor eax, eax
jmp 0x18007aeb8
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x18007b320
Capabilities:
Get geographical location

Disassembly:
mov byte [rsp + 8], cl
push rbx
sub rsp, 0x30
mov rbx, rdx
mov dl, cl
cmp rbx, qword [0x1800aaa30]
je 0x18007b36b
movzx ecx, bx
lea r8, [rsp + 0x50]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x18007b3c0
mov ecx, dword [rsp + 0x50]
mov dl, byte [rsp + 0x40]
mov dword [0x1800aaa40], ecx
mov qword [0x1800aaa30], rbx
jmp 0x18007b371
mov ecx, dword [0x1800aaa40]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsDBCSLeadByteEx]
test eax, eax
jne 0x18007b3c0
mov ecx, dword [0x1800aaa40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x18007b3c0
movzx ecx, word [rsp + 0x48]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.win32u.dll_NtUserVkKeyScanEx]
jmp 0x18007b3c3
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x18007b504
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, r9
mov rdi, rdx
test rdx, rdx
je 0x18007b5b7
test r9, r9
je 0x18007b5b7
cmp word [r9], r15w
je 0x18007b5b7
mov esi, 0x105
test ecx, ecx
mov edx, esi
mov rcx, rdi
jne 0x18007b553
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
jmp 0x18007b559
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
mov ebx, eax
cmp eax, esi
jae 0x18007b5ac
test eax, eax
je 0x18007b5b3
lea eax, [rax - 1]
mov edx, 0x5c
cmp word [rdi + rax*2], dx
je 0x18007b579
mov eax, ebx
inc ebx
mov word [rdi + rax*2], dx
cmp ebx, esi
jae 0x18007b5ac
or r9, 0xffffffffffffffff
mov r14, r9
inc r14
cmp word [rbp + r14*2], r15w
jne 0x18007b584
sub esi, ebx
cmp esi, r14d
jbe 0x18007b5ac
mov eax, ebx
mov r8, rbp
mov edx, esi
lea rcx, [rdi + rax*2]
call qword [sym.imp.ntdll.dll_wcsncpy_s]
add ebx, r14d
jmp 0x18007b5b3
mov ebx, r15d
mov word [rdi], r15w
mov eax, ebx
jmp 0x18007b5b9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18007b9a8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rbp + 0x600], rax
or rbx, 0xffffffffffffffff
mov rdi, rcx
xor r14d, r14d
inc rbx
cmp word [rcx + rbx*2], r14w
jne 0x18007b9e0
cmp ebx, 4
jbe 0x18007ba20
mov eax, ebx
lea rdx, str..HLP
add rax, 0xfffffffffffffffc
lea rcx, [rcx + rax*2]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
jne 0x18007ba20
xor r9d, r9d
lea r8d, [rax + 0xb]
mov rdx, rdi
xor ecx, ecx
call sym.USER32.dll_WinHelpW
jmp 0x18007bb14
lea r9, str.hh.exe
mov ecx, 1
lea rdx, [rbp - 0x20]
call fcn.18007b504
mov esi, eax
test eax, eax
je 0x18007bb14
lea ecx, [rsi + rbx]
mov ebx, 0x208
cmp ecx, ebx
jae 0x18007bb14
mov r9d, ebx
lea r8, [rbp - 0x20]
mov edx, ebx
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.ntdll.dll_wcsncpy_s]
lea rcx, [rbp + 0x1f0]
sub rbx, rsi
lea rcx, [rcx + rsi*2]
or r9, 0xffffffffffffffff
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.ntdll.dll_wcsncpy_s]
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.ntdll.dll_memset
lea eax, [rbx - 0x63]
mov dword [rsp + 0x70], ebx
mov word [rbp - 0x50], ax
lea rdx, [rbp + 0x1f0]
lea rax, [rsp + 0x50]
mov dword [rbp - 0x54], 0x41
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x18007bb14
mov rcx, qword [rsp + 0x50]
mov edx, 0x2710
call sym.USER32.dll_WaitForInputIdle
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.180033470
lea r11, [rsp + 0x710]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x18007d004
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r9d, 8
lea r8, [rsp + 0x20]
mov ebx, edx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x18007d043
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0xa]
call qword [sym.imp.ntdll.dll_wcstol]
jmp 0x18007d05c
cmp ebx, 0xb
je 0x18007d057
sub ebx, 0x1004
neg ebx
sbb eax, eax
and eax, 2
jmp 0x18007d05c
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180033470
add rsp, 0x40
pop rbx
ret