joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180043470
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18006a3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1800435fe
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800435f3
mov eax, dword [rsp + 0x30]
cmp rax, 0x10
jb 0x1800435d4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x3c], eax
jne 0x1800435d4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x38], eax
je 0x1800435d4
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180043541
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0x80
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x1800922c8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x18004353f
jmp 0x1800435f3
jmp 0x1800435ab
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x1800435ab
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
shl eax, 1
mov eax, eax
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1800922c8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18004358c
jmp 0x1800435f3
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x38]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800434c4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800462e0
add rsp, 0x68
ret
Function at 0x180043620
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.180043470
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800436e2
mov dword [rsp + 0x20], 0
jmp 0x18004367f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800436e2
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800436e0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800432c0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180043675
add rsp, 0x38
ret

Function at 0x1800436f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18004377f
mov dword [rsp + 0x20], 0
jmp 0x180043718
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180043768
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180043766
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004370e
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1800922c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x38
ret
Function at 0x180043790
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x60]
imul rax, rax, 0x38
mov rcx, qword [0x1800948e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800437fa
mov rax, qword [rsp + 0x30]
sub rax, 5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180043823
mov eax, 0xa
jmp 0x180043954
cmp dword [rsp + 0x68], 0
je 0x18004388e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x30]
add rax, 5
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18004388c
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x48]
mov byte [rax + 1], 0xf9
jmp 0x1800438da
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800438be
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1800438da
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x68]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x68]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x20], al
xor eax, eax
add rsp, 0x58
ret
Function at 0x180044150
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x90], 0x40000000
jbe 0x1800441b1
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
cmp qword [rsp + 0x30], rax
jae 0x1800441b1
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
cmp qword [rsp + 0x28], rax
jbe 0x1800441d9
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 0xfff
mov qword [rsp + 0x28], rax
mov rax, qword [0x1800948d0]
mov qword [rsp + 0x20], rax
jmp 0x180044204
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18004423e
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x20], rax
jb 0x180044224
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x20], rax
jb 0x180044226
jmp 0x1800441f7
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x18004423c
mov rax, qword [rsp + 0x20]
jmp 0x1800443b0
jmp 0x1800441f7
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jb 0x1800442a7
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.180043f50
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18004427a
jmp 0x1800442a7
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800442a5
jmp 0x1800442a7
jmp 0x18004424b
cmp qword [rsp + 0x20], 0
jne 0x180044318
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x40], rax
ja 0x180044318
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.180044030
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800442eb
jmp 0x180044318
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180044316
jmp 0x180044318
jmp 0x1800442bc
cmp qword [rsp + 0x20], 0
je 0x1800443ab
mov rax, qword [rsp + 0x20]
add rax, 0x40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
add rax, 0x40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
cmp rax, 0xfc0
jbe 0x18004434b
mov rax, qword [rsp + 0x20]
mov rcx, qword [0x1800948d0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov qword [0x1800948d0], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x180044b50
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x180044ba9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x180044ba9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x180044ba9
xor eax, eax
jmp 0x180044bf0
mov dword [rsp], 1
jmp 0x180044bba
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180044beb
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x180044be9
xor eax, eax
jmp 0x180044bf0
jmp 0x180044bb2
mov eax, 1
add rsp, 0x18
ret
Function at 0x1800461d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18004620a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18004620f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180046258
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18004b910]
cmp byte [rcx + rax], 0
je 0x180046258
dec r8
sub rdx, 1
jne 0x18004623e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140003000
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
cmp dword [0x140014470], 0
jne 0x140003097
mov dword [0x140014470], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003097
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000308c
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x34], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret

Function at 0x1400030a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140012060]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
call fcn.140003000
xor edi, edi
lea ecx, [rdi + 2]
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003142
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140003139
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000593c
test eax, eax
je 0x140003124
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140003100
jmp 0x140003139
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x260]
and al, 0x60
add al, byte [rax]
add byte [rax + 0x33], cl
int3
call fcn.140005710
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140003170
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create process on windows
Create thread
Get common file path
Inject thread

Disassembly:
push rsi
sub rsp, 0x590
mov rax, qword [0x140012060]
xor rax, rsp
mov qword [rsp + 0x560], rax
cmp ecx, 4
jge 0x140003198
mov rcx, qword [rdx + 0x18]
mov qword [rsp + 0x5a0], rbx
mov qword [rsp + 0x5b0], rbp
mov rbp, qword [rdx + 8]
mov qword [rsp + 0x580], r13
mov r13, qword [rdx + 0x10]
call fcn.140005ae4
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400031dd
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
invalid
test eax, eax
jne 0x1400031e5
or eax, 0xffffffff
jmp 0x1400036d4
mov qword [rsp + 0x5b8], rdi
mov qword [rsp + 0x588], r12
mov qword [rsp + 0x578], r14
mov rbp, qword [rsp + 0x5b0]
mov rbx, qword [rsp + 0x5a0]
mov r13, qword [rsp + 0x580]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140005710
add rsp, 0x590
pop rsi
ret
Function at 0x140003c50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x140012060]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xd8], 0
jne 0x140003c8e
mov qword [rsp + 0x30], 0x10000
jmp 0x140003ca1
mov rax, qword [rsp + 0xd8]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400060d0
jmp 0x140003cc7
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x30], rax
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x140003cef
jmp 0x140003e07
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xfff
jne 0x140003d07
jmp 0x140003e07
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
add rax, rcx
cmp rax, qword [rsp + 0x30]
jae 0x140003d20
jmp 0x140003e07
cmp dword [rsp + 0x58], 0x1000
jne 0x140003d45
mov eax, dword [rsp + 0x5c]
and eax, 0xff
cmp eax, 1
je 0x140003d45
mov eax, dword [rsp + 0x5c]
and eax, 0x100
test eax, eax
je 0x140003d4a
jmp 0x140003cb5
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140003cb5
movzx eax, word [rsp + 0x70]
cmp eax, 0x5a4d
jne 0x140003da0
mov eax, dword [rsp + 0xac]
cmp rax, qword [rsp + 0x50]
ja 0x140003da0
mov eax, dword [rsp + 0xac]
cmp rax, 0x40
jae 0x140003da5
jmp 0x140003cb5
movsxd rax, dword [rsp + 0xac]
mov rdx, qword [rsp + 0x30]
add rdx, rax
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140003cb5
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0x4550
jne 0x140003cb5
mov rax, qword [rsp + 0x30]
jmp 0x140003e09
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140005710
add rsp, 0xc8
ret
Function at 0x140003e30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x140012060]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov dword [rsp + 0x170], 0
mov qword [rsp + 0x198], 0
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x188], rax
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x1c0]
call fcn.1400060d0
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x1c0]
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140003f0a
mov r8d, 0x108
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400060d0
movsxd rax, dword [rsp + 0x1fc]
mov rdx, qword [rsp + 0x188]
add rdx, rax
mov qword [rsp + 0x20], 0
mov r9d, 0x108
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140003f5a
jmp 0x140003eca
movzx eax, word [rsp + 0x58]
cmp eax, 0x20b
je 0x140003f76
mov ecx, 9
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003eca
mov dword [rsp + 0x120], 0
mov dword [rsp + 0x124], 0
mov dword [rsp + 0x154], 0
movzx ecx, word [rsp + 0x54]
mov bh, 0x4c
and al, 0x54
Function at 0x140005120
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov eax, dword [rsp + 0xc8]
or eax, 4
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0xf8], 0
jne 0x140005163
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0xf8]
test eax, eax
jne 0x1400051d9
xor eax, eax
jmp 0x140005284
mov dword [rsp + 0x80], 0
cmp qword [rsp + 0xf0], 0
je 0x140005214
mov ecx, dword [rsp + 0x80]
mov rax, qword [rsp + 0xf0]
mov qword [rsp + rcx*8 + 0x58], rax
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
mov r8d, dword [rsp + 0x80]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call fcn.140003710
test eax, eax
jne 0x140005243
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x140005284
cmp qword [rsp + 0xe8], 0
je 0x140005266
mov r8d, 0x18
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xe8]
call fcn.140005d80
mov eax, dword [rsp + 0xc8]
and eax, 4
test eax, eax
Function at 0x140006717
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140012060]
jne 0x14000572a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005726
repz ret
ror rcx, 0x10
jmp 0x140006670
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140013590]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140013688]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400066f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140013590]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140006717
mov rax, qword [rsp + 0x88]
mov qword [0x140013688], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140013628], rax
mov rax, qword [0x140013688]
mov qword [0x140013500], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140013610], rax
mov dword [0x1400134f0], 0xc0000409
mov dword [0x1400134f4], 1
mov rax, qword [0x140012060]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140012068]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140013588], eax
mov ecx, 1
call fcn.1400093e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000e568]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140013588], 0
jne 0x14000679e
mov ecx, 1
call fcn.1400093e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000850c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140009ecc
nop
cmp dword [0x140013b08], 1
je 0x1400084b8
mov dword [0x140013b04], 1
mov byte [0x140013b00], r12b
test ebx, ebx
jne 0x1400084a4
mov rcx, qword [0x1400156b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140008491
mov rcx, qword [0x1400156a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140008430
call fcn.1400073ac
cmp qword [rdi], rax
jne 0x140008430
jmp 0x140008416
cmp rdi, rsi
jb 0x140008491
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400073ac
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400156b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400156a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000846f
cmp r13, rax
je 0x14000848f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140008416
lea rdx, [0x14000e358]
lea rcx, [0x14000e340]
call fcn.140008260
lea rdx, [0x14000e368]
lea rcx, [0x14000e360]
call fcn.140008260
nop
test r12d, r12d
je 0x1400084c7
mov ecx, 8
call fcn.140009dcc
test r12d, r12d
jne 0x1400084f2
mov dword [0x140013b08], 1
lea ecx, [r12 + 8]
call fcn.140009dcc
mov ecx, r15d
call fcn.1400081f4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140008380

Function at 0x140008518
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140008380