joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015a310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
test dl, 3
mov r11, r8
mov r9, rdx
mov r10d, ecx
lea rsi, [0x14043e480]
je 0x14015a367
test r8, r8
je 0x14015a367
nop
nop
movzx ecx, byte [r9]
mov eax, r10d
add r9, 1
xor cl, r10b
shr eax, 8
movzx edx, cl
mov r10d, dword [rsi + rdx*4]
xor r10d, eax
sub r11, 1
je 0x14015a367
test r9b, 3
jne 0x14015a340
mov bl, r11b
lea rdi, [r9 - 4]
and ebx, 7
shr r11, 3
je 0x14015a415
nop
nop
mov r9d, dword [rdi + 8]
mov eax, dword [rdi + 4]
add rdi, 8
xor eax, r10d
mov r8d, eax
shr rax, 0x10
movzx edx, al
mov rax, r8
mov r10d, dword [rsi + rdx*4 + 0x1400]
shr rax, 8
movzx ecx, al
mov rax, r8
xor r10d, dword [rsi + rcx*4 + 0x1800]
shr rax, 0x18
xor r10d, dword [rsi + rax*4 + 0x1000]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0x1c00]
mov rax, r9
shr rax, 0x10
movzx edx, al
mov rax, r9
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov rax, r9
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r10d, r8d
sub r11, 1
jne 0x14015a380
test rbx, rbx
je 0x14015a440
lea r8, [rdi + 3]
nop
mov eax, r10d
mov ecx, r10d
add r8, 1
xor al, byte [r8]
shr ecx, 8
movzx edx, al
mov r10d, dword [rsi + rdx*4]
xor r10d, ecx
sub rbx, 1
jne 0x14015a420
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r10d
ret
Function at 0x140160ca0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140c49580], rbx
je 0x140160cf6
cmp rax, rbx
jne 0x140160ce9
mov edi, 1
jmp 0x140160cf6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140160cd0
mov eax, dword [0x140c49578]
cmp eax, 1
jne 0x140160d0b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x140160d4a
mov eax, dword [0x140c49578]
test eax, eax
jne 0x140160d40
mov dword [0x140c49578], 1
lea rdx, [0x1402dfc58]
lea rcx, [0x1402dfc40]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x140160d4a
mov eax, 0xff
jmp 0x140160ea4
mov dword [0x1404425d4], 1
mov eax, dword [0x140c49578]
cmp eax, 1
jne 0x140160d72
lea rdx, [0x1402dfc38]
lea rcx, [0x1402dfb10]
call sub.MSVCR80.dll__initterm
mov dword [0x140c49578], 2
test edi, edi
jne 0x140160d7f
xor eax, eax
xchg qword [0x140c49580], rax
cmp qword [0x140c49598], 0
je 0x140160da8
lea rcx, [0x140c49598]
call fcn.140161670
test eax, eax
je 0x140160da8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140c49598]
mov rcx, qword [sym.imp.MSVCR80.dll__wcmdln]
cmp qword [rcx], 0
jne 0x140160dbf
mov eax, 0xff
jmp 0x140160ea4
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
nop
nop
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140160e4f
test ax, ax
je 0x140160de2
test edx, edx
jne 0x140160e4f
movzx eax, word [rcx]
test ax, ax
je 0x140160dfb
cmp ax, 0x20
ja 0x140160dfb
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140160de2
test byte [rsp + 0x6c], 1
je 0x140160e0a
movzx r9d, word [rsp + 0x70]
jmp 0x140160e10
mov r9d, 0xa
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140161a50
mov dword [0x1404425d0], eax
cmp dword [0x1404425b4], 0
jne 0x140160e38
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x1404425d4], 0
jne 0x140160e4d
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x1404425d0]
jmp 0x140160e9d
cmp ax, 0x22
jne 0x140160e62
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140160dd0
jmp 0x140160ea4
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.140f1d000
add rsp, 0x28
jmp 0x140160ca0
Function at 0x140161857
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14042d950]
jne 0x14016109a
rol rcx, 0x10
test cx, 0xffff
jne 0x140161096
repz ret
ror rcx, 0x10
jmp 0x1401617b0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140442690]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140442788]
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 0x140161835
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, [0x140442690]
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 0x140161857
mov rax, qword [rsp + 0x88]
mov qword [0x140442788], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140442728], rax
mov rax, qword [0x140442788]
mov qword [0x140442600], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140442710], rax
mov dword [0x1404425f0], 0xc0000409
mov dword [0x1404425f4], 1
mov rax, qword [0x14042d950]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14042d958]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140442688], eax
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140362768]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140442688], 0
jne 0x1401618de
mov ecx, 1
call sub.MSVCR80.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 0x140161ec0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rdx
mov rbx, rcx
mov byte [rsp + 0x80], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x81]
call sub.ntdll.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140161fc5
mov byte [rsp + 0x81], 0x3a
mov byte [rsp + 0x82], 0x5c
mov byte [rsp + 0x83], 0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64____ptr64]
nop
lea rdx, str.AmDriver
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140161f93
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor al, al
jmp 0x140161fc5
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov r9d, 4
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call fcn.140161be0
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140163f40
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, r9d
mov rsi, r8
mov rbx, rdx
mov edx, r9d
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140163fd4
test edi, edi
je 0x140163fd4
cmp qword [rbx + 0x20], 8
jb 0x140163f8a
mov rdx, qword [rbx + 8]
jmp 0x140163f8e
lea rdx, [rbx + 8]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140163fc7
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x140163fdf
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
jmp 0x140163fdf
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140161080
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140164110
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2060
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x52]
call sub.ntdll.dll_memset
mov dword [rsp + 0x34], 0x2000
cmp qword [rbx + 0x20], 8
jb 0x140164180
mov rdx, qword [rbx + 8]
jmp 0x140164184
lea rdx, [rbx + 8]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401641c3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1401641f1
cmp dword [rsp + 0x30], 1
je 0x1401641d7
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1401641f1
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140161080
add rsp, 0x2060
pop rdi
pop rsi
pop rbx
ret
Function at 0x140164230
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x38], rbx
mov rax, qword [r8 + 0x18]
cmp qword [r8 + 0x20], 8
jb 0x14016426f
mov rcx, qword [r8 + 8]
jmp 0x140164273
lea rcx, [r8 + 8]
cmp qword [rdx + 0x20], 8
jb 0x140164280
mov rdx, qword [rdx + 8]
jmp 0x140164284
add rdx, 8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1401642c9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1401642de
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140164340
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov dword [rsp + 0x30], r8d
cmp qword [rdx + 0x20], 8
jb 0x140164373
mov rdx, qword [rdx + 8]
jmp 0x140164377
add rdx, 8
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1401643b9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1401643c4
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140161080
add rsp, 0x50
pop rbx
ret
Function at 0x1401658e0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x4f0], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1189], rax
mov rsi, rdx
mov r13, rcx
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 8], rbx
jbe 0x140165928
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsi + 8]
cmp rdi, qword [rsi + 0x10]
jbe 0x140165938
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rdi, rbx
je 0x1401659aa
mov rbp, qword [rsi + 0x10]
mov rcx, rbp
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
lea r12, [rdi + rax*8]
cmp rbx, rbp
je 0x140165988
sub rdi, rbx
lea rcx, [rdi + rbx]
mov rdx, rbx
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
add rbx, 0x28
cmp rbx, rbp
jne 0x140165972
mov rdi, qword [rsi + 0x10]
mov rbx, r12
cmp r12, rdi
je 0x1401659a6
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rbx, 0x28
cmp rbx, rdi
jne 0x140165994
mov qword [rsi + 0x10], r12
xor edi, edi
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140165a02
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x140165aa4
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140165aa2
nop
mov word [rsp + 0xa0], 0
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
lea rcx, [rsp + 0xa2]
call sub.ntdll.dll_memset
mov dword [rsp + 0x64], 0x400
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x64]
lea r8, [rsp + 0xa0]
mov edx, ebx
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140165a95
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400044f0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add ebx, 1
cmp ebx, dword [rsp + 0x60]
jb 0x140165a10
mov al, 1
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140166710
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, reloc.MFC80U.DLL_Ordinal_768
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_752], rax
mov rdi, r8
mov rbx, rdx
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xe0], 0
call sub.ntdll.dll_memset
xor r11d, r11d
lea rcx, [rsp + 0x70]
lea r8d, [r11 + 0x68]
xor edx, edx
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
call sub.ntdll.dll_memset
or dword [rsp + 0xac], 0x101
xor r8d, r8d
mov dword [rsp + 0x70], 0x68
mov rcx, r8
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xc0], rdi
lea rdx, str.cmd.exe__k
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0xde], ax
jne 0x1401667b0
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov ebx, eax
je 0x140166821
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_752]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + reloc.MFC80U.DLL_Ordinal_784]
add rsp, reloc.MFC80U.DLL_Ordinal_768
pop rdi
ret
Function at 0x140166850
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x80060
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x80040], rax
xor r13d, r13d
mov r12, r9
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x80058], rbx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x3c], r13d
nop
nop
nop
nop
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov r8d, 0x80000
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14016697f
cmp dword [rsp + 0x30], r13d
je 0x140166953
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x80000
mov rcx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140166953
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x140166953
lea rdx, [rsp + 0x40]
mov r8, rbx
mov rcx, rbp
call sub.ntdll.dll_memcpy
mov dword [r12], ebx
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14016698f
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401668b0
mov eax, 1
mov rbx, qword [rsp + 0x80058]
mov rcx, qword [rsp + 0x80040]
xor rcx, rsp
call fcn.140161080
add rsp, 0x80060
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401668b0
xor eax, eax
jmp 0x140166958
Function at 0x1401689c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Manipulate boot configuration

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140168ae7
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_632], rbx
mov qword [rsp + 0x280], rsi
call fcn.140049470
lea rbx, [0x140c47f60]
xor edx, edx
mov r8d, 0x80
mov rcx, rbx
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x1403632a8]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140168a46
xor ebx, ebx
jmp 0x140168ac0
xor eax, eax
lea rdx, [0x140364f64]
lea rcx, [rsp + 0x20]
lea r8d, [rax + 0x17]
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x21], rax
mov word [rsp + 0x29], ax
mov byte [rsp + 0x2b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140168a80
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x20]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140168ab0
mov rax, qword [rsi]
lea rdx, str._s:_GetSystemDirectory_Failed.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
mov rsi, qword [rsp + 0x280]
mov rbx, qword [rsp + reloc.MFC80U.DLL_Ordinal_632]
xor eax, eax
jmp 0x140168b54
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call sub.ntdll.dll_memset
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_320]
lea rdx, str._s_bcdedit.exe
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_sprintf]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140168b2c
xor eax, eax
jmp 0x140168b54
lea rax, [rsp + reloc.MFC80U.DLL_Ordinal_320]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
sub rdi, rax
nop
movzx eax, byte [rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 1], al
jne 0x140168b40
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140161080
add rsp, 0x260
pop rdi
ret