joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003226c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140039624
nop
lea rax, [0x140031154]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140030c48
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x1400322f2
lea rcx, [rsp + 0x30]
call fcn.14005a450
nop
jmp 0x140032309
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x30]
call fcn.1400412a0
nop
add rsp, 0x58
ret
Function at 0x14004b2f4
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x140099b80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x14004b34e
cmp dword [rsp + 0x90], 0x7c
jge 0x14004b34e
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x1400987c0]
call fcn.14004b4ec
nop
lea rcx, [rsp + 0x50]
call fcn.14003ec90
nop
cmp qword [rsp + 0x30], 0
jne 0x14004b375
lea rdx, [0x14008c398]
lea rcx, [rsp + 0x50]
call fcn.140041af0
nop
jmp 0x14004b385
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140041af0
nop
cmp dword [rsp + 0xa0], 1
jne 0x14004b3a1
lea rdx, [0x14008c3a8]
lea rcx, [rsp + 0x50]
call fcn.140041af0
nop
movss xmm2, dword [0x140068e44]
movss xmm1, dword [0x14008f184]
lea rcx, [rsp + 0x48]
call fcn.14003fbd8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.140050850
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140023450
movzx eax, al
test eax, eax
je 0x14004b416
cmp dword [rsp + 0xa0], 0
jne 0x14004b416
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.140040ed4
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140063c70
add rsp, 0x88
ret

Function at 0x14004b438
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x140099b80]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14004b473
xor al, al
jmp 0x14004b4d4
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14004b4c7
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14004b4b4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14004b4d4
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14004b48e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140063c70
add rsp, 0x288
ret
Function at 0x14004e3b8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140099b80]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14004e3f5
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14004e3fc
mov al, 1
jmp 0x14004e553
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140055cc0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140055cc0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140055cfc
movzx eax, al
test eax, eax
je 0x14004e451
xor al, al
jmp 0x14004e553
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14004e4c1
cmp dword [rsp + 0x30], 1
je 0x14004e4cd
cmp dword [rsp + 0x30], 3
je 0x14004e541
jmp 0x14004e551
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14004e519
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14004e519
xor al, al
jmp 0x14004e553
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14004e533
mov dword [rsp + 0x34], 1
jmp 0x14004e53b
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x14004e553
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14004e553
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140063c70
add rsp, 0xa8
ret

Function at 0x1400517c4
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
lea rcx, [0x14009a914]
call fcn.140042094
movzx eax, al
test eax, eax
jne 0x140051839
lea rcx, [0x14008c868]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov dword [rsp + 0x20], 0x32
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14002a62c
mov rcx, rax
call fcn.14003d1e4
nop
lea rcx, [0x14008c870]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov dword [rsp + 0x24], 0x32
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.14002a62c
mov rcx, rax
call fcn.14003d1e4
nop
jmp 0x1400517c8
add rsp, 0x48
ret
Function at 0x1400565d8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140099b80]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140056667
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140056654
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
mov dword [0x14009a920], eax
mov eax, dword [rsp + 0x38]
jmp 0x140056678
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140056622
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x14009a920]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140063c70
add rsp, 0x178
ret

Function at 0x140056f98
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14002a72c
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x140029fd4]
call qword [sym.imp.USER32.dll_EnumWindows]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140056ff5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x140056ff5
cmp qword [rsp + 0x30], 0
je 0x140056ff5
mov rax, qword [rsp + 0x30]
jmp 0x140056ff7
xor eax, eax
add rsp, 0x48
ret
Function at 0x14005a174
Capabilities:
Set console window title

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x140099b80]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor ecx, ecx
call fcn.14006364c
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
nop
xor eax, eax
cmp eax, 1
je 0x14005a344
lea rdx, str.AbdiPasta_Fortnite_external___
lea rcx, [rsp + 0x68]
call fcn.14003ea6c
nop
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x88]
call fcn.14003ea6c
nop
mov dword [rsp + 0x30], 0
jmp 0x14005a1e3
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xa
jge 0x14005a23d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x88]
call fcn.14005822c
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
mov rcx, qword [rsp + 0x48]
div rcx
mov rax, rdx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140041fc4
mov dl, byte [rax]
lea rcx, [rsp + 0x68]
call fcn.14004320c
nop
jmp 0x14005a1d9
lea rcx, [rsp + 0x68]
call fcn.140050850
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0x50], rax
mov eax, 2
mov rcx, qword [rsp + 0x50]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.140063e50
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
call fcn.140050850
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14006387c
nop
lea rcx, [rsp + 0x88]
call fcn.140040ed4
nop
lea rcx, [rsp + 0x68]
call fcn.140040ed4
nop
jmp 0x14005a19d
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140063c70
add rsp, 0xb8
ret
Function at 0x140061ac8
Capabilities:
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xe0
lea rdx, [0x14004d410]
lea rcx, [rsp + 0x78]
call fcn.14002a088
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140052a18
nop
lea rcx, [rsp + 0x78]
call fcn.1400418c8
nop
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xc0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xa8], 0
lea rax, [0x14004d530]
mov qword [rsp + 0x98], rax
lea rax, [0x14008d008]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x90], 3
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x140061b9e
lea rdx, str._n_n_Medal
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002b33c
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, str.Medal
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14009ae00], rax
mov edx, 5
mov rcx, qword [0x14009ae00]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x14008cff8]
mov rcx, qword [0x14009ae00]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x14009ae00]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x14009ae00]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
add rsp, 0xe0
pop rdi
ret
Function at 0x1400629f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140062a15
xor eax, eax
jmp 0x140062bdc
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x140062a3e
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call 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]
jmp 0x140062bdc
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x140062ade
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400396e8
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
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, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140051c60
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140062bcc
mov rcx, qword [rsp + 0x70]
call fcn.14004fabc
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140062b7f
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140062b7d
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140062bdc
jmp 0x140062b04
cmp qword [rsp + 0x20], 0
jbe 0x140062bcc
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x140062be4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140062c1d
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x140062d0c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
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 qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140062cb4
cmp qword [rsp + 0x20], 0
jle 0x140062cb4
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140062c5d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
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, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140051c60
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x140062cfc
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140062cfc
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x14006450c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Hello____n
call fcn.1400012c0
xor eax, eax
lea r8, [0x140001270]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1400c2bd0]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400c7b04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x1400c7b08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x1400c7b08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400c7b08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x1400c7b04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400c7b08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x1400c7b08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]