joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008e918
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 0x14008e99b
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140078324
lea rcx, [rbp - 0x18]
call fcn.140068d58
test esi, esi
jns 0x14008e9b6
mov ecx, esi
call fcn.140078308
jmp 0x14008ea5a
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x14008e96f
mov ecx, esi
call fcn.140078308
jmp 0x14008e97b
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 0x14008e9f0
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x14008e98f
test rbx, rbx
jne 0x14008ea2e
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x14008ea24
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 0x14008e9b9
mov esi, 0x8007000e
jmp 0x14008e98f
mov esi, 0x8000ffff
jmp 0x14008e98f
cmp dword [rbp - 0x20], 3
je 0x14008ea3e
mov esi, 0x8007000d
jmp 0x14008e98f
mov qword [r14], rbx
xor ecx, ecx
call fcn.140078324
mov rcx, qword [rbp + 0x40]
xor esi, esi
xor ebx, ebx
test rcx, rcx
je 0x14008ea5a
mov eax, dword [rbp + 0x20]
mov dword [rcx], eax
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x14008ea7a
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.140068d58
lea rcx, [rbp - 0x10]
call fcn.140068d58
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 0x14008ec94
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 [0x140418d28]
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 0x14008ed11
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14008ecfe
mov esi, 0x80004005
jmp 0x14008ee0d
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14008ee0d
lea rdx, [rsp + 0x50]
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x14008ed57
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14008ecf4
movzx esi, ax
lea rdx, [0x14041ed6c]
or esi, 0x80070000
lea rcx, [0x1404003d8]
test eax, eax
cmovle esi, eax
call fcn.1400e70c4
jmp 0x14008ee0d
lea rcx, [rsp + 0x20]
call fcn.14008f064
mov esi, eax
test eax, eax
jns 0x14008ed6e
mov ecx, eax
jmp 0x14008ee0f
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, [0x14008f240]
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14008edef
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14041b080]
mov ebx, eax
lea rcx, [0x140404e50]
call fcn.1400e6704
test ebx, ebx
jne 0x14008edc7
mov esi, 0x80004005
jmp 0x14008ede8
lea rdx, [0x14041f330]
lea rcx, [0x1403f86b4]
call fcn.1400e6a48
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
mov ecx, esi
call fcn.140078308
mov ecx, esi
call fcn.140078324
test esi, esi
jns 0x14008ee14
lea rdx, [0x1404208a8]
lea rcx, [0x140401de8]
call fcn.1400e6d84
mov ecx, esi
call fcn.140078308
mov ecx, esi
call fcn.140078324
cmp dword [rsp + 0x20], 0
je 0x14008ee55
cmp qword [0x140422ab0], 0
je 0x14008ee55
mov rbx, qword [0x140422d40]
test rbx, rbx
je 0x14008ee55
mov rdi, qword [0x140422ab8]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
and qword [0x140422d40], 0
cmp dword [rsp + 0x24], 0
je 0x14008ee75
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
lea rdx, [0x14041e1c0]
lea rcx, [0x1403f743c]
call fcn.1400e63b8
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14035a4e0
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 0x14008eea0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x140418008]
lea r9, [0x140418020]
xor edi, edi
lea r8, [section..data]
lea rdx, section..text
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rax - 0x10]
mov qword [0x140418028], rdi
mov qword [0x140418030], rdi
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x14008ef31
lea rdx, [0x14041c9b4]
lea rcx, [0x1403fe258]
call fcn.1400e6078
mov r8, qword [0x140418008]
lea edx, [rdi + 2]
mov rcx, qword [0x140418020]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
call fcn.14008ec94
lea rdx, [0x14041a6d8]
mov esi, eax
lea rcx, [0x1403fc2e8]
call fcn.1400e7410
lea rdx, [0x14041c840]
lea rcx, [0x1404063b4]
call fcn.1400e7a9c
mov rcx, qword [0x140418020]
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rdx, [0x14041b91c]
mov qword [0x140418020], rdi
lea rcx, [0x140405540]
call fcn.1400e775c
mov dword [section..data], edi
test esi, esi
jns 0x14008ef98
mov ecx, esi
call fcn.140078308
jmp 0x14008efb6
mov eax, dword [0x140421920]
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]
mov ecx, esi
call fcn.140078324
test esi, esi
lea rdx, [0x1404210e4]
lea rcx, [0x1404031d8]
sets dil
call fcn.1400e7de0
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14009f434
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
xor esi, esi
mov r14, r9
mov qword [rax - 0x30], rsi
lea rax, [rax - 0x30]
mov rbp, r8
mov qword [rsp + 0x20], rax
mov ebx, esi
xor r8d, r8d
mov qword [rax + 8], rbx
lea r9d, [rsi + 1]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009f4ad
mov edi, esi
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rsi
mov ecx, edi
call fcn.140078324
lea rcx, [rsp + 0x38]
call fcn.140068d58
test edi, edi
jns 0x14009f4c8
mov ecx, edi
call fcn.140078308
jmp 0x14009f510
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14009f480
mov ecx, edi
call fcn.140078308
jmp 0x14009f48f
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14009f508
cmp eax, 2
je 0x14009f50d
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14009f50d
jmp 0x14009f4a4
mov esi, 1
mov dword [r14], esi
mov ecx, edi
call fcn.140078324
lea rcx, [rsp + 0x40]
call fcn.140068d58
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a7e18
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, [0x140028160]
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 0x1400a7e88
mov ecx, ebx
jmp 0x1400a7f05
xor edi, edi
cmp dword [rbp - 0x3c], edi
jle 0x1400a7ef1
movsxd rbx, edi
shl rbx, 7
add rbx, qword [rbp - 0x38]
mov rcx, rbx
lea rdx, [rbx + 0x68]
call fcn.1400b2c90
lea rax, [0x1400284a0]
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 0x1400a7e8f
lea r8, [rbp - 0x40]
mov rdx, rsi
call fcn.1400b0830
mov ebx, eax
test eax, eax
jns 0x1400a7f0a
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400c148c
lea rcx, [rbp - 0x38]
call fcn.1400b48fc
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400aba2c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov r14, r8
and qword [rbp - 0x18], rbx
mov rsi, rdx
and qword [rbp - 0x20], rbx
mov rdi, rcx
mov qword [rbp - 0x10], rbx
cmp rcx, 0xffffffff80000001
jne 0x1400aba71
and qword [rbp - 0x18], rbx
xor ecx, ecx
call fcn.140078324
and qword [rbp + 0x20], rbx
lea rax, [rbp + 0x20]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x80070000
test eax, eax
jne 0x1400abaf8
xor edi, edi
mov rbx, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov qword [rbp - 0x10], rbx
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0x20]
call fcn.140068d58
test edi, edi
js 0x1400abb1d
and qword [rbp - 0x20], 0
xor ecx, ecx
call fcn.140078324
mov eax, dword [rbp + 0x40]
mov r9d, 4
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x38]
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400abb0f
xor edi, edi
jmp 0x1400abb24
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400aba9e
mov ecx, edi
call fcn.140078308
jmp 0x1400abaab
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400abb24
mov ecx, edi
call fcn.140078308
mov ecx, edi
call fcn.140078324
lea rcx, [rbp - 0x20]
call fcn.14006e948
lea rcx, [rbp - 0x18]
call fcn.140068d58
lea rcx, [rbp - 0x10]
call fcn.140068d58
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b1d80
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 [0x140418d28]
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 0x1400b1e3d
add rax, 2
test edx, edx
jne 0x1400b1e29
test ecx, ecx
jne 0x1400b1e4f
mov edi, 0x80070057
mov ecx, edi
call fcn.140078308
jmp 0x1400b1e79
mov r8, r9
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.140077544
mov edi, eax
test eax, eax
jns 0x1400b1e72
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp - 0x40]
jmp 0x1400b1e79
mov rax, qword [rbp - 0x40]
mov qword [rsi], rax
mov ecx, edi
call fcn.140078324
test rbx, rbx
je 0x1400b1ea1
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.140078324
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bbfbc
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 - 0x60], 0
lea r8, [rbp - 0x50]
mov r12d, edx
mov r15, r9
lea rdx, [rbp - 0x58]
call fcn.1400c0e18
mov ebx, eax
test eax, eax
jns 0x1400bc010
mov ecx, eax
call fcn.140078308
jmp 0x1400bc0a7
mov ebx, 0x20
mov edx, ebx
lea ecx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400bc035
and qword [rbp - 0x60], rax
mov ebx, 0x8007000e
mov ecx, ebx
jmp 0x1400bc006
mov r14, qword [rbp - 0x50]
lea rax, [0x14002bf20]
xor r9d, r9d
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x28], rdi
lea rax, [rbp - 0x54]
mov edi, dword [rbp - 0x58]
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x60], rsi
lea r8d, [r9 + 0x48]
mov qword [rbp - 0x18], r14
lea ecx, [r8 + 0x71]
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x20], edi
mov dword [rbp - 0x10], ebx
mov qword [rbp - 8], rsi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x54]
test ebx, ebx
js 0x1400bc031
xor eax, eax
mov dword [r15], 0x20
and qword [rbp - 0x60], 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.140078324
lea rcx, [rbp - 0x60]
call fcn.14005a080
lea rcx, [rbp - 0x50]
call fcn.14005a080
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 0x1400bcb8c
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 0x1400bcbb7
mov ecx, 0x80070057
jmp 0x1400bcc3e
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 0x1400bcc14
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400bcc02
mov ebx, 0x80004005
jmp 0x1400bcc10
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400bcc40
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 0x1400bcbf1
cmp dword [rsp + 0x50], edi
je 0x1400bcc45
mov ecx, 0x8000ffff
mov ebx, ecx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
lea rcx, [rsp + 0x68]
call fcn.140074d74
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c19b0
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 0x1400c19f3
mov ecx, 0x80070057
mov edi, ecx
call fcn.140078308
jmp 0x1400c1ae2
test r12, r12
je 0x1400c19e2
test r15, r15
je 0x1400c19e2
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 0x1400c1a59
mov qword [rbp - 8], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c1a47
mov edi, 0x80004005
jmp 0x1400c1a55
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x1400c19e9
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 0x1400c1a36
cmp dword [rbp + 0x30], edi
jne 0x1400c19e2
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 0x1400c1aa4
mov qword [rbp - 0x10], rdi
mov ecx, 0x8007000e
jmp 0x1400c19e7
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 0x1400c1a36
cmp dword [rbp + 0x48], esi
je 0x1400c1ad7
mov ecx, 0x8000ffff
jmp 0x1400c19e7
mov dword [r12], esi
mov qword [rbp - 0x10], rdi
mov qword [r15], rbx
mov ecx, edi
call fcn.140078324
lea rcx, [rbp - 0x10]
call fcn.1400abeec
lea rcx, [rbp - 8]
call fcn.140074d74
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 0x1400c2b68
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 0x1400c2be4
cmp ecx, 1
je 0x1400c2ba7
mov edi, 0x80070057
jmp 0x1400c2c1f
lea rax, [0x14002d2a0]
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 0x1400c2c1f
lea rax, [0x14002d5e0]
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 0x1400c2c2a
mov ecx, edi
jmp 0x1400c2ce3
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.140051ce4
mov edi, eax
test eax, eax
jns 0x1400c2c4c
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp - 0x40]
jmp 0x1400c2ce8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.1400685b0
mov edi, eax
test eax, eax
jns 0x1400c2c6c
mov ecx, eax
call fcn.140078308
mov rsi, qword [rbp - 0x30]
jmp 0x1400c2c43
mov rbx, qword [rbp - 0x40]
mov r14d, 0x7fffffff
test rbx, rbx
jne 0x1400c2c7f
xor edi, edi
jmp 0x1400c2cb1
mov r8d, r14d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140077f90
mov edi, eax
test eax, eax
js 0x1400c2caa
mov r8d, dword [rbp - 0x40]
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.14006e130
mov edi, eax
test eax, eax
jns 0x1400c2cb1
mov ecx, eax
call fcn.140078308
mov ecx, edi
call fcn.140078324
test edi, edi
jns 0x1400c2cc9
mov ecx, edi
call fcn.140078308
mov rsi, qword [rbp - 0x30]
jmp 0x1400c2ce8
mov rsi, qword [rbp - 0x30]
mov r8d, r14d
mov rcx, rsi
mov rdx, r15
call fcn.1400681a0
mov edi, eax
test eax, eax
jns 0x1400c2ce8
mov ecx, eax
call fcn.140078308
mov ecx, edi
call fcn.140078324
test rbx, rbx
je 0x1400c2cfd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400c2d11
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x38], 0
test rsi, rsi
je 0x1400c2d2a
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 0x1400c4274
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 0x1400c42f7
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140078324
lea rcx, [rbp - 0x18]
call fcn.140068d58
test esi, esi
jns 0x1400c4312
mov ecx, esi
call fcn.140078308
jmp 0x1400c43c1
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x1400c42cb
mov ecx, esi
call fcn.140078308
jmp 0x1400c42d7
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 0x1400c434c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400c42eb
test rbx, rbx
jne 0x1400c438a
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1400c4380
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 0x1400c4315
mov esi, 0x8007000e
jmp 0x1400c42eb
mov esi, 0x8000ffff
jmp 0x1400c42eb
cmp dword [rbp - 0x20], 1
je 0x1400c439a
mov esi, 0x8007000d
jmp 0x1400c42eb
mov edx, dword [rbp + 0x20]
lea r9, [rbp - 0x1c]
mov r8, r14
mov rcx, rbx
call fcn.140076cac
mov esi, eax
test eax, eax
jns 0x1400c43b9
mov ecx, eax
jmp 0x1400c42ed
cmp dword [rbp - 0x1c], 0
je 0x1400c43c1
xor ebx, ebx
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x1400c43e1
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.140068d58
lea rcx, [rbp - 0x10]
call fcn.140068d58
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