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

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [rsp + 0x88]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExA]
nop dword [rax + rax]
add rsp, 0x48
ret

Function at 0x18003b0c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [rsp + 0x88]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
add rsp, 0x48
ret

Function at 0x18003b110
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [rsp + 0x88]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueA]
nop dword [rax + rax]
add rsp, 0x48
ret

Function at 0x18003b160
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [rsp + 0x88]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
add rsp, 0x48
ret

Function at 0x18003b2d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rsp + 0xc8]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0x98]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x48], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyA]
nop dword [rax + rax]
add rsp, 0x68
ret
Function at 0x18003c340
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, r8d
mov ebp, edx
mov r8, rcx
mov edx, 0x106
lea rcx, [0x1800b3000]
mov edi, r9d
call fcn.18000ecd4
test eax, eax
js 0x18003c45e
and qword [rsp + 0x30], 0
lea rcx, [0x1800b3000]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], edi
mov edx, ebp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18003c3ff
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x18003c3fa
call fcn.180069f48
and qword [rsp + 0x30], 0
lea rcx, [0x1800b3000]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], edi
mov edx, ebp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18003c3ff
or eax, 0xffffffff
jmp 0x18003c463
mov ecx, ebx
cmp edi, 3
je 0x18003c425
call fcn.18003bf0c
mov edi, eax
cmp eax, 0xfffffffb
jne 0x18003c421
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
jmp 0x18003c463
call sym.KERNEL32.dll_LZInit
mov edi, eax
test eax, eax
jns 0x18003c43f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18003c421
lea r8, [0x1800b3000]
mov edx, 0x104
call fcn.18000ecd4
test eax, eax
jns 0x18003c421
mov eax, 0xfffffff9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18003fb80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x30], 0
lea rax, [rbp - 0x18]
and qword [rbp + 0x38], 0
lea rdx, str.SYSTEMCurrentControlSetControlWOW
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov r9d, 0x20019
xor r8d, r8d
mov ebx, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18003fd0f
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea r8, str.UTCLimitTimeout
lea rax, [rbp + 0x38]
mov dword [rbp + 0x28], 8
mov qword [rsp + 0x28], rax
mov r9d, 0x20000048
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
cmp qword [rbp + 0x38], 0
je 0x18003fcff
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x20]
mov r9d, 0x2001b
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.UTCLimit
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18003fcff
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
mov r9d, 0x20000048
lea rax, [rbp + 0x30]
mov dword [rbp + 0x28], 8
mov qword [rsp + 0x28], rax
mov r8, rdi
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov eax, dword [rbp - 0x10]
mov dword [rbp - 8], eax
mov eax, dword [rbp - 0xc]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 8]
mov qword [rbp - 8], rax
cmp rax, qword [rbp + 0x30]
jbe 0x18003fced
imul rcx, qword [rbp + 0x38], 0x989680
sub rax, qword [rbp + 0x30]
cmp rax, rcx
jbe 0x18003fced
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 8]
mov dword [rsp + 0x28], 8
lea r9d, [rbx + 0xa]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x18003fcef
xor ebx, ebx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x180042e70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x7ffe02e0]
mov dword [rsp + 0x30], ecx
cmp ecx, 0xffffffff
jne 0x180042eab
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 4]
lea ecx, [r9 + 0x3b]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov eax, ecx
add rsp, 0x28
ret

Function at 0x180047138
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov rbp, rcx
cmp rcx, 0x10000
jae 0x1800471be
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8d, 0x20
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
add edx, 0x1c0000
or edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x180047252
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov dword [rax], 2
mov word [rax + 8], bp
jmp 0x180047314
or rsi, 0xffffffffffffffff
xor edi, edi
inc rsi
cmp word [rcx + rsi*2], di
jne 0x1800471c4
mov r13d, 1
lea r14, [rdx + 8]
mov rbx, qword [r14]
add rsi, r13
test rbx, rbx
je 0x180047211
mov rcx, qword [rbx + 0x18]
mov r8, rsi
mov rdx, rbp
call qword [sym.imp.ntdll.dll_wcsncmp]
nop dword [rax + rax]
test eax, eax
je 0x180047208
lea r14, [rbx + 8]
mov rbx, qword [r14]
test rbx, rbx
jne 0x1800471e2
test rbx, rbx
jne 0x180047314
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r12d, 0x20
mov r8d, r12d
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
add edx, 0x1c0000
or edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x180047259
xor eax, eax
jmp 0x180047317
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
lea r8, [rsi + rsi]
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
add edx, 0x1c0000
or edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1800472c0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x180047252
mov dword [rbx], r13d
mov rdx, rdi
mov eax, dword [r15]
mov dword [rbx + 0x10], eax
lea eax, [rsi + r13]
add ax, ax
sub si, r13w
mov word [rbx + 0x14], ax
mov word [rbx + 0x16], si
movzx ecx, word [rdx + rbp]
mov r8, qword [rbx + 0x18]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x1800472f4
sub cx, r12w
mov word [r8 + rdx], cx
movzx eax, word [rdx + rbp]
add rdx, 2
test ax, ax
jne 0x1800472df
movzx eax, word [rbx + 0x14]
add dword [r15], eax
mov qword [rbx + 8], rdi
mov qword [r14], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180047864
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x18]
mov rdi, rcx
test rbx, rbx
je 0x18004790f
mov rax, rbx
mov rax, qword [rax]
mov qword [rdi + 0x18], rax
jmp 0x180047896
mov rax, qword [rax]
mov qword [rbx + 0x18], rax
call fcn.180047998
mov rax, qword [rbx + 0x18]
mov rcx, rax
test rax, rax
jne 0x18004788a
jmp 0x1800478b0
mov rax, qword [rax]
mov qword [rbx + 0x20], rax
call fcn.180047998
mov rax, qword [rbx + 0x20]
mov rcx, rax
test rax, rax
jne 0x1800478a4
mov r8, qword [rbx + 8]
cmp dword [r8], 2
jne 0x1800478e1
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x18]
mov rax, rbx
test rbx, rbx
jne 0x180047881
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x180047980
mov rax, rbx
mov rax, qword [rax]
mov qword [rdi + 0x20], rax
jmp 0x180047930
mov rax, qword [rax]
mov qword [rbx + 0x18], rax
call fcn.180047998
mov rax, qword [rbx + 0x18]
mov rcx, rax
test rax, rax
jne 0x180047924
jmp 0x18004794a
mov rax, qword [rax]
mov qword [rbx + 0x20], rax
call fcn.180047998
mov rax, qword [rbx + 0x20]
mov rcx, rax
test rax, rax
jne 0x18004793e
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x20]
mov rax, rbx
test rbx, rbx
jne 0x18004791b
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180047a44

Function at 0x180047998
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
mov r8, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
and qword [rbx + 0x28], 0
cmp dword [r8], 2
jne 0x1800479ef
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 8], 0
mov r8, qword [rbx + 0x18]
cmp dword [r8], 2
jne 0x180047a19
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_RtlFreeHeap]
Function at 0x180047a44
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x180047aaa
cmp dword [rbx], 1
mov rdi, qword [rbx + 8]
jne 0x180047a84
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, rdi
test rdi, rdi
jne 0x180047a57
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180047abc
Capabilities:
Access peb ldr_data

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, 0x20
mov esi, dword [rsp + 0x60]
mov rbp, r9
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8d, 0x38
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
add edx, 0x1c0000
or edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
jne 0x180047b6e
cmp dword [rdi], 2
jne 0x180047b41
mov rcx, qword gs:[0x60]
mov r8, rdi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp dword [rbx], 2
jne 0x180047b64
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, 8
jmp 0x180047c5d
mov rcx, qword [rsp + 0x50]
xor eax, eax
xorps xmm0, xmm0
mov r14d, 1
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
mov qword [rdx + 0x30], rax
mov eax, dword [rsp + 0x68]
mov dword [rdx + 0x24], eax
mov rax, qword [rsp + 0x70]
mov qword [rdx + 0x18], rdi
mov edi, dword [rsp + 0x58]
mov qword [rdx + 0x28], rax
mov qword [rdx + 8], rbx
mov word [rdx + 0x34], di
mov word [rdx + 0x32], r14w
movzx eax, word [rcx + 0x34]
cmp edi, eax
jge 0x180047bee
movzx eax, word [rcx + 0x32]
add ax, r14w
neg esi
mov word [rdx + 0x32], ax
sbb r8, r8
and r8, 0xfffffffffffffff8
add r8, 0x20
add r8, rbp
mov rax, qword [r8]
jmp 0x180047be1
mov r8, rax
mov rax, qword [rax]
cmp rcx, rax
jne 0x180047bdb
mov qword [rdx], rax
mov qword [r8], rdx
jmp 0x180047c5b
mov r8, rcx
mov r11, qword [rcx + 8]
test esi, esi
je 0x180047c0b
movzx eax, word [r11 + 8]
xor r9d, r9d
cmp word [rbx + 8], ax
sete r9b
jmp 0x180047c35
mov rax, qword [rbx + 0x18]
mov r11, qword [r11 + 0x18]
sub r11, rax
movzx r9d, word [rax]
movzx r10d, word [rax + r11]
sub r9d, r10d
jne 0x180047c2d
add rax, 2
test r10d, r10d
jne 0x180047c16
test r9d, r9d
je 0x180047c3a
xor r9d, r9d
test r9d, r9d
je 0x180047c52
movzx eax, word [rcx + 0x34]
cmp edi, eax
jle 0x180047c52
add word [rcx + 0x32], r14w
mov r8, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x180047bf1
mov rax, qword [r8]
mov qword [r8], rdx
mov qword [rdx], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18004814c
Capabilities:
Access peb ldr_data

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 r12
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov r14d, edx
mov r15d, ecx
xor edi, edi
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r12d, 0x1000
mov r8d, r12d
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
add edx, 0x1c0000
or edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x18004821c
mov r8, r12
xor edx, edx
mov rcx, rbx
call sub.ntdll.dll_memset
jmp 0x1800481f8
cmp ebp, r12d
mov esi, r12d
mov rdx, rbx
mov ecx, r15d
cmovbe esi, ebp
mov r8d, esi
sub ebp, esi
call sym.KERNEL32.dll__hread
xor ecx, ecx
cmp eax, esi
cmovne ecx, eax
test ecx, ecx
jne 0x1800481fc
add edi, esi
mov r8d, esi
mov rdx, rbx
mov ecx, r14d
call sym.KERNEL32.dll__hwrite
test ebp, ebp
jne 0x1800481c4
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x18004bb58
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov r8d, 8
mov rbx, rcx
xor r9d, r9d
mov dword [rsp + 0x38], r8d
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x18004bb9a
mov ecx, dword [rsp + 0x3c]
shr ecx, 5
and cl, 1
mov byte [rbx], cl
add rsp, 0x20
pop rbx
ret

Function at 0x18004bba8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x50], rax
and dword [rsp + 0x64], 0
mov esi, edx
and dword [rsp + 0x7c], 0
mov rdi, rcx
and qword [rsp + 0x38], 0
lea rcx, [rbp - 0x70]
and dword [rsp + 0x30], 0
mov r15d, 0xba
mov r8d, r15d
xor edx, edx
call sub.ntdll.dll_memset
xorps xmm0, xmm0
lea rdx, str.RegistryMachineSystemCurrentControlSetControlNLSLanguage
xorps xmm1, xmm1
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
test rdi, rdi
je 0x18004bd8a
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlSizeHeap]
nop dword [rax + rax]
add rax, 0xffffffffffffff54
cmp rax, 0xffffffffffffff52
ja 0x18004bd8a
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x50]
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 + 0x38]
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x18004bd70
lea rdx, str.PreviousInstallLanguage
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x70]
mov r8d, 2
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x18004bd60
cmp eax, 0xc0000034
jne 0x18004bd70
mov r8d, r15d
lea rcx, [rbp - 0x70]
xor edx, edx
call sub.ntdll.dll_memset
and dword [rsp + 0x30], 0
lea rdx, str.InstallLanguage
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x70]
mov r8d, 2
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x18004bd70
lea r8, [rbp - 0x70]
mov rdx, rdi
mov ecx, esi
call fcn.18004bb0c
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18004bd86
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x18004bd8f
mov eax, 0xc000000d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x18004bdbc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
and dword [rax - 0x38], 0
mov r15d, ecx
mov dword [rax + 8], 0x57
mov ebx, 0x100
mov rcx, qword gs:[0x60]
and r15d, ebx
mov eax, r15d
xor edi, edi
neg eax
mov r13d, r8d
mov rsi, rdx
lea r8d, [rbx - 0x52]
mov rcx, qword [rcx + 0x30]
sbb r14d, r14d
lea edx, [rdi + 8]
and r14d, ebx
mov r12, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x18004be36
mov ebx, 0xc0000017
jmp 0x18004bf33
lea edx, [r14 + 1]
mov rcx, rbp
and edx, ebx
call fcn.18004bba8
mov ebx, eax
test eax, eax
js 0x18004bef2
test rsi, rsi
jne 0x18004bec1
mov rcx, qword gs:[0x60]
lea edx, [rsi + 8]
mov r8d, dword [rsp + 0x80]
add r8, r8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x18004be89
mov ebx, 0xc0000017
jmp 0x18004bef2
neg r15d
lea r9, [rsp + 0x80]
mov r8, rdi
lea rdx, [rsp + 0x40]
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 0x408
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetSystemPreferredUILanguages]
nop dword [rax + rax]
test eax, eax
jne 0x18004bebe
mov ebx, 0xc00000e5
jmp 0x18004bef2
mov rsi, rdi
mov rax, qword [rsp + 0xa8]
lea ecx, [r14 + 1]
mov qword [rsp + 0x30], rax
mov r9d, r13d
mov al, byte [rsp + 0xa0]
mov r8, rbp
mov byte [rsp + 0x28], al
mov rdx, rsi
mov qword [rsp + 0x20], r12
call fcn.18004bf5c
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rbp
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rdi, rdi
je 0x18004bf33
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18004f244
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov eax, dword [rcx + 8]
lea r8, [0x180089490]
sub eax, 0x526
mov dword [rbp - 0x30], 1
mov edx, eax
mov rbx, rcx
mov dword [rbp - 0x2c], 1
movzx eax, word [r8 + rax*8 + 2]
mov dword [rbp - 0x28], eax
movzx eax, word [r8 + rdx*8 + 4]
mov dword [rbp - 0x24], eax
movzx eax, word [r8 + rdx*8 + 6]
movzx r8d, word [r8 + rdx*8]
mov dword [rbp - 0x20], eax
mov eax, dword [rcx + 0x14]
mov dword [rbp - 0x1c], eax
mov eax, dword [rcx + 0x18]
mov dword [rbp - 0x18], eax
mov eax, dword [rcx + 0x1c]
mov dword [rbp - 0x14], eax
mov eax, dword [rcx + 0x20]
mov dword [rbp - 0x10], eax
mov eax, dword [rcx + 0x24]
mov ecx, dword [rcx + 0x10]
dec ecx
mov dword [rbp - 0xc], eax
mov eax, dword [rbx + 0xc]
cmp eax, 1
jbe 0x18004f2d7
lea edx, [rax - 1]
movzx eax, r8w
add ecx, 0x1d
and eax, 1
shr r8w, 1
add ecx, eax
sub rdx, 1
jne 0x18004f2c1
mov edx, ecx
lea rcx, [rbp - 0x30]
call fcn.18004db6c
test eax, eax
je 0x18004f306
movups xmm0, xmmword [rbp - 0x30]
mov eax, 1
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rbx + 0x10], xmm1
movsd qword [rbx + 0x20], xmm0
jmp 0x18004f308
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x18005818c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov ebx, r9d
lea rcx, [rsp + 0x30]
mov rdi, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret