joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140091e64
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor eax, eax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, str.systemroot
mov r8d, 0x104
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140091ee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140091ece
mov esi, 0x80004005
jmp 0x140091fdd
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140091fdd
lea rdx, [rsp + 0x50]
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140091f27
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140091ec4
movzx esi, ax
lea rdx, [0x140434c4c]
or esi, 0x80070000
lea rcx, [0x140416a38]
test eax, eax
cmovle esi, eax
call fcn.1400edb90
jmp 0x140091fdd
lea rcx, [rsp + 0x20]
call fcn.140092238
mov esi, eax
test eax, eax
jns 0x140091f3e
mov ecx, eax
jmp 0x140091fdf
lea rax, str.SPPSvc
xor esi, esi
and qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x28]
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x28], rax
lea rax, [0x140092410]
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140091fbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140430ed0]
mov ebx, eax
lea rcx, [0x14041b4e0]
call fcn.1400ed4d4
test ebx, ebx
jne 0x140091f97
mov esi, 0x80004005
jmp 0x140091fb8
lea rdx, [0x140435208]
lea rcx, [0x14040eb74]
call fcn.1400ed82c
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
mov ecx, esi
call fcn.14007ab24
mov ecx, esi
call fcn.14007ab44
test esi, esi
jns 0x140091fe4
lea rdx, [0x1404367b8]
lea rcx, [0x140418448]
call fcn.1400ebd6c
mov ecx, esi
call fcn.14007ab24
mov ecx, esi
call fcn.14007ab44
cmp dword [rsp + 0x20], 0
je 0x140092025
cmp qword [0x1404387b8], 0
je 0x140092025
mov rbx, qword [0x140438a50]
test rbx, rbx
je 0x140092025
mov rdi, qword [0x1404387c0]
mov rcx, rdi
call qword [0x1403b8660]
mov rcx, rbx
call rdi
and qword [0x140438a50], 0
cmp dword [rsp + 0x24], 0
je 0x140092045
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
lea rdx, [0x140434098]
lea rcx, [0x14040d8fc]
call fcn.1400ed188
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14036e5e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140092078
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [str._AB_]
lea rdx, [0x14043178c]
lea rcx, [0x14041bbd0]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400ec420
xorps xmm0, xmm0
lea r9, [0x14042e8b0]
lea r8, [0x14042e890]
lea rdx, [0x140001010]
lea rcx, [rsp + 0x20]
movdqu xmmword [0x14042e8b8], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
xor edi, edi
test eax, eax
jne 0x140092119
lea rdx, [0x140437014]
lea rcx, [0x140419858]
call fcn.1400ece2c
mov r8, qword [str._AB_]
lea edx, [rdi + 2]
mov rcx, qword [0x14042e8b0]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
call fcn.140091e64
lea rdx, [0x140430508]
mov esi, eax
lea rcx, [0x140412838]
call fcn.1400ec0c8
mov rcx, qword [0x14042e8b0]
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rdx, [0x1404326c8]
mov qword [0x14042e8b0], rdi
lea rcx, [0x14041ca74]
mov dword [0x14042e890], edi
call fcn.1400ec780
test esi, esi
jns 0x14009216d
mov ecx, esi
call fcn.14007ab24
jmp 0x14009219e
mov eax, dword [0x140437818]
mov ebx, edi
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdx, [0x14043284c]
lea rcx, [0x140414838]
call fcn.1400ecad0
mov ecx, esi
call fcn.14007ab44
test esi, esi
sets dil
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400a3468
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
xor edi, edi
lea rax, [r11 - 0x30]
mov r14, r9
mov qword [r11 - 0x28], rdi
mov rbp, r8
mov qword [r11 - 0x30], rdi
xor r8d, r8d
mov qword [r11 - 0x48], rax
lea r9d, [rdi + 1]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a34de
mov ebx, edi
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rsp + 0x38]
call fcn.14006aedc
test ebx, ebx
jns 0x1400a34fc
mov ecx, ebx
call fcn.14007ab24
jmp 0x1400a354b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x1400a34b1
mov ecx, ebx
call fcn.14007ab24
mov rsi, rdi
jmp 0x1400a34c0
lea rax, [rsp + 0x70]
test rsi, rsi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x20], rdi
cmovne rcx, rsi
mov rdx, rbp
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400a3543
cmp eax, 2
je 0x1400a3548
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x1400a3548
jmp 0x1400a34d5
mov edi, 1
mov dword [r14], edi
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rsp + 0x40]
call fcn.14006aedc
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a357c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
or rbx, 0xffffffffffffffff
xor edi, edi
mov qword [rbp - 8], rbx
mov r15, r8
mov qword [rbp - 0x10], rdi
mov r12, rdx
test rcx, rcx
jne 0x1400a35bf
mov ecx, 0x80070057
mov edi, ecx
call fcn.14007ab24
jmp 0x1400a36ae
test r12, r12
je 0x1400a35ae
test r15, r15
je 0x1400a35ae
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400a3625
mov qword [rbp - 8], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400a3613
mov edi, 0x80004005
jmp 0x1400a3621
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x1400a35b5
lea rdx, [rbp + 0x30]
mov qword [rbp - 8], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400a3602
cmp dword [rbp + 0x30], edi
jne 0x1400a35ae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400a3670
mov qword [rbp - 0x10], rdi
mov ecx, 0x8007000e
jmp 0x1400a35b3
lea r9, [rbp + 0x48]
mov qword [rbp - 0x10], rbx
mov r8d, esi
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a3602
cmp dword [rbp + 0x48], esi
je 0x1400a36a3
mov ecx, 0x8000ffff
jmp 0x1400a35b3
mov dword [r12], esi
mov qword [rbp - 0x10], rdi
mov qword [r15], rbx
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp - 0x10]
call fcn.14009cebc
lea rcx, [rbp - 8]
call fcn.1400773f8
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400ac0b4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
and dword [rbp - 0x40], 0
lea rax, [0x14000f4f8]
and dword [rbp - 0x3c], 0
lea rdx, [rbp - 0x30]
and qword [rbp - 0x38], 0
mov rsi, r9
and qword [rbp - 0x18], 0
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
lea rax, [rbp + 0x28]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x40]
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x28]
test ebx, ebx
jns 0x1400ac124
mov ecx, ebx
jmp 0x1400ac1a1
xor edi, edi
cmp dword [rbp - 0x3c], edi
jle 0x1400ac18d
movsxd rbx, edi
shl rbx, 7
add rbx, qword [rbp - 0x38]
mov rcx, rbx
lea rdx, [rbx + 0x68]
call fcn.1400b71f4
lea rax, [0x14000f838]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea rax, [rbx + 0x60]
mov ecx, 0xb9
mov qword [rbp - 0x10], rax
lea rax, [rbx + 0x58]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x30]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rbp - 0x3c]
jl 0x1400ac12b
lea r8, [rbp - 0x40]
mov rdx, rsi
call fcn.1400b4bc0
mov ebx, eax
test eax, eax
jns 0x1400ac1a6
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400c60ac
lea rcx, [rbp - 0x38]
call fcn.1400b8eec
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400afc44
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov r14, r8
mov qword [rbp - 0x18], r15
mov ebx, r15d
mov qword [rbp - 0x10], rbx
mov rsi, rdx
mov qword [rbp - 0x20], r15
mov rdi, rcx
cmp rcx, 0xffffffff80000001
jne 0x1400afc8b
mov qword [rbp - 0x18], r15
xor ecx, ecx
call fcn.14007ab44
lea rax, [rbp + 0x30]
mov qword [rbp + 0x30], r15
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400afd17
mov edi, r15d
mov rbx, qword [rbp + 0x30]
mov qword [rbp - 0x10], rbx
mov rsi, rbx
mov qword [rbp + 0x30], r15
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp + 0x30]
call fcn.14006aedc
test edi, edi
js 0x1400afd47
mov qword [rbp - 0x20], r15
xor ecx, ecx
call fcn.14007ab44
mov eax, dword [rbp + 0x50]
test rbx, rbx
mov dword [rsp + 0x28], eax
mov r9d, 4
cmove rsi, r15
lea rax, [rbp + 0x48]
mov rcx, rsi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400afd35
mov edi, r15d
jmp 0x1400afd4e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400afcb4
mov ecx, edi
call fcn.14007ab24
mov rsi, r15
jmp 0x1400afcc3
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400afd4e
mov ecx, edi
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp - 0x20]
call fcn.140070b48
lea rcx, [rbp - 0x18]
call fcn.14006aedc
lea rcx, [rbp - 0x10]
call fcn.14006aedc
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b62b8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp - 8], rax
xor r15d, r15d
mov dword [rbp - 0x38], 0x73006d
mov ebx, r15d
mov dword [rbp - 0x34], 0x740066
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rbx
mov r8, rcx
mov dword [rbp - 0x30], 0x73003a
mov rsi, rdx
mov dword [rbp - 0x2c], 0x700070
mov r9, rcx
mov dword [rbp - 0x28], 0x63002f
mov dword [rbp - 0x24], 0x630061
sub r8, rax
mov dword [rbp - 0x20], 0x650068
mov dword [rbp - 0x1c], 0x740073
mov dword [rbp - 0x18], 0x72006f
mov dword [rbp - 0x14], 0x2f0065
mov dword [rbp - 0x10], 0x730025
mov word [rbp - 0xc], r15w
mov dword [rbp - 0x50], 0x6d0048
mov dword [rbp - 0x4c], 0x630061
mov dword [rbp - 0x48], 0x65004b
mov dword [rbp - 0x44], 0x79
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400b6375
add rax, 2
test edx, edx
jne 0x1400b6361
test ecx, ecx
jne 0x1400b6387
mov edi, 0x80070057
mov ecx, edi
call fcn.14007ab24
jmp 0x1400b63b1
mov r8, r9
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.140079c18
mov edi, eax
test eax, eax
jns 0x1400b63aa
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp - 0x40]
jmp 0x1400b63b1
mov rax, qword [rbp - 0x40]
mov qword [rsi], rax
mov ecx, edi
call fcn.14007ab44
test rbx, rbx
je 0x1400b63d9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c0b50
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x50], 0
mov rdi, r8
and qword [rbp - 0x58], 0
lea r8, [rbp - 0x50]
mov r12d, edx
mov r15, r9
lea rdx, [rbp - 0x60]
call fcn.1400c5c84
mov ebx, eax
test eax, eax
jns 0x1400c0ba4
mov ecx, eax
call fcn.14007ab24
jmp 0x1400c0c3b
mov ebx, 0x20
mov edx, ebx
lea ecx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400c0bc9
and qword [rbp - 0x58], rax
mov ebx, 0x8007000e
mov ecx, ebx
jmp 0x1400c0b9a
mov r14, qword [rbp - 0x50]
lea rax, [0x1400135f8]
xor r9d, r9d
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x2c], rdi
lea rax, [rbp - 0x5c]
mov edi, dword [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x58], rsi
lea r8d, [r9 + 0x3c]
mov qword [rbp - 0x20], r14
lea ecx, [r8 + 0x7d]
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x24], edi
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x14], rsi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x5c]
test ebx, ebx
js 0x1400c0bc5
xor eax, eax
mov dword [r15], 0x20
and qword [rbp - 0x58], rax
mov ecx, edi
mov rdi, r14
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x40]
mov qword [rax], rsi
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rbp - 0x58]
call fcn.14005ba10
lea rcx, [rbp - 0x50]
call fcn.14005ba10
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400c1800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
or qword [rsp + 0x68], 0xffffffffffffffff
xor ebx, ebx
mov rsi, r8
mov edi, edx
test rcx, rcx
jne 0x1400c182b
mov ecx, 0x80070057
jmp 0x1400c18b2
mov qword [rsp + 0x30], rbx
mov r8d, 2
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400c1888
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c1876
mov ebx, 0x80004005
jmp 0x1400c1884
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400c18b4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x68], rcx
mov r8d, edi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c1865
cmp dword [rsp + 0x50], edi
je 0x1400c18b9
mov ecx, 0x8000ffff
mov ebx, ecx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rsp + 0x68]
call fcn.1400773f8
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c7944
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
xor ebx, ebx
and dword [rbp - 0x24], esi
mov r15, r8
and dword [rbp - 0x28], esi
mov r14, rdx
and qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x40], rbx
test ecx, ecx
je 0x1400c79c0
cmp ecx, 1
je 0x1400c7983
mov edi, 0x80070057
jmp 0x1400c79fb
lea rax, [0x140014cb8]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x30]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x30]
jmp 0x1400c79fb
lea rax, [0x140014ff8]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x48]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x48]
test edi, edi
jns 0x1400c7a06
mov ecx, edi
jmp 0x1400c7abf
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.140053350
mov edi, eax
test eax, eax
jns 0x1400c7a28
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp - 0x40]
jmp 0x1400c7ac4
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14006a6dc
mov edi, eax
test eax, eax
jns 0x1400c7a48
mov ecx, eax
call fcn.14007ab24
mov rsi, qword [rbp - 0x30]
jmp 0x1400c7a1f
mov rbx, qword [rbp - 0x40]
mov r14d, 0x7fffffff
test rbx, rbx
jne 0x1400c7a5b
xor edi, edi
jmp 0x1400c7a8d
mov r8d, r14d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.14007a728
mov edi, eax
test eax, eax
js 0x1400c7a86
mov r8d, dword [rbp - 0x40]
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.1400702a8
mov edi, eax
test eax, eax
jns 0x1400c7a8d
mov ecx, eax
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
test edi, edi
jns 0x1400c7aa5
mov ecx, edi
call fcn.14007ab24
mov rsi, qword [rbp - 0x30]
jmp 0x1400c7ac4
mov rsi, qword [rbp - 0x30]
mov r8d, r14d
mov rcx, rsi
mov rdx, r15
call fcn.14006a2b4
mov edi, eax
test eax, eax
jns 0x1400c7ac4
mov ecx, eax
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
test rbx, rbx
je 0x1400c7ad9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400c7aed
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x38], 0
test rsi, rsi
je 0x1400c7b06
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c9294
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
lea rax, [rbp - 0x18]
and qword [rbp - 8], rdi
mov r14, r9
mov r15, r8
mov qword [rbp - 0x10], rdi
xor ebx, ebx
mov qword [r11 - 0x48], rax
and qword [rbp - 0x18], rbx
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c9317
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.14007ab44
lea rcx, [rbp - 0x18]
call fcn.14006aedc
test esi, esi
jns 0x1400c9332
mov ecx, esi
call fcn.14007ab24
jmp 0x1400c93e1
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x1400c92eb
mov ecx, esi
call fcn.14007ab24
jmp 0x1400c92f7
and dword [rbp + 0x20], ebx
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400c936c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400c930b
test rbx, rbx
jne 0x1400c93aa
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1400c93a0
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400c9335
mov esi, 0x8007000e
jmp 0x1400c930b
mov esi, 0x8000ffff
jmp 0x1400c930b
cmp dword [rbp - 0x20], 1
je 0x1400c93ba
mov esi, 0x8007000d
jmp 0x1400c930b
mov edx, dword [rbp + 0x20]
lea r9, [rbp - 0x1c]
mov r8, r14
mov rcx, rbx
call fcn.140079318
mov esi, eax
test eax, eax
jns 0x1400c93d9
mov ecx, eax
jmp 0x1400c930d
cmp dword [rbp - 0x1c], 0
je 0x1400c93e1
xor ebx, ebx
mov ecx, esi
call fcn.14007ab44
test rbx, rbx
je 0x1400c9401
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 8]
call fcn.14006aedc
lea rcx, [rbp - 0x10]
call fcn.14006aedc
lea r11, [rsp + 0x50]
mov eax, esi
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
Function at 0x1400c9438
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov eax, dword [0x1403be440]
xor r14d, r14d
mov r12, rdx
mov qword [rsp + 0x40], r14
mov r13, rcx
mov qword [rsp + 0x38], r14
mov r15d, 0x104
mov dword [rsp + 0x48], 1
mov ebx, r14d
mov dword [rsp + 0x4c], eax
mov edx, r15d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
mov esi, r14d
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400c94e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c94c5
mov r14d, 0x80004005
jmp 0x1400c94d6
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
call fcn.14007ab24
jmp 0x1400c95e0
mov rcx, r15
lea rax, [rsp + 0x50]
cmp word [rax], r14w
je 0x1400c94fb
add rax, 2
sub rcx, 1
jne 0x1400c94eb
mov rax, rcx
neg rax
sbb r14d, r14d
not r14d
and r14d, 0x80070057
test rcx, rcx
je 0x1400c9518
sub r15, rcx
jmp 0x1400c951b
xor r15d, r15d
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, r15
xor r15d, r15d
test rcx, rcx
je 0x1400c94d6
lea ebx, [r15 + 0x5c]
cmp bx, word [rsp + rdx*2 + 0x4e]
je 0x1400c9544
lea eax, [rbx - 0x2d]
cmp ax, word [rsp + rdx*2 + 0x4e]
jne 0x1400c9547
dec rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14007a630
mov r14d, eax
test eax, eax
jns 0x1400c956b
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rsp + 0x30]
jmp 0x1400c95e0
cmp bx, word [r13]
lea rcx, [r13 + 2]
lea rdx, [rsp + 0x38]
cmovne rcx, r13
call fcn.14007a9ec
mov r14d, eax
test eax, eax
jns 0x1400c959c
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x1400c95e0
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x4c]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov edx, 3
call fcn.1400ca6f0
mov r14d, eax
test eax, eax
jns 0x1400c95d7
mov ecx, eax
call fcn.14007ab24
mov rsi, qword [rsp + 0x40]
jmp 0x1400c95e0
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov ecx, r14d
call fcn.14007ab44
test rdi, rdi
je 0x1400c9609
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
test rbx, rbx
je 0x1400c962a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
test rsi, rsi
je 0x1400c964b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
mov eax, r14d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret