joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000de30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov ebp, edx
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea rsi, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.1400101d0
mov rcx, rsi
call fcn.14000d350
test eax, eax
je 0x14000dea5
xor edi, edi
lea rsi, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.1400101d0
lea rdx, str..status
mov rcx, rbx
mov r8, rsi
call fcn.14000d450
test eax, eax
jne 0x14000dec3
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140019600
mov eax, edi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.14000e380
test eax, eax
je 0x14000dea5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000dea5
mov rbx, rax
lea rsi, [rsp + 0x250]
mov rcx, rsi
mov r8d, ebp
call fcn.14000df70
mov rcx, rsi
call fcn.140017470
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
cmp dword [rsp + 0x3c], edi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000dea5

Function at 0x14000dff0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0x102
test edx, edx
je 0x14000e100
mov r15d, edx
mov rbx, rcx
xor ebp, ebp
lea r12, [rsp + 0x54]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
lea r13, [rsp + 0x28]
nop dword [rax + rax]
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x14000e0a0
mov rdi, rax
mov dword [rsp + 0x28], 0x238
mov rcx, rax
mov rdx, r13
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000e0c0
nop dword [rax]
mov rcx, rbx
mov rdx, r12
call fcn.140015998
test eax, eax
je 0x14000e0d0
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000e070
mov esi, 0x490
jmp 0x14000e0d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x490
jne 0x14000e0e3
jmp 0x14000e0fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000e0d2
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x490
je 0x14000e0fe
mov ecx, 0x3e8
call r14
add ebp, 1
cmp ebp, r15d
jne 0x14000e040
mov esi, 0x102
jmp 0x14000e100
xor esi, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019600
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000e1a0
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.1400101d0
mov rcx, rdi
call fcn.140017708
cmp rax, 0x104
ja 0x14000e21d
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.140017bd0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140019600
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000e2b0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14000e324
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000e35a
lea rdx, [rsp + 0x54]
lea rsi, [0x14003a1cc]
mov r8d, 0x105
mov rcx, rsi
call fcn.140017bd0
mov word [0x14003a3d4], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140019600
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e2e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.140014bc4
cmp esi, 2
mov ecx, 9
cmove ecx, esi
mov dword [rax], ecx
xor esi, esi
jmp 0x14000e308
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14000e369
xor esi, esi
jmp 0x14000e308
call fcn.140014bc4
mov dword [rax], 2
xor esi, esi
jmp 0x14000e308

Function at 0x140013f4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014084
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400140eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400140eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400140eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400140eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400140eb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400140eb
cmp dword [rcx + 0xf8], 0
je 0x1400140eb
mov ecx, ebx
call fcn.140013fd0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140014218
cmp dword [rbp + 0x20], 0
je 0x140014138
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001402c
int3
Function at 0x140016084
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400160a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014c04
or eax, 0xffffffff
jmp 0x1400160a6
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000173c
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x14000a0f4]
xor r14d, r14d
mov word [rbp + 0x43], 0x500
lea ebx, [r14 + 2]
mov dword [rbp + 0x3f], r14d
mov dword [rbp + 0x27], r14d
cmp eax, ebx
jne 0x1400018dc
lea rcx, [rbp + 0x27]
call fcn.14000163c
test eax, eax
jne 0x1400018c3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x2f]
lea edx, [rbx + 6]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400018dc
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x2b]
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 0x1400018b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400018b4
mov edx, dword [rbp + 0x2b]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400018b4
mov r9d, dword [rbp + 0x2b]
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x2b]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400018ab
lea rax, [rbp + 0x37]
lea rcx, [rbp + 0x3f]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov r8d, 0x20
mov dl, bl
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400018ab
mov esi, r14d
cmp dword [rdi], r14d
jbe 0x1400018a1
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]
test eax, eax
jne 0x140001898
add esi, ebx
cmp esi, dword [rdi]
jb 0x140001878
jmp 0x1400018a1
mov dword [0x14000a0f4], ebx
mov dword [rbp + 0x27], ebx
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x27]
jmp 0x1400018dc
mov ecx, dword [0x14000a0f4]
mov eax, dword [rbp + 0x27]
mov ebx, 1
test eax, eax
cmovne ecx, ebx
mov dword [0x14000a0f4], ecx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008340
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 0x140001ff4
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
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 0x14000204b
and dword [rsp + 0x28], eax
xor r9d, r9d
mov edx, 0x4f5
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
call fcn.140004fd8
xor eax, eax
jmp 0x1400020ce
lea r8, [rsp + 0x3c]
lea rdx, [0x1400011b8]
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 0x1400020b3
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140002037
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1400020c9
mov edx, 0x4f7
jmp 0x1400020a4
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008340
add rsp, 0x50
pop rbx
ret
Function at 0x140002580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
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 0x140002609
lea r8, [0x140001200]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.140007b48
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 0x140002609
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.140008340
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x140002634
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 0x14000273b
cmp eax, 1
je 0x1400026cb
add eax, 0xfffffffe
cmp eax, 1
ja 0x140002742
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 0x1400026c6
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 0x140002742
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 0x1400026c6
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 0x1400026b1
call fcn.140002580
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x140002758
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x1400027ae
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f0
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], FDICopy
call fcn.140004fd8
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008340
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x140002904
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov rbx, rcx
mov byte [rcx], dil
cmp byte [r8], 0x23
lea r12d, [rdi + 1]
jne 0x140002abc
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 0x140002ab9
cmp r14b, 0x57
je 0x140002aa9
lea r8, [0x140001210]
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 0x1400029bb
mov al, byte [r8 + rcx]
test al, al
je 0x1400029bb
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x14000299d
test rdx, rdx
jne 0x1400029c3
sub rcx, r12
mov byte [rcx], dil
lea rcx, [rsp + 0x40]
mov r8, rsi
mov edx, 0x104
call fcn.140007b48
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002acb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140001129]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002a9c
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140002a95
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x140002a91
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002a81
mov al, byte [r8 + rcx]
test al, al
je 0x140002a81
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002a63
test rdx, rdx
jne 0x140002a89
sub rcx, r12
mov byte [rcx], dil
mov edi, r12d
jmp 0x140002a9c
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002ac7
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x140002acb
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x140002adb
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140007b48
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008340
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002b08
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 0x140002cd9
mov eax, r14d
mov qword [rbp - 0x18], rax
mov edi, dword [r15 + 0x80]
lea r8, [r15 + 0x84]
mov rcx, rsi
add rdi, rax
mov eax, dword [rdi + r15 + 0xbc]
add r8, rax
call fcn.140002904
test eax, eax
je 0x140002cdf
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x140002ca8
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140002cdf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x140002cdf
mov edx, dword [rbp + 0x58]
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 0x140002c9a
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x10]
lea rdx, [0x140001244]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor r14d, r14d
test eax, eax
je 0x140002c9d
cmp dword [rbp + 0x48], r14d
je 0x140002c9d
mov rax, qword [rbp - 0x10]
lea rcx, [r15 + 0x94]
mov edx, r14d
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
add rcx, rdi
cmp r9d, dword [rcx - 0x10]
jae 0x140002c2d
or eax, 0xffffffff
jmp 0x140002c42
jbe 0x140002c36
mov eax, 1
jmp 0x140002c42
cmp r8d, dword [rcx - 0xc]
jb 0x140002c28
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x28], eax
cmp r9d, dword [rcx - 4]
jae 0x140002c51
or eax, 0xffffffff
jmp 0x140002c65
jbe 0x140002c5a
mov eax, 1
jmp 0x140002c65
cmp r8d, dword [rcx]
jb 0x140002c4c
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x20], eax
add rdx, 4
add rcx, 0x18
cmp rdx, 8
jl 0x140002c22
cmp dword [rbp - 0x28], r14d
jl 0x140002c83
cmp dword [rbp - 0x20], r14d
jle 0x140002c9d
cmp dword [rbp - 0x24], r14d
jl 0x140002c8f
cmp dword [rbp - 0x1c], r14d
jle 0x140002c9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140002cdf
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140002cc0
cmp dword [rdi + r15 + 0x84], r14d
jne 0x140002cdf
cmp dword [rdi + r15 + 0x88], r14d
jne 0x140002cdf
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 0x140002b4d
mov r13d, 1
mov rax, qword [rbp + 0x60]
mov dword [rax], r12d
test rbx, rbx
je 0x140002cf4
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 0x140002f54
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 rdi, r8
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor ebp, ebp
test eax, eax
js 0x140002fbe
cmp al, 6
jb 0x140002fbe
lea rcx, [0x140001248]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002fbe
lea rdx, [0x140001268]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140002fbe
mov rcx, rax
call qword [0x14000d528]
lea edx, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rbx
mov rdx, rdi
mov rcx, rsi
mov dword [0x14000be5c], ebp
call fcn.1400030a4
test eax, eax
je 0x140003070
call fcn.1400033a8
mov ebx, eax
call fcn.140003644
test ebx, ebx
je 0x140003070
cmp byte [0x14000abda], bpl
jne 0x140003070
mov edi, dword [0x14000be3c]
test dil, 1
je 0x140003070
test dil, 2
jne 0x140003024
cmp dword [0x14000be58], ebp
jne 0x140003024
movzx ecx, word [0x14000be54]
mov ebx, dword [0x14000be50]
call fcn.140002634
cmp ebx, eax
je 0x140003070
test dil, 4
jne 0x140003055
lea r8, [0x140001129]
xor r9d, r9d
mov edx, 0x522
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x40
call fcn.140004fd8
cmp eax, 6
jne 0x140003070
cmp word [0x14000be54], bp
jne 0x14000306b
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140003070
call fcn.140001ff4
mov rcx, qword [0x14000a820]
test rcx, rcx
je 0x140003082
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x14000be5c]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003644
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000b5e8]
jmp 0x1400036ab
cmp dword [0x14000abc4], 0
jne 0x140003695
cmp dword [0x14000be40], 0
jne 0x140003695
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 0x14000366c
mov eax, dword [0x14000abc0]
mov ebx, 1
test eax, eax
je 0x14000374a
cmp dword [0x14000abc4], 0
jne 0x14000374a
cmp dword [0x14000be40], 0
jne 0x14000374a
lea r8, [0x14000b5f0]
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000370f
mov al, byte [r8 + rcx]
test al, al
je 0x14000370f
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400036f1
test rdx, rdx
jne 0x140003717
sub rcx, rbx
test byte [0x14000be44], 0x20
mov byte [rcx], 0
je 0x14000372d
lea rcx, [rsp + 0x40]
call fcn.140007bd8
lea rcx, [0x1400011f8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.1400023bc
mov eax, dword [0x14000abc0]
cmp word [0x14000be54], bx
je 0x1400037a8
test eax, eax
je 0x1400037a8
cmp byte [0x14000a7c0], 0
je 0x1400037a8
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 0x1400037a8
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000a7c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x14000abc0], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008340
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret