joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002620
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x270]
call fcn.140002540
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000267c
mov eax, dword [rsp + 0x30]
jmp 0x140002709
mov dword [rsp + 0x34], 1
mov rdx, qword [rsp + 0x278]
lea rcx, [rsp + 0x40]
call fcn.1400024c0
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x14000d8f0]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400026d2
mov eax, dword [rsp + 0x30]
jmp 0x140002709
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [0x14000d908]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x268
ret

Function at 0x140002730
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
add rax, 0x24
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
nop
add rsp, 0x28
ret

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

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x28]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x1400027c3
mov edx, dword [rsp + 0x24]
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001080
nop
mov eax, dword [rsp + 0x2c]
and eax, 3
cmp eax, 1
jne 0x1400027d6
mov byte [rsp + 0x20], 1
jmp 0x1400027db
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x40
pop rdi
ret

Function at 0x140002800
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x48
ret
Function at 0x140002850
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x48
ret

Function at 0x140003770
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xd8
mov dword [rsp + 0x20], 0xc0000001
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x24]
call fcn.1400038c0
mov rcx, rax
call fcn.140003b30
xor edx, edx
mov rcx, rax
call fcn.140002a00
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x1400037d9
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x25]
call fcn.140003960
mov rcx, rax
call fcn.140003b10
mov rcx, rax
call fcn.140001080
nop
jmp 0x140003814
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x26]
call fcn.140003a00
mov rcx, rax
call fcn.140003af0
mov edx, dword [rsp + 0x20]
mov rcx, rax
call fcn.140001080
nop
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
cmp dword [rsp + 0x20], 0
jge 0x14000383f
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x27]
call fcn.140003aa0
mov rcx, rax
call fcn.140003ad0
mov edx, dword [rsp + 0x20]
mov rcx, rax
call fcn.140001080
nop
mov eax, 1
add rsp, 0xd8
ret
Function at 0x140006be0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1040
call fcn.14000bc20
sub rsp, rax
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov r14, qword [rsp + 0x1090]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x140006cc9
mov r9d, 0x1000
lea rdx, [rsp + 0x30]
call fcn.140005450
test al, al
jne 0x140006c3f
lea rdx, str.____Cant_read_module_headers
jmp 0x140006cad
movsxd rax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
add rcx, rax
mov r8d, ebx
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
cmp bx, r9w
jae 0x140006ca6
nop word [rax + rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x140006c9e
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], bl
jne 0x140006c90
cmp rax, 4
je 0x140006cfd
inc r8d
cmp r8d, r9d
jb 0x140006c70
lea rdx, str.____Cant_find_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140008a70
lea rdx, [0x140008c80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbx
mov r8d, ebx
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140006a70
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140006ca6
mov r8d, dword [rdx + 8]
lea rcx, [rsp + 0x30]
add rcx, rax
je 0x140006ca6
test r8d, r8d
je 0x140006ca6
lea rax, [rsp + 0x30]
mov ebx, r8d
sub rcx, rax
lea rdx, [rcx + rdi]
jmp 0x140006ccc
Function at 0x1400079b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400079d8
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400079fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007a00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007a59
test ecx, ecx
jle 0x140007a39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007a59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007a59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140007a80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007aa2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140007ab8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007ad4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007ad6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007b12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007bae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007b4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140007b8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140007bae
cmp rbx, rax
ja 0x140007b60
test rbx, rbx
je 0x140007bae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140008010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000803d
xor eax, eax
jmp 0x1400081a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140008077
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400081a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000819c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400080ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400080e5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400081a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
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 0x140008154
sub eax, 1
je 0x140008154
cmp eax, 2
jne 0x14000819c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400081a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008182
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000819c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400081a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000aa60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008780
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008853
cmp byte [rcx + 0x71], 0
je 0x140008853
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000884f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 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 0x140008814
sub eax, 1
je 0x140008818
cmp eax, 2
jne 0x14000884f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008846
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000884f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400087fc
xor al, al
jmp 0x1400087fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000aa60
add rsp, 0x60
pop rbx
ret
Function at 0x14000a010
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor edi, edi
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
mov ebx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000a0a5
test rbx, rbx
je 0x14000a06b
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, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000a055
test eax, eax
jns 0x14000a0c6
test rbx, rbx
je 0x14000a0cb
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000a18d
test rbx, rbx
jne 0x14000a0d2
xor eax, eax
jmp 0x14000a18d
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14000a175
nop
mov eax, edi
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.140008590
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000a113
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000a1aa
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000a16b
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a166
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1f3
call fcn.14000aa80
inc edi
cmp edi, dword [rbx]
jb 0x14000a0e0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000aa60
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000a1ff
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a1fa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a1fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000aa80
mov rax, rdi
jmp 0x14000a188
Function at 0x14000b5e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b62e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b62e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b62e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b62e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b62e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b630
xor al, al
add rsp, 0x28
ret
Function at 0x18000a020
Capabilities:
Query or enumerate registry value

Disassembly:
cmp rdx, 0x1000
jb 0x18000a161
push rbx
sub rsp, 0x40
movabs rax, 0xffff800000000000
mov rbx, rdx
test rax, rdx
jne 0x18000a15c
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x18000a157
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.Interface
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000a14c
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000a141
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000a136
cmp dword [rsp + 0x60], 1
jne 0x18000a136
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x18000a136
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140003e94
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov rdi, rcx
call fcn.14009fd50
xor r14d, r14d
test eax, eax
je 0x140003eda
cmp qword [rdi - 0x10], r14
jbe 0x140003ed2
mov rbx, qword [rdi - 0x18]
add rbx, 0x18
add rbx, rdi
jmp 0x140003ed5
mov rbx, r14
mov rbx, qword [rbx]
jmp 0x140003edd
mov rbx, r14
test rdi, rdi
jne 0x140003ee7
mov rax, r14
jmp 0x140003ef4
mov edx, 0xfffc
mov rcx, rdi
call fcn.1401ecbac
test rbx, rbx
je 0x140003f88
cmp dword [rbx + 0x50], r14d
je 0x140003f88
lea r8, [0x1402728e4]
mov rdx, rax
mov rcx, rdi
call fcn.1400a9258
lea rsi, [0x14031d520]
mov ecx, 0x8000
mov rdx, rsi
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x38], r14
mov r8, rsi
mov qword [rsp + 0x30], r14
mov r9d, eax
lea r14, [0x14031b520]
mov dword [rsp + 0x28], 0x1000
xor edx, edx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, ebx
lea r8, [0x1402728e8]
add rax, rdi
mov ebx, 0x10000
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9, r14
mov rcx, rsi
call fcn.140001114
jmp 0x140003fa8
mov ebx, 0x10000
lea rsi, [0x14031d520]
mov edx, ebx
lea r8, [0x140271f8c]
mov rcx, rsi
mov r9, rdi
call fcn.140001114
mov rdx, rbx
mov rcx, rsi
call fcn.1401ecbac
cmp byte [rbp], 0x2e
mov rdx, rax
mov rcx, rsi
jne 0x140003fcd
lea r8, [0x1402728f0]
call fcn.1400a9258
jmp 0x140003fdb
lea r8, [0x1402728e4]
call fcn.1400a9258
inc eax
movsxd rcx, eax
lea r8, [0x140271f8c]
sub rbx, rcx
mov r9, rbp
mov rdx, rbx
add rcx, rsi
call fcn.140001114
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140009da8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x38], 0
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140009dcf
and qword [rdx], 0
mov r8, qword [rcx + 0x38]
lea r12, [0x140319520]
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140272c7c]
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.1401e9d40
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140009f99
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.1401ea7fc
mov r9, qword [rbp + 0x38]
lea rcx, [0x14031c520]
mov r8d, reloc.WS2_32.dll_recv
lea r15d, [r8 - 0xf]
mov edx, r15d
call fcn.1401ed134
mov rax, qword [0x14031c520]
cmp rax, qword [0x14030fbe0]
jne 0x140009f90
mov rax, qword [0x14031c528]
cmp rax, qword [0x14030fbe8]
jne 0x140009f90
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 0x15]
mov r8d, r15d
call fcn.1401ea7fc
mov r9, qword [rbp + 0x38]
lea r8d, [r15 + 3]
mov edx, r15d
lea rcx, [rbp + 0x30]
call fcn.1401ed134
cmp rax, 4
jne 0x140009f90
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 5]
sub edx, eax
mov dword [rbp + 0x30], eax
mov r8d, r15d
call fcn.1401ea7fc
movsxd rdx, dword [rbp + 0x30]
mov eax, 0xffffffff
mov rcx, rdx
cmp rdx, rax
jae 0x140009ee0
mov eax, 0xffffffe7
cmp rdx, rax
jae 0x140009ee0
add rcx, 0x18
call fcn.1401ed1fc
mov edx, dword [rbp + 0x30]
jmp 0x140009ee2
xor eax, eax
movsxd rdx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.14009fb24
mov rdi, rax
test rbx, rbx
je 0x140009efe
mov qword [rbx], rax
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov r9, qword [rbp + 0x38]
mov rcx, rdi
call fcn.1401ed134
movsxd rcx, dword [rbp + 0x30]
cmp rax, rcx
jne 0x140009f90
test rbx, rbx
jne 0x140009f90
mov rcx, qword [rsi + 0x38]
lea rdx, str..msh
and qword [rbp + 0x40], rbx
call fcn.140003e94
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x1000
mov r8, rax
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140274ae0]
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.1401e9d40
mov r9, qword [rbp + 0x40]
test r9, r9
je 0x140009f88
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov rcx, rdi
call fcn.1401eba2c
mov rcx, qword [rbp + 0x40]
call fcn.1401ea36c
mov rcx, rdi
call fcn.14009fc04
mov rcx, qword [rbp + 0x38]
call fcn.1401ea36c
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret