joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400053e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005414
cmp word [rcx], 0x5a4d
jne 0x140005414
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005414
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005414
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005320
test eax, eax
jne 0x140005430
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005390
test rax, rax
je 0x140005425
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005be2
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005ae0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005a80
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005f44
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140565f58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140565f54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005f92
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140005f8a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006079
inc ebx
add rax, 0x28
jmp 0x140005f6a
mov rcx, r12
call fcn.140006771
mov rbp, rax
test rax, rax
jne 0x140005fb1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005ee0
movsxd rbx, ebx
mov rax, qword [0x140565f58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000681f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140565f58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006013
mov rax, qword [0x140565f58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005ee0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006073
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006073
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 [0x140565f58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006073
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005ee0
inc dword [0x140565f54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400064a0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140565fc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140565fa0]
test rbx, rbx
je 0x1400064ec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x1400064e6
test eax, eax
jne 0x1400064e6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400064be
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400066a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400066c3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400066c3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400066c4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400066fe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400066f5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006700
inc r8d
add rax, 0x28
jmp 0x1400066dc
xor eax, eax
ret

Function at 0x140006771
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140561a90]
mov r8, rcx
mov rcx, r9
call fcn.1400066a0
test eax, eax
je 0x14000679d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400066c4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800122b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x870
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x850], rax
movsxd rsi, r9d
mov ebx, r8d
movsxd r14, ecx
mov r15, rdx
mov rdi, rdx
test r9d, r9d
js 0x18001232a
imul eax, esi, 0x3e8
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], r14
xor r8d, r8d
mov dword [rsp + 0x40], 1
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x18001232a
or eax, 0xffffffff
jmp 0x180012381
mov qword [rsp + 0x868], rbp
test ebx, ebx
jle 0x180012374
test rsi, rsi
jns 0x180012352
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1800123a0
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jg 0x180012336
sub rdi, r15
mov eax, edi
mov rbp, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.18002d840
add rsp, 0x870
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
mov r8d, 0x1a
dec ecx
movsxd rdx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rdx*8]
lea rdx, str.Read_operation_timed_out__n
mov ecx, dword [rcx + 0x500]
call qword [0x18002f2f0]
or eax, 0xffffffff
jmp 0x180012379

Function at 0x1800123e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
mov ebx, r8d
test r8d, r8d
jle 0x180012432
movsxd rbp, ecx
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x180012449
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jg 0x180012410
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
or eax, 0xffffffff
jmp 0x180012434
Function at 0x1800282c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rdx, ecx
mov rax, qword [rax]
mov rbx, qword [rax + rdx*8]
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rdx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rdx*8]
mov eax, dword [rbx + 0x4e0]
mov dword [rcx + 0x7f8], eax
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
add rbx, 0x7c8
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rcx*8]
mov qword [rcx + 0x7f0], rbx
call qword [0x18002f7b8]
mov rbx, rax
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
lea r8, [0x180028130]
dec ecx
mov rdi, rax
movsxd rdx, ecx
xor eax, eax
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
mov r9, qword [rcx + rdx*8]
xor edx, edx
add r9, 0x7f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x180045d10]
mov rbx, qword [rsp + 0x40]
dec ecx
movsxd rdx, ecx
mov rcx, qword [rdi]
mov rdx, qword [rcx + rdx*8]
mov qword [rdx + 0x7e8], rax
add rsp, 0x30
pop rdi
ret

Function at 0x1800283b0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rcx*8]
cmp qword [rcx + 0x7e8], 0xffffffffffffffff
je 0x180028499
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rdx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rdx*8]
mov edx, 0x12c
mov rcx, qword [rcx + 0x7e8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180028454
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rcx*8]
mov rcx, qword [rcx + 0x7e8]
call qword [sym.imp.KERNEL32.dll_CancelSynchronousIo]
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rdx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rdx*8]
xor edx, edx
mov rcx, qword [rcx + 0x7e8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rdx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rdx*8]
mov dword [rcx + 0x7f8], 0xffffffff
call qword [0x18002f7b8]
mov ecx, dword [0x180045d10]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax]
mov rcx, qword [rax + rcx*8]
mov qword [rcx + 0x7e8], 0xffffffffffffffff
add rsp, 0x28
ret
Function at 0x14000a790
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140029078]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000a863
cmp byte [rcx + 0x71], 0
je 0x14000a863
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000a85f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a824
sub eax, 1
je 0x14000a828
cmp eax, 2
jne 0x14000a85f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001cae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000a856
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000a85f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000a80c
xor al, al
jmp 0x14000a80c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001cae0
add rsp, 0x60
pop rbx
ret
Function at 0x14000e8a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140029078]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14000e8cd
xor eax, eax
jmp 0x14000ea36
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000e90d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000e90d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14000ea2e
cmp qword [rdi + 0x80], 0
je 0x14000ea29
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14000e947
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14000e972
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000ea2e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000e9e1
sub eax, 1
je 0x14000e9e1
cmp eax, 2
jne 0x14000ea29
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000ea2e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000ea0f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14000ea29
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000ea2e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001cae0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140012620
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140012642
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140012658
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400126a2
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140012711
mov rcx, rbp
call fcn.14000b210
cmp rbx, 0xfff
jbe 0x1400126f1
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14001272a
cmp rbx, rax
ja 0x1400126c0
test rdi, rdi
je 0x140012711
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140012714
Function at 0x140012730
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140012758
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400127cc
test rax, rax
jle 0x1400127ac
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400127cc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400127cc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x14001beb0
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x140029078]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
call fcn.14001bf70
mov dword [rbx], eax
test eax, eax
je 0x14001bf44
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 2
mov rcx, rax
mov qword [rbx + 8], rax
mov r8d, 0x7f8
lea rdx, [rsp + 0x50]
call sub.KERNEL32.dll_K32EnumProcessModulesEx
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x38]
mov rcx, qword [rbx + 8]
mov r9d, 0x18
mov qword [rbx + 0x18], rdx
call sub.KERNEL32.dll_K32GetModuleInformation
mov eax, dword [rsp + 0x40]
mov rcx, rbx
mov edx, dword [rbx]
mov qword [rbx + 0x20], rax
call fcn.14001c440
mov qword [rbx + 0x10], rax
mov al, 1
jmp 0x14001bf46
xor al, al
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14001cae0
add rsp, 0x860
pop rbx
ret
Function at 0x14001bf70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140029078]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi - 1]
mov r8, rdx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x14001c09b
mov r8, qword [rsp + 0x48]
cmp rbx, r8
ja 0x14001c00c
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov word [rax + rbx*2], si
jmp 0x14001c06b
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14001c053
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x38]
cmp rdi, 8
cmovae r9, qword [rsp + 0x38]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001c048
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14001c06b
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001bd50
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14001c11a
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdi, qword [rsp + 0x38]
lea rax, [rbp - 0x74]
sub rdi, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x14001c103
add rax, 2
test ecx, ecx
jne 0x14001c0f0
test edx, edx
je 0x14001c116
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
jmp 0x14001c0cf
mov esi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14001c169
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c164
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c164
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001c71c
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001cae0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001c440
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140029078]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x14001c4c4
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14001c4c4
cmp byte [rsp + 0x30], sil
jne 0x14001c4f0
test rbx, rbx
jne 0x14001c470
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001cae0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14001c4cb

Function at 0x14001d104
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d14e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d14e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d14e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d14e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d14e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d150
xor al, al
add rsp, 0x28
ret