joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006ab7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800180a0]
jne 0x180005a1a
rol rcx, 0x10
test cx, 0xffff
jne 0x180005a16
repz ret
ror rcx, 0x10
jmp 0x180006a10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180019630]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180019728]
mov qword [rsp + 0x58], rax
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 0x180006a95
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, [0x180019630]
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 0x180006ab7
mov rax, qword [rsp + 0x88]
mov qword [0x180019728], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800196c8], rax
mov rax, qword [0x180019728]
mov qword [0x1800195a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800196b0], rax
mov dword [0x180019590], 0xc0000409
mov dword [0x180019594], 1
mov rax, qword [0x1800180a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800180a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180019628], eax
mov ecx, 1
call fcn.18000af48
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800115d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180019628], 0
jne 0x180006b3e
mov ecx, 1
call fcn.18000af48
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 0x18000db10
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800180a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800093b8
xor ebx, ebx
cmp qword [0x18001a5d0], rbx
mov rdi, rax
jne 0x18000dc23
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000dcfa
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000dcfa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18001a5d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18001a5d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18001a5e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18001a5f0], rax
test rax, rax
je 0x18000dc1a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18001a5e8], rax
jmp 0x18000dc2a
mov rax, qword [0x18001a5e8]
jmp 0x18000dc31
mov rax, qword [0x18001a5e8]
mov r11, qword [0x18001a5f0]
cmp rax, rdi
je 0x18000dc98
cmp r11, rdi
je 0x18000dc98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18001a5f0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000dc98
test rax, rax
je 0x18000dc98
call rsi
test rax, rax
je 0x18000dc92
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000dc92
test byte [rsp + 0x40], 1
jne 0x18000dc98
bts ebp, 0x15
jmp 0x18000dcd8
mov rcx, qword [0x18001a5d8]
cmp rcx, rdi
je 0x18000dcd8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000dcd8
call rax
mov rbx, rax
test rax, rax
je 0x18000dcd8
mov rcx, qword [0x18001a5e0]
cmp rcx, rdi
je 0x18000dcd8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000dcd8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18001a5d0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000dcfa
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000dcfc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180005a00
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001596
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140002340
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rax, qword [0x140027618]
mov edx, 0x100
mov r9, rax
lea r8, str.nj_t_tttXttt
lea rax, section..rdata
mov rcx, rax
call fcn.140001430
mov rax, qword [0x140027618]
mov rdx, rax
lea rax, str.nj_t_tttXttt
mov rcx, rax
call fcn.140001f7b
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000160d
mov eax, 1
jmp 0x1400016f4
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017d4
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000165a
lea rax, str.Failed_to_allocate_mem_n
mov rcx, rax
call fcn.1400014a7
jmp 0x1400016bb
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call fcn.140001ef6
test al, al
jne 0x140001686
lea rax, str.Failed_to_load_pe_into_mem_n
mov rcx, rax
call fcn.1400014a7
jmp 0x1400016bb
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x70]
mov edx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017a2
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x20]
call rax
mov eax, 0
jmp 0x1400016f4
cmp qword [rbp - 8], 0
je 0x1400016ce
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017a2
cmp qword [rbp - 0x10], 0
je 0x1400016ef
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x140002530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008fb0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008fb0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400025a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002c094]
mov rbx, rcx
test esi, esi
jle 0x1400026d0
mov rax, qword [0x14002c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400025eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400025d0
mov rcx, rbx
call fcn.140003060
mov rdi, rax
test rax, rax
je 0x1400026f2
mov rax, qword [0x14002c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400031a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400026d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000266e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002680
add dword [0x14002c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14002c098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000266e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002530
nop dword [rax]
xor esi, esi
jmp 0x1400025f8
mov rax, qword [0x14002c098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002530
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002530
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002ca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002c0e0]
test rbx, rbx
je 0x140002d04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002cfb
test eax, eax
jne 0x140002cfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002ce0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140028a10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003080
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003088
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003080
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400030dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400030d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003080
add rax, 0x28
cmp rax, r9
jne 0x1400030c0
xor eax, eax
ret

Function at 0x1400030e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028a10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400030ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003108
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400030ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400031a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028a10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400031bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400031c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001040
mov rcx, rax
lea rdx, [0x140001200]
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]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001b88
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
invalid
Function at 0x140005130
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov rdx, qword [rsp + 0x30]
mov ecx, 0xd
xor eax, eax
mov r8d, eax
xor r9d, r9d
call sub.USER32.dll_SetWindowsHookExA
mov rcx, rax
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rcx
call fcn.140002dc0
test al, 1
jne 0x140005193
mov rax, qword [rsp + 0x20]
mov qword [0x14002b108], rax
mov dword [rsp + 0x28], 2
jmp 0x1400051b8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], 1
mov ecx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
add rsp, 0x68
ret

Function at 0x1400053a0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub rsp, 0x288
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x248], rcx
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x44]
mov qword [rsp + 0x278], rax
mov qword [rsp + 0x280], 0x100
lea rax, [rsp + 0x44]
mov qword [rsp + 0x250], rax
mov ecx, 0x10
call sub.USER32.dll_GetKeyState
mov word [rsp + 0x25a], ax
call sub.USER32.dll_GetForegroundWindow
mov rcx, rax
mov qword [rsp + 0x268], 0
mov qword [rsp + 0x270], 0
xor eax, eax
mov edx, eax
call sub.USER32.dll_GetWindowThreadProcessId
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x25c], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov edx, dword [rsp + 0x38]
mov ecx, eax
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x260], ecx
mov r8d, 1
call sub.USER32.dll_AttachThreadInput
cmp eax, 1
jne 0x14000548a
lea rcx, [rsp + 0x44]
call sub.USER32.dll_GetKeyboardState
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x264], eax
xor r8d, r8d
call sub.USER32.dll_AttachThreadInput
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x144], eax
jmp 0x14000549b
lea rcx, [rsp + 0x44]
call sub.USER32.dll_GetKeyboardState
mov dword [rsp + 0x144], eax
cmp dword [rsp + 0x144], 1
jne 0x1400054e0
lea rcx, [rsp + 0x148]
lea rdx, [rsp + 0x44]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
add rcx, 8
lea rdx, [rsp + 0x148]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + 0x43], 1
jmp 0x1400054e5
mov byte [rsp + 0x43], 0
mov al, byte [rsp + 0x43]
and al, 1
movzx eax, al
add rsp, 0x288
ret
Function at 0x140009870
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140009910
jmp 0x1400098ff
jae 0x1400099cf
cmp r8, 0x201
jae 0x140009910
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140009967
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000993f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001e430
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140009990
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009a3b
mov r8d, r13d
cmp r12, r8
jne 0x1400098f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009a6f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400098ff
jmp 0x140009910
cmp r14, r8
jb 0x140009a89
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000bc60
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140009a24
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001ea0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x140009a0f
jmp 0x140009a24
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001f6f0
jmp 0x140009a9e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001fb60
ud2
Function at 0x14000fd90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140022f60]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000fdc8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000fe26
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000fe53
test eax, eax
js 0x14000fe32
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000fe49
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000ba10
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140008060
mov ecx, 7
int 0x29
ud2
Function at 0x14001c460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14001c4ea
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001c4e0
cmp r10, r11
jb 0x14001c566
cmp r10, rdx
ja 0x14001c578
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14001c4e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001c4c0
jmp 0x14001c547
ja 0x14001c4ea
mov r11, r10
cmp rax, r8
jne 0x14001c487
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14001c54b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c520
mov r8, r10
sub ecx, r9d
jns 0x14001c53e
jmp 0x14001c54d
cmp r10, rdx
je 0x14001c55a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c54d
xor al, 1
cmp r8, rdx
jne 0x14001c500
jmp 0x14001c54d
xor eax, eax
jmp 0x14001c54d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001f5d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001fbd0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001fb60
int3

Function at 0x14001ddfc
Capabilities:
Parse pe header

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