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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x14000cb33
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000ca7a
mov rdx, qword [rdi + 0x58]
mov r8d, dword [rdx]
test r8d, r8d
jle 0x14000ca7a
dec r8d
mov dword [rdx], r8d
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x14000cba4
cmp qword [rdi + 0x80], 0
je 0x14000cb37
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
je 0x14000cb3e
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x14000cb6a
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x14000cb83
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x14000cb23
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x14000cba2
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x14000cb9d
xor esi, esi
jmp 0x14000cba4
mov esi, 0xffffffff
jmp 0x14000cba4
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14000caa6
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x14000cba4
cmp eax, 3
jne 0x14000cba2
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000d050
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14000d08b
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000d092
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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]
xor esi, esi
jmp 0x14000d189
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d0e5
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14000d0e5
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x14000d0f6
jmp 0x14000d186
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14000d186
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14000d122
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop dword [rax]
cmp r14, 0x1000
jb 0x14000d161
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14000d130
jmp 0x14000d186
test r14, r14
je 0x14000d183
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x14000d186
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14000d1a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000d1d6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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 [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000d223
test rsi, rsi
jle 0x14000d223
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x14000d223
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x14000d22b
jmp 0x14000d24b
mov r14, rsi
test r14, r14
jle 0x14000d24b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14000d24b
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000d260
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [rcx + 0x38]
lea r13, [rcx + 0x70]
cmp qword [rax], r13
mov rax, qword [rcx + 0x68]
sete bpl
cmp r9d, 1
sete r15b
test rax, rax
sete r12b
cmp qword [rcx + 0x80], 0
je 0x14000d39f
mov ebx, r9d
mov r14, r8
mov rdi, rcx
test rax, rax
je 0x14000d34a
cmp byte [rdi + 0x71], 0
je 0x14000d34a
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000d39f
mov rcx, qword [rdi + 0x68]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x40]
cmp eax, 3
je 0x14000d346
cmp eax, 1
lea rcx, [rsp + 0x40]
je 0x14000d313
test eax, eax
jne 0x14000d39f
mov byte [rdi + 0x71], 0
mov rax, qword [rsp + 0x38]
sub rax, rcx
je 0x14000d33e
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x30], rax
jne 0x14000d39f
cmp byte [rdi + 0x71], 0
jne 0x14000d39f
jmp 0x14000d34a
mov byte [rdi + 0x71], 0
and r15b, r12b
and r15b, bpl
movzx eax, r15b
sub r14, rax
mov rcx, qword [rdi + 0x80]
cmp ebx, 1
jne 0x14000d379
test r14, r14
jne 0x14000d379
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
jne 0x14000d39f
jmp 0x14000d3c1
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x14000d39f
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
je 0x14000d3c1
mov qword [rsi], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi + 0x18]
cmp qword [rax], r13
jne 0x14000d3e9
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rax, qword [rdi + 0x74]
mov rcx, qword [rsp + 0x40]
mov qword [rsi], rcx
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
jmp 0x14000d3ad
Function at 0x14000d410
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rax, qword [r8 + 8]
add rax, qword [r8]
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x80], 0
je 0x14000d4ea
mov rbx, r8
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14000d4d4
cmp byte [rdi + 0x71], 0
je 0x14000d4d4
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000d4ea
mov rcx, qword [rdi + 0x68]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
lea r14, [rsp + 0x40]
mov r8, r14
call qword [rax + 0x40]
cmp eax, 3
je 0x14000d4d0
cmp eax, 1
je 0x14000d4a1
test eax, eax
jne 0x14000d4ea
mov byte [rdi + 0x71], 0
mov r15, qword [rsp + 0x38]
sub r15, r14
je 0x14000d4c8
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x14000d4ea
cmp byte [rdi + 0x71], 0
jne 0x14000d4ea
jmp 0x14000d4d4
mov byte [rdi + 0x71], 0
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fsetpos]
test eax, eax
je 0x14000d507
mov qword [rsi], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x74], rax
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x70]
cmp qword [rcx], rdx
jne 0x14000d53f
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov rax, qword [rdi + 0x74]
mov rcx, qword [rsp + 0x30]
mov qword [rsi], rcx
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
jmp 0x14000d4f8
Function at 0x140012c00
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 0x10], 0xfffffffffffffffe
lea r8, [rdx + 0xfff]
and r8, 0xfffffffffffff000
mov qword [rbp - 0x18], rcx
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x140012ca9
mov rdi, qword [rbp - 0x18]
mov rax, qword [rdi + 0x20]
cmp rax, 0x10
jb 0x140012c8a
mov rcx, qword [rdi + 8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140012c85
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140012d0c
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140032198
mov qword [rdi + 0x18], 0
mov qword [rdi + 0x20], 0xf
mov byte [rdi + 8], 0
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x38], 2
lea rax, [rbp - 0x48]
mov qword [rbp - 0x30], rax
lea rax, str._panic__Allocation_failed:_:x_n
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 0x21
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x38]
call fcn.140019260
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
jmp 0x140012d12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400137e0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x2178
call fcn.140032300
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x20e0], xmm6
mov qword [rbp + 0x20d8], 0xfffffffffffffffe
mov rsi, rdx
mov r8d, ecx
xor ebx, ebx
mov ecx, 0x410
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140013a3e
mov rdi, rax
lea rdx, [rbp - 0x60]
lea r9, [rbp + 0x20d4]
mov rcx, rax
mov r8d, 0x2000
call sub.KERNEL32.dll_K32EnumProcessModules
xor ebx, ebx
test eax, eax
je 0x140013a3e
cmp dword [rbp + 0x20d4], 8
jb 0x140013a3e
xor r13d, r13d
lea rbx, [rbp + 0x1fa0]
xorps xmm6, xmm6
lea r14, [rbp + 0x20b0]
mov qword [rbp + 0x20a8], rsi
jmp 0x1400138ae
add r15, 0x28
mov rdx, r15
mov rcx, rax
call fcn.140032198
test r12b, r12b
jne 0x140013a3c
inc r13
mov eax, dword [rbp + 0x20d4]
shr eax, 3
cmp r13, rax
jae 0x140013a38
mov rdx, qword [rbp + r13*8 - 0x60]
mov rcx, rdi
mov r8, rbx
mov r9d, 0x104
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x140013899
movaps xmmword [rbp + 0x20c0], xmm6
movaps xmmword [rbp + 0x20b0], xmm6
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
js 0x140013a5b
mov r15, rax
cmp rax, 0xf
ja 0x140013920
mov qword [rbp + 0x20c0], r15
mov qword [rbp + 0x20c8], 0xf
mov rcx, r14
mov rdx, rbx
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add r15, rbp
add r15, 0x20b0
jmp 0x14001399a
mov rsi, rdi
mov rdi, r14
mov r14, r15
or r14, 0xf
cmp r14, 0x17
mov eax, 0x16
cmovb r14, rax
cmp r14, 0xfff
jb 0x14001395b
lea rcx, [r14 + 0x28]
call fcn.140032154
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x140013967
lea rcx, [r14 + 1]
call fcn.140032154
mov r12, rax
mov qword [rbp + 0x20b0], r12
mov qword [rbp + 0x20c0], r15
mov qword [rbp + 0x20c8], r14
mov rcx, r12
mov rdx, rbx
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add r15, r12
mov r14, rdi
mov rdi, rsi
mov rsi, qword [rbp + 0x20a8]
mov byte [r15], 0
mov r8, qword [rsi + 0x10]
mov rax, qword [rbp + 0x20c0]
mov r15, qword [rbp + 0x20c8]
sub rax, r8
jae 0x1400139d0
xor r12d, r12d
cmp r15, 0x10
jb 0x140013890
jmp 0x140013a05
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1400139dd
mov rdx, qword [rsi]
mov rcx, r14
cmp r15, 0x10
jb 0x1400139ed
mov rcx, qword [rbp + 0x20b0]
add rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
sete r12b
cmp r15, 0x10
jb 0x140013890
mov rcx, qword [rbp + 0x20b0]
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x14001388b
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jb 0x140013881
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor ebx, ebx
jmp 0x140013a3e
mov bl, 1
mov eax, ebx
movaps xmm6, xmmword [rbp + 0x20e0]
add rsp, 0x2178
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14000bcd0
int3
Function at 0x140015340
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
movaps xmmword [rsp + 0x1d0], xmm6
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov r12d, 0x10000
lea r8, [rsp + 0x30]
mov edx, 0x10000
mov r9d, 0x30
call sub.KERNEL32.dll_VirtualQueryEx
test rax, rax
je 0x140015560
xor r14d, r14d
lea r15, [rsp + 0x60]
lea rbp, [rsp + 0x30]
jmp 0x1400153e0
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x30]
mov r13, qword [rsp + 0x48]
add r13, rax
mov r9d, 0x30
mov rcx, rbx
mov rdx, r13
mov r8, rbp
call sub.KERNEL32.dll_VirtualQueryEx
mov r12, r13
test rax, rax
je 0x14001552b
mov r13, qword [rsp + 0x48]
mov eax, r13d
not eax
test eax, 0xfff
je 0x14001552b
mov rax, qword [rsp + 0x30]
lea rcx, [rax + r13]
cmp rcx, r12
jb 0x14001552b
cmp dword [rsp + 0x50], 0x1000
jne 0x1400153bd
mov ecx, dword [rsp + 0x54]
cmp cl, 1
je 0x1400153bd
and ecx, 0x100
jne 0x1400153bd
test r12, r12
je 0x1400153a9
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
mov r9d, 0x30
mov rcx, rbx
mov rdx, r12
mov r8, r15
call sub.KERNEL32.dll_VirtualQueryEx
test rax, rax
je 0x1400153b3
mov qword [rsp + 0x20], 0
mov r9d, 0x40
mov rcx, rbx
mov rdx, r12
lea r8, [rsp + 0x98]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1400153b3
movzx eax, word [rsp + 0x98]
cmp eax, 0x5a4d
jne 0x1400154dd
mov eax, dword [rsp + 0xd4]
cmp rax, 0x40
jb 0x1400154dd
cmp qword [rsp + 0x78], rax
jb 0x1400154dd
movsxd rdx, eax
add rdx, r12
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov rcx, rbx
lea r8, [rsp + 0xd8]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1400153b3
cmp dword [rsp + 0xd8], 0x4550
je 0x1400154e7
mov ecx, 0xc1
jmp 0x1400153ae
movzx eax, word [rsp + 0xee]
test eax, 0x2000
cmove r14, r12
add r12, 0x10000
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov r9d, 0x30
mov rcx, rbx
mov rdx, r12
mov r8, rbp
call sub.KERNEL32.dll_VirtualQueryEx
test rax, rax
jne 0x1400153e0
test r14, r14
je 0x140015560
lea rdx, [rsp + 0xd8]
mov rcx, rbx
call sub.KERNEL32.dll_IsWow64Process
test eax, eax
je 0x14001556a
mov r8d, dword [rsp + 0xd8]
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov rdx, r14
mov r9, rsi
call fcn.140015590
jmp 0x14001556c
mov ecx, 0x10dd
call sub.KERNEL32.dll_SetLastError
xor eax, eax
movaps xmm6, xmmword [rsp + 0x1d0]
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140016290
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
test rdx, rdx
je 0x140016357
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov r9d, 0x30
call sub.KERNEL32.dll_VirtualQueryEx
test rax, rax
je 0x140016361
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x68]
mov r9d, 0x40
mov rcx, rbx
mov rdx, rdi
call sub.KERNEL32.dll_ReadProcessMemory
xor ebp, ebp
test eax, eax
je 0x140016363
movzx eax, word [rsp + 0x68]
cmp eax, 0x5a4d
jne 0x140016350
mov eax, dword [rsp + 0xa4]
cmp rax, 0x40
jb 0x140016350
cmp qword [rsp + 0x48], rax
jb 0x140016350
cdqe
add rdi, rax
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x140016363
mov ebp, 1
cmp dword [rsi], 0x4550
je 0x140016363
mov ecx, 0xc1
jmp 0x14001635c
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
xor ebp, ebp
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400164f0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f8
mov ebx, r9d
mov rsi, r8
mov r12, rdx
mov rdi, rcx
lea r8d, [rbx + 0x1c8]
mov dword [rsp + 0x20], 4
xor r14d, r14d
xor edx, edx
mov r9d, 0x1000
call sub.KERNEL32.dll_VirtualAllocEx
test rax, rax
je 0x140016768
mov r15, rax
mov qword [rsp + 0x28], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xb2], xmm0
movups xmmword [rsp + 0xc2], xmm0
movups xmmword [rsp + 0xd2], xmm0
movups xmmword [rsp + 0xdc], xmm0
mov word [rsp + 0xb0], 0x5a4d
mov dword [rsp + 0xec], 0x40
lea rbp, [rsp + 0x28]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0xb0]
mov r9d, 0x40
mov rcx, rdi
mov rdx, rax
call sub.KERNEL32.dll_WriteProcessMemory
xor r14d, r14d
test eax, eax
je 0x140016768
cmp qword [rsp + 0x28], 0x40
jne 0x140016768
lea r13, [r15 + 0x40]
lea rcx, [rsp + 0xf4]
xor r14d, r14d
mov r8d, 0x104
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0xf0], 0x4550
mov dword [rsp + 0x104], 0x200000f0
mov word [rsp + 0xf6], 1
mov word [rsp + 0x108], 0x20b
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0xf0]
mov r9d, 0x108
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x140016768
cmp qword [rsp + 0x28], 0x108
jne 0x140016768
lea rdx, [r15 + 0x148]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movabs rax, 0x72756f7465642e
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0x170
lea r13d, [rbx + 0x58]
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x48]
mov r9d, 0x28
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x140016768
cmp qword [rsp + 0x28], 0x28
jne 0x140016768
lea rdx, [r15 + 0x170]
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movabs rax, 0x72744400000040
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x40
mov dword [rsp + 0x7c], r13d
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x70]
mov r9d, 0x40
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x140016768
cmp qword [rsp + 0x28], 0x40
jne 0x140016768
lea rdx, [r15 + 0x1b0]
lea eax, [rbx + 0x18]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x30]
mov r9d, 0x18
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x140016768
cmp qword [rsp + 0x28], 0x18
jne 0x140016768
mov ebx, ebx
add r15, 0x1c8
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r15
mov r8, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
setne al
cmp qword [rsp + 0x28], rbx
sete cl
and cl, al
movzx r14d, cl
mov eax, r14d
add rsp, 0x1f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400179a0
Capabilities:
Resume thread
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xe0]
mov r11, qword [rsp + 0xd8]
mov r10, qword [rsp + 0xd0]
mov ebp, dword [rsp + 0xc8]
mov eax, dword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
test rbx, rbx
lea rsi, [0x1400339e0]
cmovne rsi, rbx
test r14, r14
jne 0x140017a09
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
lea r14, [rsp + 0x50]
mov ebx, ebp
or ebx, 4
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call rsi
test eax, eax
je 0x140017a89
mov rdi, qword [rsp + 0xf8]
mov ebx, dword [rsp + 0xf0]
mov rcx, qword [r14]
mov rdx, rdi
mov r8d, ebx
call fcn.140015340
test eax, eax
jne 0x140017a66
mov ecx, dword [r14 + 0x10]
mov edx, ebx
mov r8, rdi
mov r9, rsi
call fcn.140016ae0
test eax, eax
je 0x140017a8d
test bpl, 4
jne 0x140017a75
mov rcx, qword [r14 + 8]
call sub.KERNEL32.dll_ResumeThread
mov esi, 1
lea rax, [rsp + 0x50]
cmp r14, rax
mov r14, rax
jne 0x140017aad
jmp 0x140017a9c
xor esi, esi
jmp 0x140017aad
mov rcx, qword [r14]
mov edx, 0xffffffff
call sub.KERNEL32.dll_TerminateProcess
xor esi, esi
mov rcx, qword [r14]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [r14 + 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14001a350
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov r9, r8
mov rsi, rdx
mov edx, 1
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
jae 0x14001a3db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rax]
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x58], rax
lea rax, str.cannot_write_to_file
mov qword [rbp], rax
mov qword [rbp + 8], 0x14
lea rcx, [rbp - 0x38]
mov r8, rbp
lea r9, [rbp - 0x60]
call fcn.1400185e0
mov byte [rbp - 0x10], 1
cmp byte [rbp - 0x10], 0
jne 0x14001a3e6
lea rax, vtable.std::exception.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
add rsp, 0x98
pop rsi
pop rbp
ret
lea rsi, [rbp - 0x60]
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.14001b8c0
lea rdx, [0x14003fc38]
mov rcx, rsi
call sub.VCRUNTIME140.dll__CxxThrowException
int3