joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001290
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5b0
mov rdi, rsp
mov ecx, 0x16c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5c0]
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0x3fff
mov dword [rsp + 0x2b4], 0
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400167d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001318
mov eax, dword [rsp + 0x60]
jmp 0x140001543
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x2d4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x308], eax
cmp dword [rsp + 0x308], 0
jne 0x140001531
cmp dword [rsp + 0x2b4], 0
jbe 0x140001531
mov dword [rsp + 0x304], 0
jmp 0x1400013be
mov eax, dword [rsp + 0x304]
inc eax
mov dword [rsp + 0x304], eax
mov eax, dword [rsp + 0x2b4]
cmp dword [rsp + 0x304], eax
jae 0x140001531
mov dword [rsp + 0x294], 0xff
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x294]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x304]
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x308], eax
cmp dword [rsp + 0x308], 0
jne 0x14000152c
lea rax, [rsp + 0x318]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000151e
mov dword [rsp + 0x334], 0
lea rax, [rsp + 0x360]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x584], 0x104
lea rax, [rsp + 0x584]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x360]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x334]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x318]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000151e
lea rdx, str.IApplicationAssociationRegistrationInternal
lea rcx, [rsp + 0x360]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000151e
lea r8, [rsp + 0x80]
mov edx, 0x104
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rsp + 0x318]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x60], 1
jmp 0x140001531
mov rcx, qword [rsp + 0x318]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400013ae
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x60]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140016918]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140013550
add rsp, 0x5b0
pop rdi
ret
Function at 0x1400082dc
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
mov rdi, rsp
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x30]
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x82
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0xc8], 0
cmp dword [rsp + 0xc8], 8
jae 0x140008510
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 8
jae 0x1400083b5
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
jmp 0x1400083c0
mov dword [rsp + 0xe0], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xc8], 8
jae 0x140008404
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
jmp 0x14000840f
mov dword [rsp + 0xe4], 0
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0xd4], eax
mov eax, dword [rsp + 0xcc]
shr eax, 2
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xd0]
shr eax, 4
mov ecx, dword [rsp + 0xcc]
and ecx, 3
shl ecx, 4
or eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xd4]
shr eax, 6
mov ecx, dword [rsp + 0xd0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xd4]
and eax, 0x3f
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
jmp 0x140008347
mov eax, dword [rsp + 0xc4]
dec eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xc4]
mov ecx, 0x3d
mov rdx, qword [rsp + 0x118]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xc4]
xor ecx, ecx
mov rdx, qword [rsp + 0x118]
mov word [rdx + rax*2], cx
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14002f800]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140013550
add rsp, 0xf8
pop rdi
pop rsi
ret
Function at 0x1400098d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xac0
mov rdi, rsp
mov ecx, 0x2b0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xad0]
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0xab8], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov byte [rsp + 0xa74], 0
mov edx, 0x400
lea rcx, [rsp + 0x270]
call fcn.1400094d0
mov dword [rsp + 0xa78], eax
cmp dword [rsp + 0xa78], 0
je 0x140009973
lea r8, [0x14002dcc0]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x14000998a
lea r8, str.HKEY_CURRENT_USER
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0xa88]
call fcn.14001275c
nop
mov dword [rsp + 0x28], 0x105
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xad0]
lea r8, str.Local_AppData
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa88]
call fcn.140012c40
mov rcx, qword [rsp + 0xad0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
test rax, rax
jne 0x140009a1a
xor r9d, r9d
mov r8d, 0x1c
mov rdx, qword [rsp + 0xad0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140009a18
mov byte [rsp + 0xa74], 1
jmp 0x140009a22
mov byte [rsp + 0xa74], 1
mov al, byte [rsp + 0xa74]
mov byte [rsp + 0xab0], al
lea rcx, [rsp + 0xa88]
call fcn.140012790
mov al, byte [rsp + 0xab0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14002f690]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0xab8]
xor rcx, rsp
call fcn.140013550
add rsp, 0xac0
pop rdi
ret
Function at 0x140009d70
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x370
mov rdi, rsp
mov ecx, 0xdc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0x360], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x288], 0
lea r9, [rsp + 0x288]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140048430]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140009ea7
mov r8, qword [rsp + 0x288]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x140009e99
lea r8, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgram
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140009e99
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x338]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x2b0], 0x68
lea rax, [rsp + 0x338]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsp
lea rdx, [0x14002f328]
call fcn.140013450
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140013550
add rsp, 0x370
pop rdi
ret
Function at 0x14000bfe4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rdi, rsp
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
je 0x14000c039
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c040
mov al, 1
jmp 0x14000c1c6
call fcn.14000cf80
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0xb0], rcx
mov edx, eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xb0]
call qword [0x1400166a8]
mov dword [rsp + 0xa8], eax
call fcn.14000cf80
mov dword [rsp + 0xac], eax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xac]
call fcn.14000cf8c
movzx eax, al
test eax, eax
je 0x14000c0aa
xor al, al
jmp 0x14000c1c6
mov qword [rsp + 0x30], 0x20
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x68]
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 + 0xb8], eax
cmp dword [rsp + 0xb8], 0
je 0x14000c11c
cmp dword [rsp + 0xb8], 1
je 0x14000c128
cmp dword [rsp + 0xb8], 3
je 0x14000c1b4
jmp 0x14000c1c4
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x14000c183
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x14000c183
xor al, al
jmp 0x14000c1c6
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c1a0
mov dword [rsp + 0xbc], 1
jmp 0x14000c1ab
mov dword [rsp + 0xbc], 0
mov al, byte [rsp + 0xbc]
jmp 0x14000c1c6
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000c1c6
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140030900]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140013550
add rsp, 0xd0
pop rdi
ret
Function at 0x14000e360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x90], 0
jg 0x14000e39d
xor eax, eax
jmp 0x14000e585
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000e3cf
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
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 0x14000e585
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
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 + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000e480
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140001988
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
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 + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140002484
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000e575
mov rcx, qword [rsp + 0x80]
call fcn.14000c788
mov qword [rsp + 0x60], 0xfff
cmp qword [rsp + 0x28], 0xfff
jbe 0x14000e536
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x68], 0xfff
je 0x14000e531
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x14000e585
jmp 0x14000e4ac
cmp qword [rsp + 0x28], 0
jbe 0x14000e575
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400306c0]
call fcn.140013450
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14000e5a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14000e5ee
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 0x14000e6dc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], 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 + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x14000e684
cmp qword [rsp + 0x28], 0
jle 0x14000e684
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x14000e62e
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], 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 + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140002484
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
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]
cmp qword [rsp + 0x50], 0
jle 0x14000e6cc
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000e6cc
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 + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x140011330
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x740
mov rdi, rsp
mov ecx, 0x1d0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x750]
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0x738], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x268], 0
mov r8, qword [rsp + 0x750]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x50]
call fcn.1400018f4
lea rcx, [0x1400418d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
je 0x140011407
lea rdx, [0x140041548]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
jne 0x140011407
mov eax, dword [rsp + 0x30]
jmp 0x14001158b
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x140011448
cmp qword [rsp + 0x278], 0
je 0x14001143f
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x14001158b
mov dword [rsp + 0x290], 0x238
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14001148e
cmp qword [rsp + 0x278], 0
je 0x140011485
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x14001158b
lea rax, [rsp + 0x4f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x714], 0x104
mov qword [rsp + 0x38], 0
mov r8d, dword [rsp + 0x298]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14001150d
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x730], rax
lea r9, [rsp + 0x714]
lea r8, [rsp + 0x4f0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x730]
call qword [0x1400166a8]
lea rcx, [rsp + 0x4f0]
call fcn.1400018f4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14001153e
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x30], eax
jmp 0x14001155b
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14001148e
cmp qword [rsp + 0x278], 0
je 0x140011574
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x140011587
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400431e8]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0x738]
xor rcx, rsp
call fcn.140013550
add rsp, 0x740
pop rdi
ret
Function at 0x140011ac8
Capabilities:
Compare security identifiers

Disassembly:
push rdi
sub rsp, 0x100
mov rdi, rsp
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011cb8
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x94], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140011cad
mov eax, dword [rsp + 0x94]
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xf0]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140011cad
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x94]
mov r8, qword [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140011c94
mov byte [rsp + 0xb4], 0
mov byte [rsp + 0xb5], 0
mov byte [rsp + 0xb6], 0
mov byte [rsp + 0xb7], 0
mov byte [rsp + 0xb8], 0
mov byte [rsp + 0xb9], 5
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x12
mov dl, 1
lea rcx, [rsp + 0xb4]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140011c94
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140011c94
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140042e90]
call fcn.140013450
mov eax, edi
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140013550
add rsp, 0x100
pop rdi
ret