joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100001c44
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x90
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [0x10000f544]
xor r12d, r12d
lea ebx, [r12 + 2]
mov byte [r11 - 0x20], r12b
mov byte [r11 - 0x1f], r12b
mov byte [r11 - 0x1e], r12b
mov byte [r11 - 0x1d], r12b
mov byte [r11 - 0x1c], r12b
mov byte [rsp + 0x7d], 5
mov dword [r11 - 0x38], r12d
cmp eax, ebx
jne 0x100001e10
lea rcx, [r11 - 0x38]
call fcn.100001b30
cmp eax, r12d
jne 0x100001df5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
lea edx, [rbx + 6]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, r12d
jne 0x100001cda
xor eax, eax
jmp 0x100001e10
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
jne 0x100001de4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100001de4
mov edx, dword [rsp + 0x64]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, r12
je 0x100001de4
mov r9d, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
je 0x100001ddb
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov r8d, 0x20
mov dl, bl
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, r12d
je 0x100001ddb
mov esi, r12d
cmp dword [rdi], r12d
jbe 0x100001dd0
lea rbp, [rdi + 8]
mov ebx, 1
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r12d
jne 0x100001dc6
add esi, ebx
add rbp, 0x10
cmp esi, dword [rdi]
jb 0x100001da6
jmp 0x100001dd0
mov dword [0x10000f544], ebx
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x100001e10
mov ecx, dword [0x10000f544]
mov eax, dword [rsp + 0x60]
mov ebx, 1
cmp eax, r12d
cmovne ecx, ebx
mov dword [0x10000f544], ecx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.10000c9f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x100002578
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ecx, ecx
test eax, eax
jne 0x1000025c0
and dword [rsp + 0x28], eax
xor r9d, r9d
mov edx, 0x4f5
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
call fcn.100005574
xor eax, eax
jmp 0x100002643
lea r8, [rsp + 0x34]
lea rdx, [0x100001648]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100002628
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x1000025ac
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x10000263e
mov edx, 0x4f7
jmp 0x100002619
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x100002918
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
test rcx, rcx
je 0x100002b00
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp byte [rcx], 0
mov rbx, rcx
je 0x100002adc
lea rax, [r11 - 0x128]
mov r9d, 0x104
mov rdi, rbx
sub rdi, rax
mov rdx, r9
lea rcx, [r11 - 0x128]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x10000298d
mov al, byte [rdi + rcx]
test al, al
je 0x10000298d
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x10000296f
test rdx, rdx
jne 0x100002995
dec rcx
mov byte [rcx], 0
lea r8, [0x100001680]
lea rcx, [rsp + 0x160]
mov rdx, r9
call fcn.100001a08
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100002adc
mov r8d, 0x104
lea rdx, [rsp + 0x160]
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x1000029fb
mov al, byte [rdi + rdx]
test al, al
je 0x1000029fb
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1000029dd
test r8, r8
jne 0x100002a03
dec rdx
test byte [rsp + 0x20], 0x10
mov byte [rdx], 0
je 0x100002a7c
lea rdx, [0x100001684]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100002ab4
lea rdx, [0x100001688]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100002ab4
lea r8, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.100001a08
lea r8, [0x1000015b9]
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.100007fc0
lea rcx, [rsp + 0x160]
call fcn.100002918
jmp 0x100002ab4
lea r8, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.100001a08
lea rcx, [rsp + 0x160]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000029cf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10000c9f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100002b08
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, ebx
je 0x100002b91
lea r8, [0x100001690]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.100007fc0
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 0x100002b91
lea r8d, [rbx + 2]
xor edx, edx
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.10000c9f0
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
movzx eax, cx
cmp eax, ebx
je 0x100002ccc
cmp eax, 1
je 0x100002c58
add eax, 0xfffffffe
cmp eax, 1
ja 0x100002cd3
lea rax, [rsp + 0x78]
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100002c52
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
lea rdx, str.PendingFileRenameOperations
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x70]
cmp eax, ebx
cmovne ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x70]
jmp 0x100002cd3
lea rax, [rsp + 0x78]
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100002c52
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x100002c3a
call fcn.100002b08
mov ebx, eax
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x100002e5c
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x160
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
mov rbp, r8
mov rbx, rcx
mov byte [rcx], dil
cmp byte [r8], 0x23
lea r13d, [rdi + 1]
jne 0x100003016
add rbp, r13
movsx rcx, byte [rbp]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rbp, rax
cmp sil, 0x53
je 0x100003013
cmp sil, 0x57
je 0x100003003
lea r8, [0x1000016a0]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 0x104
mov edx, 0x104
lea rcx, [rsp + 0x40]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100002f15
mov al, byte [r8 + rcx]
test al, al
je 0x100002f15
mov byte [rcx], al
add rcx, r13
sub rdx, r13
jne 0x100002ef7
test rdx, rdx
jne 0x100002f1d
sub rcx, r13
mov byte [rcx], dil
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x104
call fcn.100007fc0
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100003025
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1000015b9]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100002ff6
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x100002fef
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100002feb
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100002fdb
mov al, byte [r8 + rcx]
test al, al
je 0x100002fdb
mov byte [rcx], al
add rcx, r13
sub rdx, r13
jne 0x100002fbd
test rdx, rdx
jne 0x100002fe3
sub rcx, r13
mov byte [rcx], dil
mov edi, r13d
jmp 0x100002ff6
mov eax, dword [rsp + 0x30]
cmp eax, r13d
cmove edi, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100003021
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x100003025
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x100003035
mov r8, rbp
mov edx, 0x104
mov rcx, rbx
call fcn.100007fc0
mov eax, r13d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10000c9f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x100003068
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov r12, rcx
cmp dword [rcx + 0x7c], ebp
mov rbx, rbp
mov r14d, ebp
mov r13d, ebp
jle 0x100003237
mov r15, rbp
mov edi, dword [r12 + 0x80]
mov edx, 0x104
mov rcx, rsi
add rdi, r15
mov eax, dword [rdi + r12 + 0xbc]
lea r8, [rax + r12 + 0x84]
call fcn.100002e5c
cmp eax, ebp
je 0x10000323d
lea rdx, [rsp + 0x80]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp eax, ebp
je 0x100003209
mov rdx, rsi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
cmp rax, rbp
je 0x10000323d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
test rax, rax
je 0x10000323d
mov edx, dword [rsp + 0x80]
mov r8d, esi
mov rsi, qword [rsp + 0x88]
mov rcx, rsi
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000031fc
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x38]
lea rdx, [0x1000016d4]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueA
xor ebp, ebp
cmp eax, ebp
je 0x1000031fe
cmp dword [rsp + 0x20], ebp
je 0x1000031fe
mov rax, qword [rsp + 0x38]
lea rdx, [rdi + r12 + 0x94]
mov rcx, rbp
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
lea r10d, [rbp + 1]
cmp r9d, dword [rdx - 0x10]
jae 0x100003195
or eax, 0xffffffff
jmp 0x1000031a7
jbe 0x10000319c
mov eax, r10d
jmp 0x1000031a7
cmp r8d, dword [rdx - 0xc]
jb 0x100003190
mov eax, ebp
seta al
mov dword [rsp + rcx + 0x28], eax
cmp r9d, dword [rdx - 4]
jae 0x1000031b6
or eax, 0xffffffff
jmp 0x1000031c7
jbe 0x1000031bd
mov eax, r10d
jmp 0x1000031c7
cmp r8d, dword [rdx]
jb 0x1000031b1
mov eax, ebp
seta al
mov dword [rsp + rcx + 0x30], eax
add rcx, 4
add rdx, 0x18
cmp rcx, 8
jl 0x10000318a
cmp dword [rsp + 0x28], ebp
jl 0x1000031e5
cmp dword [rsp + 0x30], ebp
jle 0x1000031fe
cmp dword [rsp + 0x2c], ebp
jl 0x1000031f1
cmp dword [rsp + 0x34], ebp
jle 0x1000031fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10000323d
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x100003225
cmp dword [rdi + r12 + 0x84], ebp
jne 0x10000323d
cmp dword [rdi + r12 + 0x88], ebp
jne 0x10000323d
mov rsi, qword [rsp + 0x88]
inc r13d
add r15, 0x3c
cmp r13d, dword [r12 + 0x7c]
jl 0x1000030a3
mov r14d, 1
mov rax, qword [rsp + 0x98]
mov dword [rax], r13d
test rbx, rbx
je 0x100003256
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r14d
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000348c
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor ebp, ebp
bt eax, 0x1f
jb 0x1000034ef
cmp al, 6
jb 0x1000034ef
lea rcx, [0x1000016d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, rbp
je 0x1000034ef
lea rdx, [0x1000016f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbp
je 0x1000034ef
lea edx, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rax
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov dword [0x100010488], ebp
call fcn.1000035d8
cmp eax, ebp
je 0x1000035a4
call fcn.1000038f8
mov ebx, eax
call fcn.100003aec
cmp ebx, ebp
je 0x1000035a4
cmp byte [0x10001141a], bpl
jne 0x1000035a4
mov edi, dword [0x100010ebc]
test dil, 1
je 0x1000035a4
test dil, 2
jne 0x100003558
cmp dword [0x10001048c], ebp
jne 0x100003558
movzx ecx, word [0x100010490]
mov ebx, dword [0x1000105a4]
call fcn.100002bbc
cmp ebx, eax
je 0x1000035a4
test dil, 4
jne 0x100003589
lea r8, [0x1000015b9]
xor r9d, r9d
mov edx, 0x522
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x40
call fcn.100005574
cmp eax, 6
jne 0x1000035a4
cmp word [0x100010490], bp
jne 0x10000359f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1000035a4
call fcn.100002578
mov rcx, qword [0x100010458]
cmp rcx, rbp
je 0x1000035b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100010488]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1000038f8
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x100011418], di
jne 0x10000394c
cmp dword [0x100011404], edi
jne 0x100003943
call fcn.100006654
cmp eax, edi
jne 0x10000393a
xor eax, eax
jmp 0x100003ac2
cmp word [0x100011418], di
jne 0x10000394c
call fcn.100004720
cmp eax, edi
je 0x100003933
call fcn.100006594
cmp eax, edi
je 0x100003933
call fcn.100006a80
cmp eax, edi
je 0x100003933
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x1000015c0]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.100007fc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
cmp rax, rdi
je 0x1000039b6
lea rdx, [0x100001748]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x1000039b6
lea rcx, [0x100010670]
xor edx, edx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100011404], edi
jne 0x100003a31
cmp dword [0x100010ec0], edi
jne 0x100003a31
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, edi
jne 0x100003a14
mov edx, 0x4f0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x10
call fcn.100005574
call fcn.100007b14
mov dword [0x100010488], eax
jmp 0x100003933
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.1000070bc
cmp eax, edi
je 0x100003933
lea rcx, [0x100010670]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, edi
jne 0x100003a49
mov edx, 0x4bc
jmp 0x1000039eb
cmp dword [0x10001140c], edi
jne 0x100003a5e
call fcn.100004858
cmp eax, edi
je 0x100003933
mov eax, dword [0x100011728]
test al, 0x40
jne 0x100003a80
test al, al
js 0x100003a80
movzx ecx, word [0x100010490]
call fcn.100002bbc
mov dword [0x1000105a4], eax
jmp 0x100003a86
mov dword [0x1000105a4], edi
mov eax, dword [0x100011404]
cmp eax, edi
jne 0x100003aab
cmp dword [0x100010ec0], edi
jne 0x100003aab
call fcn.100004900
cmp eax, edi
je 0x100003933
mov eax, dword [0x100011404]
cmp word [0x100011418], di
jne 0x100003abd
cmp eax, edi
jne 0x100003abd
call fcn.100005168
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10000c9f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x100003aec
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 [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x100010668]
jmp 0x100003b53
cmp dword [0x100011404], 0
jne 0x100003b3d
cmp dword [0x100010ec0], 0
jne 0x100003b3d
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 0x100003b14
mov eax, dword [0x100011400]
mov ebx, 1
test eax, eax
je 0x100003bf2
cmp dword [0x100011404], 0
jne 0x100003bf2
cmp dword [0x100010ec0], 0
jne 0x100003bf2
lea r8, [0x100010670]
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100003bb7
mov al, byte [r8 + rcx]
test al, al
je 0x100003bb7
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x100003b99
test rdx, rdx
jne 0x100003bbf
sub rcx, rbx
test byte [0x100010ec4], 0x20
mov byte [rcx], 0
je 0x100003bd5
lea rcx, [rsp + 0x40]
call fcn.10000804c
lea rcx, [0x100001688]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.100002918
mov eax, dword [0x100011400]
cmp word [0x100010490], bx
je 0x100003c50
test eax, eax
je 0x100003c50
cmp byte [0x1000103f0], 0
je 0x100003c50
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100003c50
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1000103f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x100011400], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10000c9f0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x100004f88
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor eax, eax
mov rbx, rcx
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov esi, 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rdx, rcx
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000050d9
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 [0x100011408], 0
mov edi, dword [rsp + 0x50]
jne 0x100005056
mov ecx, dword [0x100010ebc]
test sil, cl
je 0x100005056
test cl, 2
jne 0x100005056
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x100010ebc], ecx
bt dword [0x100010ec4], 0xb
jae 0x100005068
mov dword [0x100010488], edi
jmp 0x1000050b0
cmp dword [0x10001048c], 0
jne 0x1000050a6
movzx ecx, word [0x100010490]
mov ebx, dword [0x1000105a4]
call fcn.100002bbc
cmp ebx, eax
jne 0x1000050a6
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x10000509a
test sil, dil
jne 0x1000050a6
bt dword [0x100010ec4], 9
jae 0x1000050b0
jmp 0x100005060
mov dword [0x100010488], 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]
bt dword [0x100010ec4], 0xa
jae 0x100005138
cmp dword [rsp + 0x50], 0
jge 0x100005138
jmp 0x100005136
call fcn.100007b14
mov dword [0x100010488], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor edx, edx
mov ecx, 0x1000
mov dword [rsp + 0x28], 0x200
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 edx, 0x4c4
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.100005574
xor esi, esi
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10000c9f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret