joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400289d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001e3f4
xor ebx, ebx
mov rdi, rax
cmp qword [0x140043510], rbx
jne 0x140028ada
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140028baf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028baf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140043510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140043518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140043520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140043530], rax
test rax, rax
je 0x140028ad1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140043528], rax
jmp 0x140028ae1
mov rax, qword [0x140043528]
jmp 0x140028ae8
mov rax, qword [0x140043528]
mov r11, qword [0x140043530]
cmp rax, rdi
je 0x140028b50
cmp r11, rdi
je 0x140028b50
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140043530]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140028b50
test rax, rax
je 0x140028b50
call rsi
test rax, rax
je 0x140028b4a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140028b4a
test byte [rsp + 0x38], 1
jne 0x140028b50
bts ebp, 0x15
jmp 0x140028b8e
mov rcx, qword [0x140043518]
cmp rcx, rdi
je 0x140028b8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140028b8e
call rax
mov rbx, rax
test rax, rax
je 0x140028b8e
mov rcx, qword [0x140043520]
cmp rcx, rdi
je 0x140028b8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140028b8e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140043510]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140028baf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140028bb1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100001c80
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, dword [0x10000f4a4]
xor r13d, r13d
mov word [rbp + 0x33], 0x500
lea ebx, [r13 + 2]
mov dword [rbp + 0x2f], r13d
mov dword [rbp + 0x17], r13d
cmp eax, ebx
jne 0x100001e22
lea rcx, [rbp + 0x17]
call fcn.100001b7c
test eax, eax
jne 0x100001e09
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x1f]
lea edx, [rbx + 6]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100001e22
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 0x1b]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100001dfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100001dfa
mov edx, dword [rbp + 0x1b]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x100001dfa
mov r9d, dword [rbp + 0x1b]
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 0x1b]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x100001df1
lea rax, [rbp + 0x27]
lea rcx, [rbp + 0x2f]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov r8d, 0x20
mov dl, bl
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100001df1
mov esi, r13d
cmp dword [rdi], r13d
jbe 0x100001de7
lea r12, [rdi + 8]
mov ebx, 1
mov rdx, qword [rbp + 0x27]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100001dde
add esi, ebx
add r12, 0x10
cmp esi, dword [rdi]
jb 0x100001dc0
jmp 0x100001de7
mov dword [0x10000f4a4], ebx
mov dword [rbp + 0x17], ebx
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x17]
jmp 0x100001e22
mov ecx, dword [0x10000f4a4]
mov eax, dword [rbp + 0x17]
mov ebx, 1
test eax, eax
cmovne ecx, ebx
mov dword [0x10000f4a4], ecx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.10000c380
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x100002564
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x10000f100]
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 0x1000025bb
and dword [rsp + 0x28], eax
xor r9d, r9d
mov edx, 0x4f5
xor r8d, r8d
mov dword [rsp + 0x20], InitCommonControls
call fcn.100005420
xor eax, eax
jmp 0x10000263e
lea r8, [rsp + 0x3c]
lea rdx, [0x100001698]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor r9d, r9d
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 0x100002623
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x1000025a7
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x100002639
mov edx, 0x4f7
jmp 0x100002614
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.10000c380
add rsp, 0x50
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 0x100002add
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rbp + 0x170], rax
cmp byte [rcx], 0
mov rbx, rcx
je 0x100002ab6
lea rax, [rbp + 0x60]
mov r9d, 0x104
mov rdi, rbx
sub rdi, rax
mov edx, r9d
lea rcx, [rbp + 0x60]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100002990
mov al, byte [rdi + rcx]
test al, al
je 0x100002990
mov byte [rcx], al
inc rcx
dec rdx
jne 0x100002973
test rdx, rdx
jne 0x100002998
dec rcx
mov byte [rcx], 0
lea r8, [0x1000016d0]
lea rcx, [rbp + 0x60]
mov rdx, r9
call fcn.100001a58
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100002ab6
mov r8d, 0x104
lea rdx, [rbp + 0x60]
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x1000029f1
mov al, byte [rdi + rdx]
test al, al
je 0x1000029f1
mov byte [rdx], al
inc rdx
dec r8
jne 0x1000029d4
test r8, r8
jne 0x1000029f9
dec rdx
test byte [rsp + 0x20], 0x10
mov byte [rdx], 0
je 0x100002a62
lea rdx, [0x1000016d4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100002a8e
lea rdx, [0x1000016d8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100002a8e
lea r8, [rsp + 0x4c]
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.100001a58
lea r8, [0x100001609]
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.100007ddc
lea rcx, [rbp + 0x60]
call fcn.100002918
jmp 0x100002a8e
lea r8, [rsp + 0x4c]
lea rcx, [rbp + 0x60]
mov edx, 0x104
call fcn.100001a58
lea rcx, [rbp + 0x60]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rbp + 0x60]
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 0x1000029ca
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.10000c380
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x100002ae4
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]
test eax, eax
je 0x100002b6d
lea r8, [0x1000016e0]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.100007ddc
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 0x100002b6d
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.10000c380
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x100002b98
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
movzx eax, cx
xor ebx, ebx
test eax, eax
je 0x100002c9f
cmp eax, 1
je 0x100002c2f
add eax, 0xfffffffe
cmp eax, 1
ja 0x100002ca6
lea rax, [rbp + 0x18]
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100002c2a
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
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 [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 0x100002ca6
lea rax, [rbp + 0x18]
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100002c2a
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x10]
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 0x100002c15
call fcn.100002ae4
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x100002e34
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, rdx
mov rbx, rcx
mov byte [rcx], dil
cmp byte [rdx], 0x23
lea r14d, [rdi + 1]
jne 0x100002feb
add rsi, r14
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rsi
mov r12, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
cmp r12b, 0x53
je 0x100002fe8
cmp r12b, 0x57
je 0x100002fd8
lea r8, [0x1000016f0]
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 0x100002eea
mov al, byte [r8 + rcx]
test al, al
je 0x100002eea
mov byte [rcx], al
add rcx, r14
sub rdx, r14
jne 0x100002ecc
test rdx, rdx
jne 0x100002ef2
sub rcx, r14
mov byte [rcx], dil
lea rcx, [rsp + 0x40]
mov r8, rsi
mov edx, 0x104
call fcn.100007ddc
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 0x100002ffa
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x100001609]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100002fcb
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x100002fc4
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100002fc0
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100002fb0
mov al, byte [r8 + rcx]
test al, al
je 0x100002fb0
mov byte [rcx], al
add rcx, r14
sub rdx, r14
jne 0x100002f92
test rdx, rdx
jne 0x100002fb8
sub rcx, r14
mov byte [rcx], dil
mov edi, r14d
jmp 0x100002fcb
mov eax, dword [rsp + 0x30]
cmp eax, r14d
cmove edi, r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100002ff6
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x100002ffa
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x10000300a
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.100007ddc
mov eax, r14d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.10000c380
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100003038
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
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 r12d, r12d
mov rsi, rdx
mov r13, rcx
mov edi, r12d
mov r15d, r12d
mov r14d, r12d
cmp dword [rcx + 0x7c], r12d
jle 0x100003200
mov eax, r12d
mov qword [rbp - 0x18], rax
mov ebx, dword [r13 + 0x80]
mov rcx, rsi
add rbx, rax
mov eax, dword [rbx + r13 + 0xbc]
lea rdx, [rax + r13 + 0x84]
call fcn.100002e34
test eax, eax
je 0x100003206
lea rdx, [rbp + 0x48]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x1000031cf
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x100003206
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x100003206
mov edx, dword [rbp + 0x48]
mov r8d, esi
mov rsi, qword [rbp + 0x50]
mov rcx, rsi
mov r9, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1000031c1
lea r9, [rbp + 0x60]
lea r8, [rbp - 0x10]
lea rdx, [0x100001724]
mov rcx, r12
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor r12d, r12d
test eax, eax
je 0x1000031c4
cmp dword [rbp + 0x60], r12d
je 0x1000031c4
mov rax, qword [rbp - 0x10]
lea rdx, [rbx + r13 + 0x94]
mov ecx, r12d
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
cmp r9d, dword [rdx - 0x10]
jae 0x100003154
or eax, 0xffffffff
jmp 0x100003169
jbe 0x10000315d
mov eax, 1
jmp 0x100003169
cmp r8d, dword [rdx - 0xc]
jb 0x10000314f
mov eax, r12d
seta al
mov dword [rbp + rcx - 0x28], eax
cmp r9d, dword [rdx - 4]
jae 0x100003178
or eax, 0xffffffff
jmp 0x10000318c
jbe 0x100003181
mov eax, 1
jmp 0x10000318c
cmp r8d, dword [rdx]
jb 0x100003173
mov eax, r12d
seta al
mov dword [rbp + rcx - 0x20], eax
add rcx, 4
add rdx, 0x18
cmp rcx, 8
jl 0x100003149
cmp dword [rbp - 0x28], r12d
jl 0x1000031aa
cmp dword [rbp - 0x20], r12d
jle 0x1000031c4
cmp dword [rbp - 0x24], r12d
jl 0x1000031b6
cmp dword [rbp - 0x1c], r12d
jle 0x1000031c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x100003206
xor r12d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1000031e7
cmp dword [rbx + r13 + 0x84], r12d
jne 0x100003206
cmp dword [rbx + r13 + 0x88], r12d
jne 0x100003206
mov rsi, qword [rbp + 0x50]
mov rax, qword [rbp - 0x18]
inc r14d
add rax, 0x3c
mov qword [rbp - 0x18], rax
cmp r14d, dword [r13 + 0x7c]
jl 0x100003078
mov r15d, 1
mov rax, qword [rbp + 0x58]
mov dword [rax], r14d
test rdi, rdi
je 0x10000321b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r15d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x100003458
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 0x1000034b1
cmp al, 6
jb 0x1000034b1
lea rcx, [0x100001728]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1000034b1
lea rdx, [0x100001748]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1000034b1
lea edx, [rsi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rax
mov rdx, rbx
mov rcx, rdi
mov dword [0x100010488], esi
call fcn.100003594
test eax, eax
je 0x100003563
call fcn.1000038a8
mov ebx, eax
call fcn.100003b1c
test ebx, ebx
je 0x100003563
cmp byte [0x10001141a], sil
jne 0x100003563
mov edi, dword [0x100010ebc]
test dil, 1
je 0x100003563
test dil, 2
jne 0x100003517
cmp dword [0x10001048c], esi
jne 0x100003517
movzx ecx, word [0x100010490]
mov ebx, dword [0x1000105a4]
call fcn.100002b98
cmp ebx, eax
je 0x100003563
test dil, 4
jne 0x100003548
lea r8, [0x100001609]
xor r9d, r9d
mov edx, 0x522
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x40
call fcn.100005420
cmp eax, 6
jne 0x100003563
cmp word [0x100010490], si
jne 0x10000355e
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100003563
call fcn.100002564
mov rcx, qword [0x100010458]
test rcx, rcx
je 0x100003575
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100010488]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1000038a8
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 0x1000038fc
cmp dword [0x100011404], edi
jne 0x1000038f3
call fcn.1000064a4
test eax, eax
jne 0x1000038ea
xor eax, eax
jmp 0x100003af5
cmp word [0x100011418], di
jne 0x1000038fc
call fcn.1000046dc
test eax, eax
je 0x1000038e3
call fcn.1000063e4
test eax, eax
je 0x1000038e3
call fcn.1000068cc
test eax, eax
je 0x1000038e3
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x100001610]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.100007ddc
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x100003966
lea rdx, [0x100001798]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100003966
lea rcx, [0x100010670]
xor edx, edx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100011404], edi
jne 0x1000039e1
cmp dword [0x100010ec0], edi
jne 0x1000039e1
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1000039c4
mov edx, 0x4f0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], InitCommonControls
call fcn.100005420
call fcn.100007924
mov dword [0x100010488], eax
jmp 0x1000038e3
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.100006eec
test eax, eax
je 0x1000038e3
lea rcx, [0x100010670]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1000039f9
mov edx, 0x4bc
jmp 0x10000399b
cmp dword [0x10001140c], edi
jne 0x100003a91
lea rax, [0x100010f00]
mov ecx, 0x28
mov dword [rax], 1
add rax, 0x20
dec rcx
jne 0x100003a11
test byte [0x100011418], 1
jne 0x100003a6e
test byte [0x100010ec4], 1
jne 0x100003a6e
mov eax, dword [0x10000f46c]
lea r8, [0x10000413c]
mov qword [rsp + 0x20], rdi
neg eax
sbb rcx, rcx
xor r9d, r9d
xor edx, edx
add rcx, 0x7d5
call fcn.100007c80
test rax, rax
jne 0x100003a77
mov dword [0x100010488], 0x8007042b
jmp 0x1000038e3
call fcn.100006254
test eax, eax
jmp 0x100003a5d
lea rcx, [0x100007a90]
call fcn.10000794c
test eax, eax
je 0x1000038e3
mov dword [0x100010488], edi
mov eax, dword [0x100011728]
test al, 0x40
jne 0x100003ab3
test al, al
js 0x100003ab3
movzx ecx, word [0x100010490]
call fcn.100002b98
mov dword [0x1000105a4], eax
jmp 0x100003ab9
mov dword [0x1000105a4], edi
mov eax, dword [0x100011404]
test eax, eax
jne 0x100003ade
cmp dword [0x100010ec0], edi
jne 0x100003ade
call fcn.10000480c
test eax, eax
je 0x1000038e3
mov eax, dword [0x100011404]
cmp word [0x100011418], di
jne 0x100003af0
test eax, eax
jne 0x100003af0
call fcn.100005008
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10000c380
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x100003b1c
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 0x100003b83
cmp dword [0x100011404], 0
jne 0x100003b6d
cmp dword [0x100010ec0], 0
jne 0x100003b6d
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 0x100003b44
mov eax, dword [0x100011400]
mov ebx, 1
test eax, eax
je 0x100003c22
cmp dword [0x100011404], 0
jne 0x100003c22
cmp dword [0x100010ec0], 0
jne 0x100003c22
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 0x100003be7
mov al, byte [r8 + rcx]
test al, al
je 0x100003be7
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x100003bc9
test rdx, rdx
jne 0x100003bef
sub rcx, rbx
test byte [0x100010ec4], 0x20
mov byte [rcx], 0
je 0x100003c05
lea rcx, [rsp + 0x40]
call fcn.100007e68
lea rcx, [0x1000016d8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.100002918
mov eax, dword [0x100011400]
cmp word [0x100010490], bx
je 0x100003c80
test eax, eax
je 0x100003c80
cmp byte [0x1000103f0], 0
je 0x100003c80
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 0x100003c80
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.10000c380
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret