joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Spoof parent pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x70], 0
je 0x140001038
cmp qword [rsp + 0x78], 0
jne 0x140001042
mov eax, 0x57
jmp 0x140001156
mov rcx, qword [rsp + 0x78]
lea rax, str.VEDesk
mov qword [rcx + 0x10], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
cmp qword [rsp + 0x48], 0
ja 0x140001081
mov dword [rsp + 0x50], 0x18
jmp 0x14000112d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400010b0
mov dword [rsp + 0x50], 8
jmp 0x14000112d
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1400010da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
jmp 0x14000112d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, qword [rsp + 0x70]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x14000111f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
jmp 0x14000112d
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x68], rax
cmp dword [rsp + 0x50], 0
je 0x140001152
cmp qword [rsp + 0x40], 0
je 0x140001152
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x140001ee0
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rdx, [0x14000b9a8]
lea rcx, [0x14000f9b0]
call fcn.140005bb0
xor r8d, r8d
lea rdx, [0x14000b9b8]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
mov r8, qword [rsp + 0x30]
lea rdx, str._ArtHost__main_IN__cmd_s
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov r11, qword [rsp + 0x50]
mov qword [0x14000f770], r11
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x20], 2
jl 0x140002002
lea rdx, str._VEDesk
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x140001faa
call fcn.140005130
mov dword [rsp + 0x38], eax
jmp 0x140002000
lea rdx, str._AppInfo
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x140001fcf
call fcn.140001a80
mov dword [rsp + 0x38], eax
jmp 0x140002000
xor r8d, r8d
lea rdx, [0x14000ba38]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
lea rdx, str._ArtHost__Invalid_parameter
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov dword [rsp + 0x38], 0x57
jmp 0x140002033
xor r8d, r8d
lea rdx, [0x14000ba90]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
lea rdx, str._ArtHost__Invalid_parameter_count
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov dword [rsp + 0x38], 0x57
cmp qword [rsp + 0x28], 0
je 0x140002046
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r8d, r8d
lea rdx, str..ArtHost.cpp
lea rcx, [0x14000f9b0]
call fcn.1400058d0
mov r8d, dword [rsp + 0x38]
lea rdx, str._ArtHost__main_OUT__err_d
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x140006310
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140006bb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x58], 0
je 0x140006bef
cmp dword [rsp + 0x60], 0
je 0x140006bef
cmp qword [rsp + 0x68], 0
je 0x140006bef
cmp qword [rsp + 0x70], 0
jne 0x140006c1f
xor r8d, r8d
lea rdx, [0x14000a5a8]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
lea rdx, str._Start__invalid_parameter
lea rcx, [0x14000f9b0]
call fcn.140005a30
xor eax, eax
jmp 0x140006d71
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xa0], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0xa8], r11
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0xa8], 0
jne 0x140006c98
xor r8d, r8d
lea rdx, [0x14000a610]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._Start___CreateEvent_Failed_0x_X_n
lea rcx, [0x14000f9b0]
call fcn.140005a30
xor eax, eax
jmp 0x140006d71
mov rcx, qword [rsp + 0x50]
add rcx, 0xd8
mov r8, qword [rsp + 0x58]
mov edx, 0x104
call fcn.140002080
mov r11, qword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
mov dword [r11 + 0x2e0], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0xc0], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0xc8], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov qword [rcx + 0xd0], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140006a00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR90.dll__beginthreadex]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
jne 0x140006d6c
xor r8d, r8d
lea rdx, [0x14000a688]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._Start___Creating_UserModeIPCServerThreadFunc_Thread_is_Failed_0x_X_n
lea rcx, [0x14000f9b0]
call fcn.140005a30
xor eax, eax
jmp 0x140006d71
mov eax, 1
add rsp, 0x48
ret
Function at 0x140006e10
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
add rcx, 0xd8
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x1388
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x2e0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x2000
mov r9d, 0xff
mov r8d, 6
mov edx, 0x40000003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r11, rax
mov rax, qword [rsp + 0x70]
mov qword [rax], r11
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
jne 0x140006ef6
xor r8d, r8d
lea rdx, [0x14000a750]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._CreateAndConnect__Creating_named_pipe_failed__X_
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov r11, qword [rsp + 0x70]
mov qword [r11], 0
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r11, qword [rsp + 0x60]
mov dword [r11 + 0xa0], 1
xor eax, eax
jmp 0x140007045
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 1
jne 0x140006f86
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x70]
mov qword [r11], 0
xor r8d, r8d
lea rdx, [0x14000a7e8]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._CreateAndConnect__Connecting_named_pipe_failed__X_
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r11, qword [rsp + 0x60]
mov dword [r11 + 0xa0], 1
xor eax, eax
jmp 0x140007045
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xe8
je 0x140006fbd
cmp dword [rsp + 0x48], 0x217
je 0x140006fbd
cmp dword [rsp + 0x48], 0x3e5
je 0x140006fb0
jmp 0x140006fdb
mov dword [rsp + 0x40], 1
jmp 0x140007041
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, 1
jne 0x140006fdb
mov dword [rsp + 0x40], 1
jmp 0x140007041
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x70]
mov qword [r11], 0
xor r8d, r8d
lea rdx, [0x14000a898]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
lea rdx, str._CreateAndConnect__Connecting_named_pipe_failed
lea rcx, [0x14000f9b0]
call fcn.140005a30
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r11, qword [rsp + 0x60]
mov dword [r11 + 0xa0], 1
xor eax, eax
jmp 0x140007045
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140007470
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
lea rdi, [rsp + 0x3c]
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
cmp dword [0x1400100a8], 0
jne 0x1400074bf
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x58]
mov dword [0x1400100a8], edx
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0xb4], 0
jne 0x140007509
mov ecx, dword [0x1400100a8]
shl ecx, 1
mov rax, qword [rsp + 0x80]
mov dword [rax + 0xb4], ecx
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0xb4], 0x10
jle 0x140007509
mov rax, qword [rsp + 0x80]
mov dword [rax + 0xb4], 0x10
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xb4]
cmp dword [rcx + 0xb0], eax
jge 0x1400075b0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x80]
lea r8, [0x140006a20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR90.dll__beginthreadex]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140007582
mov rax, qword [rsp + 0x80]
add rax, 0xb0
lock add dword [rax], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400075ab
xor r8d, r8d
lea rdx, [0x14000aa60]
lea rcx, [0x14000f9b0]
call fcn.1400058d0
lea rdx, str._CIPCServer::MakeThreadPool___beginthreadex_Failed
lea rcx, [0x14000f9b0]
call fcn.140005a30
jmp 0x140007509
add rsp, 0x70
pop rdi
ret
Function at 0x1400089c7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f020]
jne 0x14000845a
rol rcx, 0x10
test cx, 0xffff
jne 0x140008456
repz ret
ror rcx, 0x10
jmp 0x140008920
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000f280]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000f378]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400089a5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000f280]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400089c7
mov rax, qword [rsp + 0x88]
mov qword [0x14000f378], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000f318], rax
mov rax, qword [0x14000f378]
mov qword [0x14000f1f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000f300], rax
mov dword [0x14000f1e0], 0xc0000409
mov dword [0x14000f1e4], 1
mov rax, qword [0x14000f020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000f278], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000a570]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000f278], 0
jne 0x140008a4e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000241a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000241a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000241a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000241a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000241a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000241c
xor al, al
add rsp, 0x28
ret
Function at 0x140001430
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140001350]
mov r8, rax
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rbx, rax
test rax, rax
jne 0x1400014a1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002830
mov rcx, rax
lea rdx, [0x1400029f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002da0
add rsp, 0x60
pop rbx
ret
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400014ed
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400014c0
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002da0
add rsp, 0x60
pop rbx
ret
Function at 0x1400018a0
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.0x1400018c1
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 0x1400018ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400018f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001949
test ecx, ecx
jle 0x140001929
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 0x140001949
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001949
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140001970
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001992
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400019a1
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400019c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400019c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001a02
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001a9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001a3d
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 0x140001a7e
nop word [rax + 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 0x140001a9e
cmp rbx, rax
ja 0x140001a50
test rbx, rbx
je 0x140001a9e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140001f00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001f2d
xor eax, eax
jmp 0x140002099
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001f67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001f67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002099
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000208c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001faa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140001fd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002091
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x140002044
sub eax, 1
je 0x140002044
cmp eax, 2
jne 0x14000208c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002091
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002072
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000208c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002091
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002da0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400024b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002583
cmp byte [rcx + 0x71], 0
je 0x140002583
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000257f
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 0x140002544
sub eax, 1
je 0x140002548
cmp eax, 2
jne 0x14000257f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002da0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002576
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 0x14000257f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000252c
xor al, al
jmp 0x14000252c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002da0
add rsp, 0x60
pop rbx
ret

Function at 0x140003720
Capabilities:
Parse pe header

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