joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400446a0
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 case.default.0x1400446c1
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 0x1400446ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400446f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140044751
test ecx, ecx
jle 0x140044729
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 0x140044751
cmp qword [rdi + 0x80], 0
je 0x140044751
lfence
mov r9, qword [rdi + 0x80]
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
je 0x14014f5a9
je 0x14014f5a9
cmp eax, 0xb1ef1273
invalid
Function at 0x140044770
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x140044792
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400447a4
lfence
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, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400447c7
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400447c9
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140044805
mov qword [rsp + 0x20], rdi
cmp rax, r14
mov rdi, r14
mov rcx, rbp
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add rbp, 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 0x14004489e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140044840
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 0x14004487e
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]
add rbp, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004489e
cmp rbx, rax
ja 0x140044850
test rbx, rbx
je 0x14004489e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub r14, rbx
mov rax, r14
lfence
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xor edx, eax
int3
Function at 0x140044d00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140044d2d
xor eax, eax
jmp 0x140044e8d
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140044d58
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140044d58
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140044e8d
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140044e80
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140044d9b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140044dc6
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 0x140044e85
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 0x140044e35
sub eax, 1
je 0x140044e35
cmp eax, 2
jne 0x140044e80
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 0x140044e85
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140044e66
lfence
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 0x140044e80
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140044e85
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140068890
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140045170
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140045246
cmp byte [rcx + 0x71], 0
je 0x140045246
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140045242
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 0x140045204
sub eax, 1
je 0x140045208
cmp eax, 2
jne 0x140045242
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068890
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140045239
lfence
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 0x140045242
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400451ec
xor al, al
jmp 0x1400451ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068890
add rsp, 0x60
pop rbx
ret
Function at 0x140062bc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [0x1400d8e08], 7
lea r8, [rsp + 0x30]
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x1400d8df0]
mov rcx, 0xffffffff80000002
cmova rdx, qword [0x1400d8df0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test eax, eax
jne 0x140062c51
cmp qword [rbx + 0x18], 7
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jbe 0x140062c1b
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 7
jbe 0x140062c25
mov rdi, qword [rdi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x30]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x30]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140062c8c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140062c87
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140062caf
mov rcx, r8
call fcn.1400688dc
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x1400639c0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rdx + 0x10]
mov rbx, rcx
test rax, rax
je 0x140063a4e
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x140063a4e
add eax, eax
cmp qword [rdx + 0x18], 7
mov dword [rsp + 0x50], eax
jbe 0x1400639eb
mov rdx, qword [rdx]
cmp qword [r8 + 0x18], 7
lea eax, [r10 + r10]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], rdx
jbe 0x140063a02
mov r8, qword [r8]
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], r8
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x140063a3e
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rbx]
lea rdx, str.Problem_while_protecting_data.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov eax, 0x80004005
add rsp, 0x60
pop rbx
ret
Function at 0x140063a60
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rdx + 8], 0
mov rsi, r9
mov r10, rdx
mov rdi, rcx
mov ebx, 0x80004005
je 0x140063b76
cmp dword [rdx], 0
jbe 0x140063b76
mov eax, dword [r8 + 0x10]
add eax, eax
cmp qword [r8 + 0x18], 7
mov dword [rsp + 0x50], eax
jbe 0x140063ab3
mov r8, qword [r8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 4
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, r10
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140063b66
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
shr r8, 1
call fcn.14000d730
mov rdx, rax
mov rcx, rsi
call fcn.140009f80
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140063b62
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063b5d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063b5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688dc
xor ebx, ebx
jmp 0x140063b76
mov rcx, qword [rdi]
lea rdx, str.Problem_while_decrypting_the_data.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140068890
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400640a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push r14
sub rsp, 0x38
mov r14, r9
mov rbp, rdx
test rdx, rdx
je 0x140064174
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
mov esi, r8d
mov dword [rsp + 0x58], r8d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
xor ebx, ebx
test rdi, rdi
mov eax, 0x8007000e
cmovne eax, ebx
je 0x14006415d
lfence
test rsi, rsi
je 0x14006410a
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140064148
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140064144
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14006415b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
mov eax, ebx
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov eax, 0x80004005
add rsp, 0x38
pop r14
pop rbp
ret

Function at 0x140064500
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, dword [rdx]
mov rdi, rcx
mov rcx, qword [rdx + 8]
mov r15d, r9d
mov dword [rsp + 0x58], 4
mov rsi, r8
mov r14, rdx
test rcx, rcx
je 0x1400645f0
test ebp, ebp
je 0x1400645f0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov edx, ebp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x1400645e0
mov qword [rsp + 0x50], rbx
mov ebx, dword [rsp + 0x58]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [rsp + 0x58]
mov r8d, r15d
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, qword [r14 + 8]
mov edx, ebp
mov rbx, rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x1400645cc
mov ecx, dword [rsp + 0x58]
mov eax, 1
mov dword [rsi], ecx
mov qword [rsi + 8], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rdi]
lea rdx, str.Problem_while_encoding_to_base64.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x1400645b3
mov rcx, qword [rdi]
lea rdx, str.Problem_while_finding_the_count_of_elements_to_encode_in_base64.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x1400645b8
Function at 0x1400650b0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r15d, r8d
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x18], rbx
mov r14, qword [rsp + 0x78]
mov qword [r14], rbx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14006513d
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14006513d
mov qword [rsp + 0x20], r14
mov esi, 1
mov r9d, esi
mov r8, qword [rsp + 0x30]
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006514d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x1400679d0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x20], 0x12c
xor edx, edx
mov r8d, 0x258
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor bl, bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140067a57
xor eax, eax
lea r8, [rsp + 0x30]
lea r9, str.SYSTEM
nop dword [rax]
movzx edx, word [r8 + rax*2]
inc rax
movzx ecx, word [r9 + rax*2 - 2]
sub edx, ecx
jne 0x140067a48
cmp rax, 7
jne 0x140067a30
movzx eax, bl
mov ecx, 1
test edx, edx
cmove eax, ecx
jmp 0x140067a5a
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140068890
add rsp, 0x2a0
pop rbx
ret

Function at 0x1400691e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006922e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006922e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006922e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006922e
cmp dword [rcx + 0x84], 0xe
jbe 0x14006922e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140069230
xor al, al
add rsp, 0x28
ret

Function at 0x140069840
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400698b8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400698b8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400698b8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400698ac
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400698ca
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14006989a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400698ba

Function at 0x14006a188
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14006a1c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006a1c7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14006a210
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14007fe20]
cmp byte [rcx + rax], 0
je 0x14006a210
dec r8
sub rdx, 1
jne 0x14006a1f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001190
Capabilities:
Create device object

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x60
and qword [rax + 0x18], 0
lea rdx, [0x140002f30]
mov rbx, rcx
lea rcx, [rax - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x80]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jns 0x140001201
lfence
lea rcx, [0x140002f50]
call fcn.140001180
mov eax, edi
jmp 0x140001283
lea rax, [0x140001bf0]
mov qword [rbx + 0x70], rax
lea rdx, [0x140002f70]
mov qword [rbx + 0x80], rax
lea rcx, [rsp + 0x50]
lea rax, [0x140001780]
mov qword [rbx + 0xe0], rax
lea rax, [0x140001eb0]
mov qword [rbx + 0x68], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140001275
lfence
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
lea rcx, [0x140002fa0]
call fcn.140001180
mov eax, ebx
jmp 0x140001283
lea rcx, [0x140002fc0]
call fcn.140001180
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140001314
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
lea r14, [r11 - 0x38]
mov ebx, esi
lea edi, [rsi + 0x10]
movsxd rax, ebx
lea rdx, [rsp + 0x30]
movsxd rcx, edi
lea rdx, [rdx + rax*8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001365
inc ebx
mov dword [r14], edi
add r14, 4
add edi, 4
cmp ebx, 3
jl 0x140001343
mov r8, qword [rsp + 0x38]
mov edx, 0x20
mov r9, qword [rsp + 0x30]
mov r10, qword [rsp + 0x40]
sub r9, r8
mov r11d, dword [rsp + 0x28]
sub r10, r8
mov rbx, qword [rsp + 0x24]
lea rcx, [r8 + 0x20]
mov edi, dword [rsp + 0x20]
neg r8
cmp dword [r9 + rcx], edi
jne 0x1400013ac
cmp dword [rcx], ebx
jne 0x1400013ac
cmp dword [r10 + rcx], r11d
je 0x1400013c1
add rcx, 4
add edx, 4
lea rax, [r8 + rcx]
cmp rax, 0xb70
jl 0x14000139c
jmp 0x1400013c3
mov esi, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400029a0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140001484
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov edi, ecx
call fcn.140001314
mov esi, eax
test eax, eax
jne 0x1400014ac
test edi, edi
je 0x14000158d
mov edx, esi
lea rcx, [0x140002cf0]
call fcn.140001180
lea ebx, [rsi + 8]
mov edx, ebx
lea rcx, [0x140002d10]
call fcn.140001180
mov rcx, rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000158d
mov r15, rsi
mov r14d, ebx
add rsi, qword [rsp + 0x48]
add rbx, qword [rsp + 0x48]
je 0x140001581
test rsi, rsi
je 0x140001581
lfence
mov edx, edi
lea rcx, [0x140002d60]
call fcn.140001180
mov edx, dword [rsi]
lea rcx, [0x140002d70]
call fcn.140001180
cmp dword [rsi], edi
jne 0x140001546
lea rcx, [0x140002d90]
call fcn.140001180
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov qword [rax + 8], rcx
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
jmp 0x14000158d
mov rbx, qword [rbx]
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
sub rcx, r14
lea rax, [r15 + rcx]
jmp 0x14000156b
cmp dword [rax], edi
je 0x140001523
mov rbx, qword [rbx]
mov rcx, rbx
sub rcx, r14
lea rax, [rcx + r15]
mov qword [rsp + 0x48], rcx
test rbx, rbx
je 0x140001581
test rax, rax
je 0x140001581
cmp rdx, rcx
jne 0x14000155a
jmp 0x14000158d
lea rcx, [0x140002d30]
call fcn.140001180
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400015e8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x78
and qword [r11 - 0x48], 0
lea rax, [0x140001110]
mov dword [rsp + 0x40], 0x30
lea r8, [r11 - 0x38]
and qword [r11 - 0x30], 0
xorps xmm0, xmm0
mov dword [rsp + 0x58], 0x200
xor r9d, r9d
and qword [r11 - 0x28], 0
mov edx, 0x1fffff
mov dword [0x14000b2e0], ecx
lea rcx, [r11 + 0x10]
mov qword [r11 - 0x50], rax
and qword [r11 - 0x58], 0
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
setns al
add rsp, 0x78
ret