joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001158
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.1400018e4
add rsp, 0x28
jmp 0x140001158
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
xor eax, eax
mov dword [rsp + 0x44], eax
xor edx, edx
lea r8d, [rax + 0x64]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000ebf8], rbx
je 0x1400011b8
cmp rax, rbx
jne 0x1400011cd
mov edi, 1
mov eax, dword [0x14000ec00]
cmp eax, 1
jne 0x1400011da
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140001243
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011a1
mov eax, dword [0x14000ec00]
test eax, eax
jne 0x140001239
mov dword [0x14000ec00], 1
lea r14, [0x14000b6d8]
lea rbx, [0x14000b6c0]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14000122b
test eax, eax
jne 0x14000122f
cmp qword [rbx], 0
je 0x140001220
mov rax, qword [rbx]
call fcn.14000a010
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140001205
test eax, eax
je 0x140001243
mov eax, 0xff
jmp 0x140001391
mov dword [0x14000e2a4], 1
mov eax, dword [0x14000ec00]
cmp eax, 1
jne 0x14000126b
lea rdx, [0x14000b6b8]
lea rcx, [0x14000b6a8]
call sub.msvcrt.dll__initterm
mov dword [0x14000ec00], 2
test edi, edi
jne 0x140001278
xor eax, eax
xchg qword [0x14000ebf8], rax
cmp qword [0x14000ec08], 0
je 0x1400012a7
lea rcx, [0x14000ec08]
call fcn.140001850
test eax, eax
je 0x1400012a7
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000ec08]
call fcn.14000a010
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x140001333
test cl, cl
je 0x1400012ca
test edi, edi
jne 0x140001333
dec cl
cmp cl, 0x1f
ja 0x1400012dd
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400012ca
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400080ec
mov dword [0x14000e2a0], eax
cmp dword [0x14000e2c0], 0
jne 0x14000131c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e2a4], 0
jne 0x140001331
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e2a0]
jmp 0x140001391
cmp cl, 0x22
jne 0x140001345
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140001357
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x1400012ba
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1400026f8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call sub.msvcrt.dll_memset
test rbx, rbx
je 0x1400028da
cmp byte [rbx], 0
je 0x1400028da
mov r15d, 0x104
lea rax, [rbp + 0x60]
mov rdi, rbx
lea rcx, [rbp + 0x60]
mov edx, r15d
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002782
mov al, byte [rdi + rcx]
test al, al
je 0x140002782
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140002764
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [0x14000b828]
mov rdx, r15
cmovne rax, rcx
lea rcx, [rbp + 0x60]
mov byte [rax], 0
call fcn.140003624
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400028da
mov r8, r15
lea rdx, [rbp + 0x60]
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x1400027ea
mov al, byte [rdi + rdx]
test al, al
je 0x1400027ea
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1400027cc
test r8, r8
lea rax, [rdx - 1]
cmovne rax, rdx
test byte [rsp + 0x20], 0x10
mov byte [rax], 0
je 0x14000286a
lea rdx, [0x14000b82c]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
je 0x1400028a0
lea rdx, [0x14000b830]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
je 0x1400028a0
lea r8, [rsp + 0x4c]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140003624
lea r8, [0x14000b760]
mov edx, r15d
lea rcx, [rbp + 0x60]
call fcn.14000897c
lea rcx, [rbp + 0x60]
call fcn.1400026f8
jmp 0x1400028a0
lea r8, [rsp + 0x4c]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140003624
mov edx, 0x80
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [rax + rax]
test eax, eax
jne 0x1400027c5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140008f50
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x140002d84
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 [0x14000e040]
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 0x140002f96
add rsi, r12
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
nop dword [rax + rax]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rsi, rax
cmp r14b, 0x41
je 0x140002e3e
cmp r14b, 0x53
je 0x140002e25
cmp r14b, 0x57
jne 0x140002e3e
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
jmp 0x140002f90
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
jmp 0x140002f90
and qword [rsp + 0x38], rdi
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
and dword [rsp + 0x30], edi
lea rax, [rsp + 0x40]
sub r8, rax
mov dword [rsp + 0x34], 0x104
mov edx, 0x104
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002e86
mov al, byte [r8 + rcx]
test al, al
je 0x140002e86
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002e68
test rdx, rdx
lea rax, [rcx - 1]
mov r8, rsi
mov edx, 0x104
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov byte [rax], dil
call fcn.14000897c
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]
nop dword [rax + rax]
test eax, eax
jne 0x140002f90
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, [0x14000b760]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140002f7f
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140002f78
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
nop dword [rax + rax]
test eax, eax
je 0x140002f74
lea r8, [rsp + 0x40]
mov edx, 0x104
sub r8, rbx
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002f61
mov al, byte [r8 + rcx]
test al, al
je 0x140002f61
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002f43
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], dil
mov edi, r12d
jmp 0x140002f7f
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
jne 0x140002fb7
jmp 0x140002fa7
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.14000897c
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008f50
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002fe4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x60
xor ebx, ebx
mov r9d, 0x20019
mov qword [rax + 0x10], rbx
xor r8d, r8d
mov dword [rax + 8], ebx
lea rax, [rax + 0x10]
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000308d
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
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]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x1400030a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14000e040]
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]
nop dword [rax + rax]
test eax, eax
je 0x140003147
lea r8, str.wininit.ini
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14000897c
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
nop dword [rax + rax]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
je 0x140003147
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
nop dword [rax + rax]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f50
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140003174
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x14000e1c4]
xor r14d, r14d
mov qword [rbp + 0x2f], r14
mov dword [rbp + 0x27], r14d
mov dword [rbp + 0x3f], r14d
lea ebx, [r14 + 2]
mov word [rbp + 0x43], 0x500
mov qword [rbp + 0x37], r14
mov dword [rbp + 0x2b], r14d
cmp eax, ebx
jne 0x140003362
lea rcx, [rbp + 0x2b]
call fcn.1400025d4
test eax, eax
jne 0x140003349
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rbx + 6]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x140003362
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x27]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140003334
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x140003334
mov edx, dword [rbp + 0x27]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140003334
mov r9d, dword [rbp + 0x27]
lea rax, [rbp + 0x27]
mov rcx, qword [rbp + 0x2f]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x140003325
lea rax, [rbp + 0x37]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], r14d
mov r8d, 0x20
mov dword [rsp + 0x40], r14d
mov dl, bl
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140003325
mov esi, r14d
cmp dword [rdi], r14d
jbe 0x140003315
mov ebx, 1
mov rdx, qword [rbp + 0x37]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rdi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14000330c
add esi, ebx
cmp esi, dword [rdi]
jb 0x1400032e6
jmp 0x140003315
mov dword [0x14000e1c4], ebx
mov dword [rbp + 0x2b], ebx
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rbp + 0x2b]
jmp 0x140003362
mov ecx, dword [0x14000e1c4]
mov ebx, 1
mov eax, dword [rbp + 0x2b]
test eax, eax
cmovne ecx, ebx
mov dword [0x14000e1c4], ecx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008f50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003394
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14000e040]
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]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x1400033f0
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4f0
xor ecx, ecx
call fcn.140006228
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008f50
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x140003424
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x140003495
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDICopy
call fcn.140006228
xor eax, eax
jmp 0x140003533
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x140003512
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140003481
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
test eax, eax
jne 0x14000352e
mov edx, 0x4f7
jmp 0x140003500
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008f50
add rsp, 0x50
pop rbx
ret
Function at 0x140003550
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
movzx edx, cx
test edx, edx
je 0x14000360c
sub edx, 1
je 0x140003605
sub edx, 1
je 0x14000357a
cmp edx, 1
jne 0x140003613
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400035ff
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
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]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x40]
jmp 0x140003613
call fcn.140002fe4
jmp 0x140003611
call fcn.1400030a0
mov ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140004198
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000422b
test al, 0x10
jne 0x14000422b
cmp dword [0x14000f680], 0
jne 0x140004217
test byte [0x14000ed98], bl
jne 0x140004217
mov r8, qword [0x14000e8a8]
lea r9, [0x140006770]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
and qword [rsp + 0x20], 0
mov qword [0x14000f8b0], rdi
call fcn.1400064f0
sub rax, 6
je 0x140004217
sub rax, rbx
je 0x140004239
cmp rax, 0x832
jne 0x140004217
mov dword [0x14000f680], ebx
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ebx, ebx
jmp 0x14000422b
Function at 0x140004244
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x140004351
lea rdx, [rsp + 0x50]
call fcn.140005028
test eax, eax
je 0x140004406
lea rbx, [0x14000f690]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400042c0
mov al, byte [r8 + rcx]
test al, al
je 0x1400042c0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400042a1
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000fee4], 0x20
je 0x14000433e
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x14000432d
sub ecx, 1
je 0x140004324
sub ecx, 1
je 0x14000431b
cmp ecx, 1
jne 0x14000433e
lea r8, [0x14000ba28]
jmp 0x140004334
lea r8, str.alpha
jmp 0x140004334
lea r8, str.mips
jmp 0x140004334
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.14000897c
lea r8, [0x14000b760]
mov edx, edi
mov rcx, rbx
call fcn.14000897c
jmp 0x140004390
lea rbx, [0x14000f690]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140004382
mov al, byte [r9 + rcx]
test al, al
je 0x140004382
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140004363
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140005f24
test eax, eax
jne 0x1400043bb
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x1400043da
mov dword [0x14000ed80], 1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140005b94
test eax, eax
je 0x1400043e7
and dword [0x14000f5c4], 0
mov eax, 1
jmp 0x140004408
call fcn.1400065d0
mov dword [0x14000f5c4], eax
jmp 0x140004406
cmp dword [0x14000ed80], 0
je 0x140004406
and dword [0x14000ed80], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140008f50
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004434
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 [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000f688]
jmp 0x1400044b6
cmp dword [0x14000ed84], 0
mov rdi, rbx
jne 0x140004494
cmp dword [0x14000fee0], 0
jne 0x140004494
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x14000445c
mov eax, dword [0x14000ed80]
mov ebx, 1
test eax, eax
je 0x14000455f
cmp dword [0x14000ed84], 0
jne 0x14000455f
cmp dword [0x14000fee0], 0
jne 0x14000455f
lea r8, [0x14000f690]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000451b
mov al, byte [r8 + rcx]
test al, al
je 0x14000451b
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400044fd
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000fee4], 0x20
mov byte [rax], 0
je 0x14000453c
lea rcx, [rsp + 0x40]
call fcn.140008a14
lea rcx, [0x14000b830]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400026f8
mov eax, dword [0x14000ed80]
cmp word [0x14000fef8], bx
je 0x1400045d5
test eax, eax
je 0x1400045d5
and qword [rsp + 0x30], 0
cmp byte [0x14000e850], 0
je 0x1400045d5
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400045d5
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000e850]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000ed80], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008f50
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret