joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004fdb0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004fde4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [0x1401845e8]
call fcn.14004d6b0
lea rcx, [rsp + 0x30]
call fcn.14004e8d0
nop
mov rcx, rax
call fcn.1400547e0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.14004d1e0
test bl, bl
jne 0x14004fe1d
xor al, al
jmp 0x14004ff57
lea rcx, [rsp + 0x50]
call fcn.14004e980
nop
mov edx, 0x108
lea rcx, [rsp + 0x70]
call fcn.140004700
lea rcx, [rsp + 0x50]
call fcn.140050960
mov rdx, rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x22
lea rcx, [rsp + 0x70]
call fcn.14004c8f0
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
imul rcx, rbx
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x13
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x1e8480
sub rcx, rax
add ecx, 0x3ab0
movsxd rsi, ecx
mov rcx, rsi
call fcn.1400039a0
mov rdi, rax
xor ebx, ebx
test rsi, rsi
je 0x14004fef3
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rdi + rbx], r9b
inc rbx
cmp rbx, rsi
jb 0x14004fec0
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x70]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea rcx, [rsp + 0x70]
call fcn.140050a20
mov rcx, rdi
call fcn.14010d790
lea rcx, [rsp + 0x50]
call fcn.140050960
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
test eax, eax
sete bl
lea rcx, [rsp + 0x70]
call fcn.14004d5b0
nop
lea rcx, [rsp + 0x50]
call fcn.14004d1e0
movzx eax, bl
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14010dc10
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400501d0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rsi, rcx
je 0x1400502c5
cmp byte [rcx + 0x71], 0
je 0x1400502c5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rdi
mov rbx, qword [rax + 0x18]
call fcn.140051420
mov edx, eax
mov rcx, rsi
mov edi, eax
call rbx
mov edx, eax
mov ecx, edi
call fcn.140051430
mov rdi, qword [rsp + 0x80]
test al, al
jne 0x1400502c1
mov rcx, qword [rsi + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rsi + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140050286
sub eax, 1
je 0x14005028a
cmp eax, 2
jne 0x1400502c1
mov byte [rsi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010dc10
add rsp, 0x60
pop rsi
ret
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rbx, rax
je 0x1400502b8
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400502c1
cmp byte [rsi + 0x71], 0
sete al
jmp 0x14005026e
xor al, al
jmp 0x14005026e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010dc10
add rsp, 0x60
pop rsi
ret
Function at 0x140052110
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebp, edx
mov rdi, rcx
call fcn.140051420
mov edx, ebp
mov ecx, eax
mov esi, eax
call fcn.140051430
test al, al
je 0x14005214f
mov ecx, ebp
call fcn.140051fe0
jmp 0x140052286
mov rcx, rdi
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14005219b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14005219b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov ecx, ebp
mov rbx, rax
call fcn.1400526e0
mov byte [rbx], al
mov eax, ebp
jmp 0x14005227e
cmp qword [rdi + 0x80], 0
je 0x14005227c
mov rcx, rdi
call fcn.140050570
mov rbx, qword [rdi + 0x68]
mov ecx, ebp
call fcn.1400526e0
test rbx, rbx
jne 0x1400521d7
mov rdx, qword [rdi + 0x80]
movzx ecx, al
call fcn.14004bb50
test al, al
jmp 0x140052279
mov byte [rsp + 0x50], al
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14005223d
sub eax, 1
je 0x14005223d
cmp eax, 2
jne 0x14005227c
mov rdx, qword [rdi + 0x80]
movzx ecx, byte [rsp + 0x50]
call fcn.14004bb50
test al, al
jmp 0x140052279
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14005226b
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14005227c
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
cmovne esi, ebp
mov eax, esi
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010dc10
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400529d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x1400529fc
xor eax, eax
jmp 0x140052afa
cmp qword [rcx + 0x68], 0
je 0x140052a0e
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 0x140052afa
mov qword [rsp + 0x20], rdi
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 + 0x28], rax
test rax, rax
je 0x140052a69
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x20]
call fcn.140002be0
mov rcx, rsi
mov rbx, qword [rax]
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, rbx
mov rcx, rbp
mov rdx, rax
call fcn.1400049b0
sub qword [rsp + 0x20], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rbx, qword [rsp + 0x78]
cmp qword [rsi + 0x80], 0
je 0x140052aef
mov rcx, rsi
call fcn.140050570
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xfff
jbe 0x140052ac8
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
add rbp, rax
sub rcx, rax
mov qword [rsp + 0x20], rcx
cmp rax, 0xfff
jne 0x140052af4
cmp rcx, rax
ja 0x140052a90
test rcx, rcx
je 0x140052af4
mov r9, qword [rsi + 0x80]
mov r8, rcx
mov rcx, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
jmp 0x140052af4
mov rcx, qword [rsp + 0x20]
sub rdi, rcx
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010dc10
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052b10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140052b38
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
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 rbp, rax
test rbx, rbx
jle 0x140052bac
test rax, rax
jle 0x140052b8c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
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, rbp
mov rdx, r14
mov rcx, rax
call fcn.1400049b0
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140052bac
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140052bac
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x140053f50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053f6e
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret
Function at 0x1400545d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
lea rcx, [rsp + 0x70]
call fcn.14004e8d0
nop
lea r8, [rsp + 0x70]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0xb0]
call fcn.140054530
nop
mov r8, rbx
lea rdx, [0x140121d18]
lea rcx, [rsp + 0x50]
call fcn.140054530
nop
lea rcx, [rsp + 0xb0]
call fcn.140050960
mov rdx, rax
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14005469d
lea rcx, [rsp + 0x50]
call fcn.140004e60
mov rbx, rax
add ebx, ebx
lea rcx, [rsp + 0x50]
call fcn.140050960
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x1400546e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea rcx, [rsp + 0x50]
call fcn.14004d1e0
nop
lea rcx, [rsp + 0xb0]
call fcn.14004d1e0
nop
lea rcx, [rsp + 0x70]
call fcn.14004d1e0
movzx eax, bl
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
mov dword [rsp + 0x28], 4
lea rax, reloc.WS2_32.dll_accept
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140054697
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14011d710]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14005469d
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call rbx
test eax, eax
js 0x14005469d
lea r8, [rsp + 0x70]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x90]
call fcn.140054530
nop
lea rcx, [rsp + 0x90]
call fcn.140050960
mov rdx, rax
lea rcx, [rsp + 0x40]
call sub.ntdll.dll_RtlInitUnicodeString
lea rcx, [rsp + 0x40]
call rdi
mov ebx, eax
cmp eax, 0xc000010e
jne 0x1400547c2
mov bl, 1
jmp 0x1400547c8
shr ebx, 0x1f
xor bl, 1
lea rcx, [rsp + 0x90]
call fcn.14004d1e0
jmp 0x14005469f
Function at 0x1400547e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
lea rcx, [0x14011d710]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400548ee
mov r8, rdi
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x58]
call fcn.140054530
nop
lea rcx, [rsp + 0x58]
call fcn.140050960
mov rdx, rax
lea rcx, [rsp + 0x28]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, rdi
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x38]
call fcn.140054530
nop
lea rcx, [rsp + 0x38]
call fcn.140050960
mov rdx, rax
lea r8, [rsp + 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140054884
cmp eax, 2
sete bl
jmp 0x1400548d6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x28]
call rax
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.140050960
mov rdx, rax
mov rcx, 0xffffffff80000002
test ebx, ebx
je 0x1400548ca
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400548d6
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x1400548c6
mov bl, 1
lea rcx, [rsp + 0x38]
call fcn.14004d1e0
nop
lea rcx, [rsp + 0x58]
call fcn.14004d1e0
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret

Function at 0x140054a80
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r13, rdx
mov rbp, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x140054aa7
movsxd rcx, dword [rdx + 0x3c]
lea r12, [rdx + 0x18]
add r12, rcx
mov qword [rsp + 0x50], rbx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r14d, word [rcx + rdx + 6]
add r12, rax
cmp si, r14w
jae 0x140054b16
nop word [rax + rax]
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [r12 + rcx*8]
mov rdx, rbp
mov rcx, rbx
call fcn.14010f3c4
test eax, eax
jne 0x140054b0f
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140054b01
cmp rdi, rax
je 0x140054b35
inc esi
cmp esi, r14d
jb 0x140054ae0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rbx + 0xc], 0
je 0x140054b16
test r15, r15
je 0x140054b46
mov eax, dword [rbx + 8]
mov dword [r15], eax
mov eax, dword [rbx + 0xc]
add rax, r13
jmp 0x140054b18
Function at 0x140054b50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call fcn.14010f3d6
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140054bdf
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140054bb0
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x140054bd8
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140054c12
mov word [rsp + rax + 0x30], di
lea rdx, [rsp + 0x30]
jmp 0x140054be6
lea rdx, [0x140121878]
mov rcx, rbx
call fcn.14004cb20
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call fcn.14010e1d8
int3

Function at 0x140054c20
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
lea r9, [rsp + 0x20]
xor esi, esi
mov ecx, listen
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
mov ebx, esi
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140054caf
nop
test rbx, rbx
je 0x140054c76
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, listen
mov rbx, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140054c60
test eax, eax
jns 0x140054cd0
test rbx, rbx
je 0x140054cd5
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140054d6b
test rbx, rbx
jne 0x140054cdc
xor eax, eax
jmp 0x140054d6b
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
cmp dword [rbx], esi
jbe 0x140054d4b
nop dword [rax]
mov eax, esi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.140002e70
mov rcx, r14
call fcn.1400048c0
lea rcx, [rsp + 0x28]
mov rdi, rax
call fcn.1400048c0
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140054d81
lea rcx, [rsp + 0x28]
call fcn.1400034d0
inc esi
cmp esi, dword [rbx]
jb 0x140054cf0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010dc10
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x28]
call fcn.1400034d0
mov rax, rdi
jmp 0x140054d5e
Function at 0x140057c30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.140004700
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400585b0
nop
lea rbx, [rsi + 8]
lea rcx, [rsp + 0x30]
call fcn.140002620
mov r9, rax
mov qword [rsp + 0x28], rbx
xor edi, edi
mov dword [rsp + 0x20], edi
lea r8, [0x140057a30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x140057cde
lea rcx, [rsp + 0x30]
call fcn.140052430
nop
lea rcx, [rsp + 0x30]
call fcn.140059560
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140057cf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.140004700
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140058620
nop
lea rbx, [rsi + 8]
lea rcx, [rsp + 0x30]
call fcn.140002620
mov r9, rax
mov qword [rsp + 0x28], rbx
xor edi, edi
mov dword [rsp + 0x20], edi
lea r8, [0x140057ac0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x140057d9e
lea rcx, [rsp + 0x30]
call fcn.140052430
nop
lea rcx, [rsp + 0x30]
call fcn.140059590
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140057db0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.140004700
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140058690
nop
lea rbx, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.140002620
mov r9, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140057b50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140057e50
lea rcx, [rsp + 0x30]
call fcn.140052430
nop
lea rcx, [rsp + 0x30]
call fcn.1400595c0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140057e70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.140004700
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400586f0
nop
lea rbx, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.140002620
mov r9, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140057bd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140057f10
lea rcx, [rsp + 0x30]
call fcn.140066b10
nop
lea rcx, [rsp + 0x30]
call fcn.1400595f0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x14005a430
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140063820
mov rcx, rbx
call fcn.140063a40
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140066b30
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14017ce80]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
mov rdi, rcx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
nop
mov rcx, qword [0x140184d10]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140184d10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [0x140184d10]
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140066bb9
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call fcn.14000f450
mov rcx, qword [0x140184d10]
mov rbx, rax
mov qword [rax + 0xc8], rcx
lea rcx, [rsp + 0x30]
mov dword [rax + 0x10], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x30]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe00], xmm0
movd xmm0, dword [rsp + 0x34]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe04], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140066c2f
mov byte [rbx + 0xe08], 1
mov eax, dword [rbx + 0xe04]
mov dword [rbx + 0x36f0], eax
mov byte [rbx + 0x3740], 1
jmp 0x140066c36
mov byte [rbx + 0xe08], 0
mov rcx, rdi
call fcn.1400603a0
cmp dword [rsp + 0x40], 0x12
jne 0x140066b60
call fcn.140030970
call fcn.140030e00
xor ecx, ecx
call fcn.14000d0f0
mov rcx, qword [0x140184d10]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010dc10
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret