joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001afc
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ecx, ecx
test eax, eax
jne 0x140001b53
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004ab0
xor eax, eax
jmp 0x140001bd6
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140001bbb
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140001b3f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140001bd1
mov edx, 0x4f7
jmp 0x140001bac
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007d80
add rsp, 0x50
pop rbx
ret
Function at 0x14000207c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140002105
lea r8, str.wininit.ini
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140007528
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp eax, 0xffffffff
je 0x140002105
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x140002130
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
movzx eax, cx
test eax, eax
je 0x140002237
cmp eax, 1
je 0x1400021c7
add eax, 0xfffffffe
cmp eax, 1
ja 0x14000223e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021c2
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rbp + 0x10]
jmp 0x14000223e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021c2
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x1400021ad
call fcn.14000207c
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x140002254
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x1400022aa
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f0
xor ecx, ecx
call fcn.140004ab0
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x140002400
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov byte [rcx], dil
mov rbx, rcx
cmp byte [r8], 0x23
lea r12d, [rdi + 1]
jne 0x1400025b8
add rsi, r12
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
cmp r14b, 0x53
je 0x1400025b5
cmp r14b, 0x57
je 0x1400025a5
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400024b7
mov al, byte [r8 + rcx]
test al, al
je 0x1400024b7
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002499
test rdx, rdx
jne 0x1400024bf
sub rcx, r12
mov byte [rcx], dil
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140007528
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400025c7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x1400096c0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002598
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140002591
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x14000258d
lea r8, [rsp + 0x40]
mov edx, 0x104
sub r8, rbx
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000257d
mov al, byte [r8 + rcx]
test al, al
je 0x14000257d
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x14000255f
test rdx, rdx
jne 0x140002585
sub rcx, r12
mov byte [rcx], dil
mov edi, r12d
jmp 0x140002598
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400025c3
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1400025c7
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x1400025d7
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140007528
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002604
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor r14d, r14d
mov rsi, rdx
mov r15, rcx
mov ebx, r14d
mov r13d, r14d
mov r12d, r14d
cmp dword [rcx + 0x7c], r14d
jle 0x1400027d5
mov eax, r14d
mov qword [rbp - 0x18], rax
mov edi, dword [r15 + 0x80]
lea r8, [r15 + 0x84]
add rdi, rax
mov rcx, rsi
mov eax, dword [rdi + r15 + 0xbc]
add r8, rax
call fcn.140002400
test eax, eax
je 0x1400027db
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x1400027a4
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1400027db
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x1400027db
mov edx, dword [rbp + 0x58]
mov r8d, esi
mov rsi, qword [rbp + 0x50]
mov r9, rax
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140002796
lea r9, [rbp + 0x48]
mov rcx, r14
lea r8, [rbp - 0x10]
lea rdx, [0x1400097dc]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor r14d, r14d
test eax, eax
je 0x140002799
cmp dword [rbp + 0x48], r14d
je 0x140002799
mov rax, qword [rbp - 0x10]
lea rcx, [r15 + 0x94]
add rcx, rdi
mov edx, r14d
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
cmp r9d, dword [rcx - 0x10]
jae 0x140002729
or eax, 0xffffffff
jmp 0x14000273e
jbe 0x140002732
mov eax, 1
jmp 0x14000273e
cmp r8d, dword [rcx - 0xc]
jb 0x140002724
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x28], eax
cmp r9d, dword [rcx - 4]
jae 0x14000274d
or eax, 0xffffffff
jmp 0x140002761
jbe 0x140002756
mov eax, 1
jmp 0x140002761
cmp r8d, dword [rcx]
jb 0x140002748
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x20], eax
add rcx, 0x18
add rdx, 4
cmp rdx, 8
jl 0x14000271e
cmp dword [rbp - 0x28], r14d
jl 0x14000277f
cmp dword [rbp - 0x20], r14d
jle 0x140002799
cmp dword [rbp - 0x24], r14d
jl 0x14000278b
cmp dword [rbp - 0x1c], r14d
jle 0x140002799
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400027db
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400027bc
cmp dword [rdi + r15 + 0x84], r14d
jne 0x1400027db
cmp dword [rdi + r15 + 0x88], r14d
jne 0x1400027db
mov rsi, qword [rbp + 0x50]
mov rax, qword [rbp - 0x18]
inc r12d
add rax, 0x3c
mov qword [rbp - 0x18], rax
cmp r12d, dword [r15 + 0x7c]
jl 0x140002649
mov r13d, 1
mov rax, qword [rbp + 0x60]
mov dword [rax], r12d
test rbx, rbx
je 0x1400027f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r13d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002a58
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, esi
test eax, eax
js 0x140002ab5
cmp al, 6
jb 0x140002ab5
lea rcx, [0x1400097e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ab5
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002ab5
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [vtable.H_MA8HI.0]
mov rdx, rbx
mov dword [0x14000d544], esi
mov rcx, rdi
call fcn.140002b98
test eax, eax
je 0x140002b67
call fcn.140002e9c
mov ebx, eax
call fcn.140003128
test ebx, ebx
je 0x140002b67
cmp byte [0x14000cd1a], sil
jne 0x140002b67
mov edi, dword [0x14000de5c]
test dil, 1
je 0x140002b67
test dil, 2
jne 0x140002b1b
cmp dword [0x14000d540], esi
jne 0x140002b1b
movzx ecx, word [0x14000de78]
mov ebx, dword [0x14000de7c]
call fcn.140002130
cmp ebx, eax
je 0x140002b67
test dil, 4
jne 0x140002b4c
mov dword [rsp + 0x28], 4
lea r8, [0x1400096c0]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.140004ab0
cmp eax, 6
jne 0x140002b67
cmp word [0x14000de78], si
jne 0x140002b62
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140002b67
call fcn.140001afc
mov rcx, qword [0x14000c830]
test rcx, rcx
je 0x140002b79
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x14000d544]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140002e9c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000cd18], di
jne 0x140002ef0
cmp dword [0x14000cd04], edi
jne 0x140002ee7
call fcn.140005ccc
test eax, eax
jne 0x140002ede
xor eax, eax
jmp 0x140003100
cmp word [0x14000cd18], di
jne 0x140002ef0
call fcn.140003d1c
test eax, eax
je 0x140002ed7
call fcn.140005c0c
test eax, eax
je 0x140002ed7
call fcn.140006114
test eax, eax
je 0x140002ed7
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str.advapi32.dll
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140007528
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140002f5e
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002f5e
xor edx, edx
lea rcx, [0x14000d610]
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x14000cd04], edi
jne 0x140002fe8
cmp dword [0x14000de60], edi
jne 0x140002fe8
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x140002fcb
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
xor ecx, ecx
call fcn.140004ab0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
jmp 0x140002ed7
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.1400066d8
test eax, eax
je 0x140002ed7
lea rcx, [0x14000d610]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140003000
mov edx, 0x4bc
jmp 0x140002f93
cmp dword [0x14000cd0c], edi
jne 0x14000309c
lea rax, [0x14000d040]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x140003018
test byte [0x14000cd18], 1
jne 0x140003079
test byte [0x14000de64], 1
jne 0x140003079
mov eax, dword [0x14000c1ac]
lea r9, [0x140003770]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.140007460
test rax, rax
jne 0x140003082
mov dword [0x14000d544], 0x8007042b
jmp 0x140002ed7
call fcn.140005a00
test eax, eax
jmp 0x140003068
lea rcx, [0x140007270]
call fcn.140007120
test eax, eax
je 0x140002ed7
mov dword [0x14000d544], edi
mov eax, dword [0x14000d028]
test al, 0x40
jne 0x1400030be
test al, al
js 0x1400030be
movzx ecx, word [0x14000de78]
call fcn.140002130
mov dword [0x14000de7c], eax
jmp 0x1400030c4
mov dword [0x14000de7c], edi
mov eax, dword [0x14000cd04]
test eax, eax
jne 0x1400030e9
cmp dword [0x14000de60], edi
jne 0x1400030e9
call fcn.140003e5c
test eax, eax
je 0x140002ed7
mov eax, dword [0x14000cd04]
cmp word [0x14000cd18], di
jne 0x1400030fb
test eax, eax
jne 0x1400030fb
call fcn.140004674
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140003128
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x14000318f
cmp dword [0x14000cd04], 0
jne 0x140003179
cmp dword [0x14000de60], 0
jne 0x140003179
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rbx
test rbx, rbx
jne 0x140003150
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x14000322e
cmp dword [0x14000cd04], 0
jne 0x14000322e
cmp dword [0x14000de60], 0
jne 0x14000322e
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400031f3
mov al, byte [r8 + rcx]
test al, al
je 0x1400031f3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400031d5
test rdx, rdx
jne 0x1400031fb
sub rcx, rbx
test byte [0x14000de64], 0x20
mov byte [rcx], 0
je 0x140003211
lea rcx, [rsp + 0x40]
call fcn.1400075b8
lea rcx, [0x140009790]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.140001eb4
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x14000328c
test eax, eax
je 0x14000328c
cmp byte [0x14000c7d0], 0
je 0x14000328c
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000328c
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140004480
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
mov esi, 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov rdx, rcx
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400045db
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x14000cd08], 0
mov edi, dword [rsp + 0x50]
jne 0x140004552
mov ecx, dword [0x14000de5c]
test sil, cl
je 0x140004552
test cl, 2
jne 0x140004552
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x14000de5c], ecx
test dword [0x14000de64], 0x800
je 0x140004566
mov dword [0x14000d544], edi
jmp 0x1400045b0
cmp dword [0x14000d540], 0
jne 0x1400045a6
movzx ecx, word [0x14000de78]
mov ebx, dword [0x14000de7c]
call fcn.140002130
cmp ebx, eax
jne 0x1400045a6
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x140004598
test sil, dil
jne 0x1400045a6
test dword [0x14000de64], 0x200
je 0x1400045b0
jmp 0x14000455e
mov dword [0x14000d544], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x14000de64], 0x400
je 0x140004649
cmp dword [rsp + 0x50], 0
jge 0x140004649
jmp 0x140004647
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c4
xor ecx, ecx
call fcn.140004ab0
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004778
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x140004930
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140004920
mov edx, 0xc3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x140004920
lea rdx, str.SHGetPathFromIDList
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x140004920
cmp byte [0x14000cba0], bl
lea rdi, [0x14000cba0]
mov ebp, 0x104
jne 0x140004860
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140004830
add rdx, rdi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
mov r14, rax
cmp byte [rax], 0x5c
jne 0x140004860
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
cmp byte [rax], 0x3a
je 0x140004860
mov byte [r14], bl
lea rax, [0x14000c850]
mov byte [0x14000ca60], bl
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
lea rax, [0x140004750]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x58], rax
mov rax, r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], rdi
call qword [vtable.H_MA8HI.0]
mov r14, rax
test rax, rax
je 0x14000490a
mov rcx, rax
mov rdx, rdi
mov rax, r13
call qword [vtable.H_MA8HI.0]
cmp byte [0x14000cba0], bl
je 0x1400048f9
lea rcx, [0x14000ca60]
sub rdi, rcx
lea rax, [rbp + 0x7ffffefa]
test rax, rax
je 0x1400048ef
mov al, byte [rdi + rcx]
test al, al
je 0x1400048ef
mov byte [rcx], al
inc rcx
sub rbp, 1
jne 0x1400048d1
test rbp, rbp
jne 0x1400048f7
dec rcx
mov byte [rcx], bl
mov rax, qword [rsp + 0xb0]
mov rcx, r14
call qword [vtable.H_MA8HI.0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [0x14000ca60], bl
setne bl
mov eax, ebx
jmp 0x140004951
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x140004935
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov rcx, r15
call fcn.140004ab0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, r8d
mov rdx, rcx
mov rdi, rcx
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp eax, ebp
ja 0x140004de4
test rsi, rsi
je 0x140004de4
test eax, eax
jne 0x140004d9c
xor eax, eax
jmp 0x140004de6
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140004d98
mov r9, rbx
mov rdx, rbp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret