joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016ea
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov rdx, qword [rbp + 0x28]
mov qword [rdx], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
test rax, rax
jne 0x140001777
lea rax, str._n_t____VirtualAllocEx_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov eax, 0
jmp 0x14000182c
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x1400017ad
mov rax, qword [rbp - 8]
cmp qword [rbp + 0x20], rax
je 0x1400017d3
lea rax, str._n_t____WriteProcessMemory_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov eax, 0
jmp 0x14000182c
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
mov r8, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0xc]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call rax
test eax, eax
jne 0x140001827
lea rax, str._n_t____VirtualProtectEx_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov eax, 0
jmp 0x14000182c
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x140001832
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
sub rsp, 0x688
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x620], rcx
mov qword [rbp + 0x628], rdx
mov qword [rbp + 0x630], r8
lea rdx, [rbp + 0x3b0]
mov eax, 0
mov ecx, 0x47
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x3b0], 0x238
mov qword [rbp + 0x5f0], 0
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x5f0], rax
cmp qword [rbp + 0x5f0], 0xffffffffffffffff
jne 0x1400018c8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.1400014a4
mov eax, 0
jmp 0x140001a74
lea rdx, [rbp + 0x3b0]
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140001a3b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Process32First_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.1400014a4
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001a74
lea rax, [rbp + 0x3b0]
add rax, 0x2c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
mov dword [rbp + 0x5ec], eax
mov dword [rbp + 0x5fc], 0
cmp dword [rbp + 0x5ec], 0x207
ja 0x1400019ac
jmp 0x140001986
mov eax, dword [rbp + 0x5fc]
add rax, 0x10
movzx eax, word [rbp + rax*2 + 0x3bc]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll_tolower]
call rax
mov edx, eax
mov eax, dword [rbp + 0x5fc]
mov word [rbp + rax*2 - 0x60], dx
add dword [rbp + 0x5fc], 1
mov eax, dword [rbp + 0x5fc]
cmp eax, dword [rbp + 0x5ec]
jb 0x140001952
mov eax, dword [rbp + 0x5fc]
lea edx, [rax + 1]
mov dword [rbp + 0x5fc], edx
mov eax, eax
mov word [rbp + rax*2 - 0x60], 0
mov rdx, qword [rbp + 0x620]
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001a3b
mov edx, dword [rbp + 0x3b8]
mov rax, qword [rbp + 0x628]
mov dword [rax], edx
mov eax, dword [rbp + 0x3b8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov rdx, qword [rbp + 0x630]
mov qword [rdx], rax
mov rax, qword [rbp + 0x630]
mov rax, qword [rax]
test rax, rax
jne 0x140001a5b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____OpenProcess_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.1400014a4
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001a74
lea rdx, [rbp + 0x3b0]
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000191d
jmp 0x140001a5c
nop
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x688
pop rdi
pop rbp
ret
Function at 0x140001a7e
Capabilities:
Enumerate threads

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
pxor xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x24], xmm0
mov dword [rbp - 0x30], 0x1c
mov edx, 0
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x140001afa
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str._n_t____CreateToolhelp32Snapszot_Failed_With_Error:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov eax, 0
jmp 0x140001c04
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x140001bd4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str._n_t____Thread32First_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001c04
mov eax, dword [rbp - 0x24]
cmp dword [rbp + 0x10], eax
jne 0x140001bd4
mov edx, dword [rbp - 0x28]
mov rax, qword [rbp + 0x18]
mov dword [rax], edx
mov eax, dword [rbp - 0x28]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov rdx, qword [rbp + 0x20]
mov qword [rdx], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
jne 0x140001bee
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str._n_t____OpenThread_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001c04
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140001b56
jmp 0x140001bef
nop
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x140001c0a
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x490], rcx
mov qword [rbp + 0x498], rdx
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x9a
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x30], 0x10001f
mov rax, qword [rbp + 0x490]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SuspendThread]
call rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x490]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
test eax, eax
jne 0x140001c98
lea rax, str._t____GetThreadContext_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov eax, 0
jmp 0x140001d17
mov rax, qword [rbp + 0x498]
mov qword [rbp + 0x98], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x490]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
test eax, eax
jne 0x140001ce7
lea rax, str._t____SetThreadContext_Failed_With_Error_:__d__n
mov rcx, rax
call fcn.140001450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
call fcn.1400014f8
mov eax, 0
jmp 0x140001d17
mov rax, qword [rbp + 0x490]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp + 0x490]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 1
add rsp, 0x4f8
pop rdi
pop rbp
ret

Function at 0x140003363
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov dword [rbp - 4], 0
jmp 0x140003412
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
mov r8d, eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
movzx edx, ax
mov eax, dword [rbp + 0x30]
mov ecx, eax
sar edx, cl
mov eax, edx
and ax, 0x1111
xor eax, r8d
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov word [rax + rdx*2], cx
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
movzx eax, ax
and eax, 0x1111
mov edx, eax
mov eax, dword [rbp + 0x28]
mov ecx, eax
shl edx, cl
mov ecx, edx
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
mov edx, eax
mov eax, ecx
or eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov word [rax + rdx*2], cx
add dword [rbp - 4], 1
cmp dword [rbp - 4], 7
jle 0x140003387
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140003ea0
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.14000c3f0
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.14000c3f0
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 0x140003f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140012094]
mov rbx, rcx
test esi, esi
jle 0x140004040
mov rax, qword [0x140012098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140003f5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003fe5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003f40
mov rcx, rbx
call fcn.140004980
mov rdi, rax
test rax, rax
je 0x140004062
mov rax, qword [0x140012098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140004ac0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140012098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004047
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140003fde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003ff0
add dword [0x140012094], 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 [0x140012098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003ea0
nop dword [rax]
xor esi, esi
jmp 0x140003f68
mov rax, qword [0x140012098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003ea0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003ea0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400045f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400120e0]
test rbx, rbx
je 0x14000464c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140004643
test eax, eax
jne 0x140004643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140004628
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 0x140004980
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140004a00
Capabilities:
Parse pe header

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

Function at 0x140004ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ec40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140004adf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004ae8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1401a43f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140189640
sub rsp, rax
mov rax, qword [0x140289cf0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401a6ce8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a443f
mov rax, rbp
jmp 0x1401a4547
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x290800]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401b6414
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x290800]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a4543
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a4543
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401b6414
test rax, rax
js 0x1401a4543
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a4543
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a4535
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a4535
cmp byte [rcx], 0xd
jne 0x1401a451b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a452a
cmp byte [rcx + 1], 0xa
jne 0x1401a452a
inc rcx
jmp 0x1401a452a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x28a830]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a44fd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a4547
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401889e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401a5cbc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401a5aac
Function at 0x1400012c4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub rsp, 0x138
lea rax, [rsp + 0x100]
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x60], xmm9
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rax - 0x80], xmm11
movaps xmmword [rax - 0x70], xmm12
movaps xmmword [rax - 0x50], xmm14
movaps xmmword [rax - 0x60], xmm13
movaps xmmword [rax - 0x40], xmm15
mov qword [rax - 8], rbp
mov rbp, rsp
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], r15
xor r10, r10
xor r12, r12
xor r13, r13
xor r14, r14
mov r15, r9
mov qword [rbp + 0xd8], rcx
mov qword [rbp + 0xe0], rdx
mov rbx, qword gs:[0x188]
mov qword [r8 + 0x20], rsp
mov rsi, qword [rbx + 0x90]
mov qword [rbp + 0xd0], rsi
cli
mov qword [rbx + 0x28], r8
lea r9, [r8 + 0x50]
mov qword [rbx + 0x38], r9
test dword [0x140647620], 1
jne 0x14000138a
mov rdi, qword gs:[8]
mov qword [rdi + 4], r8
jmp 0x140001395
mov eax, dword [0x14064729c]
mov qword gs:[eax], r8
mov rcx, 0x6000
sub r9, rcx
mov qword gs:[0x1a8], r8
mov qword [rbx + 0x30], r9
lea rsp, [r8 - 0x190]
mov rdi, rsp
mov ecx, 0x32
rep movsq qword [rdi], qword [rsi]
xor edi, edi
lea rbp, [rsi - 0x110]
ldmxcsr dword [rbp - 0x54]
xor rsi, rsi
mov r9, qword [rbp + 0xd8]
mov r11, qword [rbp + 0xf8]
mov rbp, r9
mov rax, qword [r15 + 0x10]
mov rsp, qword [r15 + 8]
mov rcx, qword [r15]
movss xmm0, dword [r15 + 0x18]
movss xmm1, dword [r15 + 0x20]
movss xmm2, dword [r15 + 0x28]
movss xmm3, dword [r15 + 0x30]
pxor xmm4, xmm4
pxor xmm5, xmm5
swapgs
sysretq
Function at 0x140001d10
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, r9
mov r12b, r8b
mov r13, rdx
mov r14, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x140001d56
mov eax, 0xc000007b
jmp 0x140001e43
lea rsi, [rax + 0x108]
movzx eax, word [rax + 6]
mov rbx, rsi
lea rcx, [rax + rax*4]
lea rax, [rsi + rcx*8]
cmp rsi, rax
jae 0x140001e3e
lea rdx, [0x140020370]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x140020380]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x140020390]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x140001df4
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x140001df4
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x140001e25
mov r9d, dword [rbx + 0xc]
lea rcx, [rbp - 0x50]
mov eax, dword [rbx + 8]
add r9, r14
and qword [rbp - 0x50], 0
mov r8, r15
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001e74
mov edx, eax
test eax, eax
jns 0x140001e64
movzx eax, word [rdi + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rax, [rsi + rcx*8]
cmp rbx, rax
jb 0x140001d75
mov eax, 0xc0000225
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp + 0x50]
mov qword [rcx], rax
mov eax, edx
jmp 0x140001e43
Function at 0x140001f7c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
lea r9, [rax + 0x18]
mov r14, rdx
mov qword [rax + 0x20], rbx
mov r15, rcx
mov dword [rax + 0x18], ebx
lea rdx, [rax + 0x20]
lea edi, [rbx + 0xb]
mov ecx, edi
lea r8d, [rbx + 4]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [rsp + 0x60], ebx
je 0x14000205f
mov edx, dword [rsp + 0x60]
mov ecx, edi
add rdx, rdx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14000205f
mov r8d, dword [rsp + 0x60]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov rcx, qword [rsp + 0x68]
test eax, eax
js 0x140002057
lea rsi, [rcx + 8]
mov edi, ebx
cmp dword [rcx], ebx
jbe 0x140002057
mov ebp, ebx
movzx edx, word [rsi + rbp + 0x26]
mov rcx, r15
add rdx, 0x28
add rdx, rbp
add rdx, rsi
call fcn.1400026c8
test al, al
jne 0x140002039
mov rcx, qword [rsp + 0x68]
inc rdi
add rbp, 0x128
mov eax, dword [rcx]
cmp rdi, rax
jb 0x140002006
jmp 0x140002057
imul rcx, rdi, 0x128
mov bl, 1
mov rax, qword [rcx + rsi + 0x10]
mov qword [r14], rax
mov eax, dword [rcx + rsi + 0x18]
mov rcx, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002074
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140002127
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002127
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140002127
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x1400020ce
mov ecx, dword [rax + rbx + 0x88]
jmp 0x1400020d2
mov ecx, dword [rax + rbx + 0x78]
mov ebp, ecx
mov esi, edi
mov r12d, dword [rbx + rbp + 0x24]
mov r13d, dword [rbx + rbp + 0x20]
add r12, rbx
mov r14d, dword [rbx + rbp + 0x1c]
add r13, rbx
add r14, rbx
cmp dword [rbx + rbp + 0x14], edi
jbe 0x140002122
mov eax, esi
mov ecx, dword [r13 + rax*4]
movzx r15d, word [r12 + rax*2]
add rcx, rbx
call fcn.1400026c8
test al, al
jne 0x14000211b
mov rdx, qword [rsp + 0x58]
inc esi
cmp esi, dword [rbx + rbp + 0x14]
jb 0x1400020f4
jmp 0x140002122
mov edi, dword [r14 + r15*4]
add rdi, rbx
mov rax, rdi
jmp 0x140002129
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret