joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140048360]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
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 0x1400083fe
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 0x1400083fe
call fcn.140005950
mov ebx, eax
jmp 0x140008526
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000841f
call fcn.140005950
jmp 0x140008515
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 0x140008442
call fcn.140005950
jmp 0x140008515
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 0x140008464
mov ebx, 0x8007000e
jmp 0x140008517
mov ecx, eax
test eax, eax
je 0x14000849c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140008492
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000849c
lea rcx, [rsp + 0x70]
call fcn.140005830
jmp 0x1400084a6
mov ecx, 0x80070216
call fcn.140005b60
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400084b9
cmp qword [rsp + 0x70], 0
jne 0x1400084c8
mov ebx, 0x8007000e
jmp 0x140008517
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 0x1400084f2
call fcn.140005950
jmp 0x140008515
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 + 0x48]
call fcn.140008190
mov ebx, eax
test rdi, rdi
je 0x140008526
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000853d
lea rcx, [rsp + 0x70]
call fcn.140006ba0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400198a0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008e90
Capabilities:
Set registry value

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

Function at 0x140008ed0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140008ee8
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 0x140008ef4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140008ef0
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 0x140009960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
call fcn.140012060
xor edi, edi
lea r8d, [rdi + 5]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140009a79
mov r8d, 0xf0
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15d, edi
test rax, rax
je 0x1400099d7
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x60], rbp
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140009a5b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140009a5b
mov rdx, r15
mov rcx, rax
call fcn.140010c70
mov r9, r12
mov r8, r13
mov rsi, rax
mov rax, qword [rsp + 0x80]
mov rcx, r14
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x140009a3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rbp
je 0x140009a63
test rsi, rsi
je 0x140009a63
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140009a63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test ebx, ebx
je 0x140009a79
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140011010
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
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 0x140011038
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
lea r8, [0x14000e2e0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140011079
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x140011500
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14004f0d9], 0
mov esi, edx
mov rdi, rcx
je 0x140011526
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 0x140011568
cmp eax, 0x80010106
jne 0x1400115a4
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14001156c
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.14000ec50
cmp al, 1
jne 0x140011594
mov edx, esi
mov rcx, rdi
call fcn.1400108b0
mov ebx, eax
jmp 0x140011598
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x1400115a4
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 0x140012240
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, str.EM47D2CDD9E9E7
xor ecx, ecx
lea edx, [rbx + 1]
mov esi, r9d
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140012292
lea ecx, [rbx + 1]
call fcn.14000e110
test al, al
je 0x140012292
lea rcx, [0x14004f210]
mov edx, esi
call fcn.140011500
mov ebx, eax
test rdi, rdi
je 0x1400122a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140013a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x1b0
mov rax, qword [0x140048360]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, qword [0x14004f2b0]
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 0x140013bef
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140013bef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140013bef
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x1a0], r12
mov qword [rsp + 0x198], r13
mov qword [rsp + 0x190], r15
mov r13d, 0x403
mov r12d, 0x1234
xor r15d, r15d
mov qword [rsp + 0x1e0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x140013ba9
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x140013b29
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x70], rax
call fcn.1400145e0
mov rax, qword [rsp + 0x70]
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 + 0x70]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x78]
cmove edi, r15d
cmp rcx, rax
je 0x140013b9e
call fcn.140019e64
jmp 0x140013b9e
cmp r12w, ax
jne 0x140013b9e
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x70], rax
call fcn.1400145e0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rcx
cmp rcx, rax
je 0x140013b76
call fcn.140019e64
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x30]
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 0x140013ab0
mov rbp, qword [rsp + 0x1e0]
mov r12, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x1a8]
mov r13, qword [rsp + 0x198]
mov r15, qword [rsp + 0x190]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400198a0
add rsp, 0x1b0
pop r14
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x140013bd3

Function at 0x1400146f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xe8
call fcn.140014790
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.1400198d0
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], ecx
lea rcx, str.igfxHK.exe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140014780
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe8
ret
Function at 0x140014790
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
mov eax, 0x10f0
call fcn.14001a520
sub rsp, rax
mov rax, qword [0x140048360]
xor rax, rsp
mov qword [rsp + 0x10e0], rax
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400198d0
lea rcx, [rsp + 0xe2]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov dword [rsp + 0x70], 0x68
mov word [rsp + 0xe0], bx
call fcn.1400198d0
lea rcx, [rsp + 0x8e2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x8e0], bx
call fcn.1400198d0
lea rcx, [rsp + 0x8e0]
mov edx, 0x800
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x8e0]
lea rcx, [rsp + 0xe0]
mov edx, 0x400
call fcn.140018068
lea r8, [0x140031ad8]
lea rcx, [rsp + 0xe0]
mov edx, 0x400
call fcn.140018068
lea r8, str.igfxTray.exe
lea rcx, [rsp + 0xe0]
mov edx, 0x400
call fcn.140018068
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400148be
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10e0]
xor rcx, rsp
call fcn.1400198a0
add rsp, 0x10f0
pop rbx
ret
Function at 0x140016860
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400169f1
mov rcx, qword [rcx + 0x68]
mov qword [rsp + 0x50], rdi
xor edi, edi
mov dword [rsp + 0x40], edi
test rcx, rcx
je 0x1400169f7
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [rax + 0x470]
test eax, eax
js 0x1400169ec
cmp dword [rsp + 0x40], edi
je 0x1400169ec
mov rcx, qword [rbx + 0x68]
mov dword [rsp + 0x48], edi
test rcx, rcx
je 0x140016a02
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x4f8]
test eax, eax
js 0x1400169ec
cmp dword [rsp + 0x48], 1
jne 0x1400169ec
lea r9, str.GlobalSmartFrameOperation
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov byte [0x14004f285], 1
mov byte [0x1400482b0], dil
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r9, str.LocalExitSmartFrameThread
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x14004f288], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14004f290], rax
mov qword [rbx + 0x80], rdi
mov rax, qword [0x14004f288]
mov rcx, qword [0x14004f290]
test rax, rax
je 0x14001698f
test rcx, rcx
je 0x14001698f
lea rax, [rbx + 0x88]
lea r8, [0x140016680]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
mov qword [rbx + 0x80], rax
call fcn.140016560
mov rcx, qword [rbx + 8]
mov edx, 0xc9
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, str.SmartFrame_monitor_started_successfully
jmp 0x1400169da
mov byte [0x1400482b0], 1
test rax, rax
je 0x1400169b2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14004f290]
mov qword [0x14004f288], rdi
test rcx, rcx
je 0x1400169c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004f290], rdi
mov rcx, qword [rbx + 8]
mov edx, 0xc9
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, str.SmartFrame_failed_to_start
or r8, 0xffffffffffffffff
mov edx, 0x181
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov ecx, 0x80004003
call fcn.140016fb0
int3

Function at 0x140017ad4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001793c
Function at 0x140005214
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000525e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000525e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000525e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000525e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000525e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005260
xor al, al
add rsp, 0x28
ret
Function at 0x140001596
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140002340
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rax, qword [0x140018330]
mov edx, 0x100
mov r9, rax
lea r8, section..data
lea rax, section..rdata
mov rcx, rax
call fcn.140001430
mov rax, qword [0x140018330]
mov rdx, rax
lea rax, section..data
mov rcx, rax
call fcn.140001f7b
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000160d
mov eax, 1
jmp 0x1400016f4
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017d4
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000165a
lea rax, str.Failed_to_allocate_mem_n
mov rcx, rax
call fcn.1400014a7
jmp 0x1400016bb
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call fcn.140001ef6
test al, al
jne 0x140001686
lea rax, str.Failed_to_load_pe_into_mem_n
mov rcx, rax
call fcn.1400014a7
jmp 0x1400016bb
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x70]
mov edx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017a2
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x20]
call rax
mov eax, 0
jmp 0x1400016f4
cmp qword [rbp - 8], 0
je 0x1400016ce
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017a2
cmp qword [rbp - 0x10], 0
je 0x1400016ef
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x140002530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008fb0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008fb0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400025a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001d094]
mov rbx, rcx
test esi, esi
jle 0x1400026d0
mov rax, qword [0x14001d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400025eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400025d0
mov rcx, rbx
call fcn.140003060
mov rdi, rax
test rax, rax
je 0x1400026f2
mov rax, qword [0x14001d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400031a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400026d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000266e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002680
add dword [0x14001d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000266e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002530
nop dword [rax]
xor esi, esi
jmp 0x1400025f8
mov rax, qword [0x14001d098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002530
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002530
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002ca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001d0e0]
test rbx, rbx
je 0x140002d04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002cfb
test eax, eax
jne 0x140002cfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002ce0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140019a10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003080
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003088
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003080
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400030dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400030d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003080
add rax, 0x28
cmp rax, r9
jne 0x1400030c0
xor eax, eax
ret

Function at 0x1400030e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140019a10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400030ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003108
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400030ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400031a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140019a10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400031bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400031c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400017d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
test rcx, rcx
mov edx, 0x80070057
cmove eax, edx
lea rbx, str.Install
test rbx, rbx
cmove eax, edx
test eax, eax
js 0x1400018a9
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x140001865
test eax, eax
jne 0x140001870
and dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x14000186c
mov ebx, 1
jmp 0x140001897
test eax, eax
je 0x140001880
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001897
cmp dword [rsp + 0x40], 4
mov ebx, 1
jne 0x140001897
xor eax, eax
cmp dword [rsp + 0x50], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400018a7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400018b8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
test rcx, rcx
je 0x140001958
mov word [rcx], si
mov rdx, rcx
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001905
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000194d
cmp eax, 0x104
jb 0x140001913
mov ebx, 0x8007000e
jmp 0x140001951
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001927
mov ebx, 0x80004005
jmp 0x140001951
lea rdx, str.VSTOLoader.dll
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140001920
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001954
mov ebx, 0x8000ffff
test ebx, ebx
jns 0x140001954
mov word [rdi], si
mov eax, ebx
jmp 0x14000195d
mov eax, 0x80004003
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret