joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a280
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov r13, r8
mov r12, rdx
xor ebp, ebp
mov dword [rax + 0x20], ebp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov ebx, 0xff
cmp eax, ebx
jbe 0x14004a312
mov dword [rsp + 0x20], 1
lea r9d, [rbx + 0xb]
lea r8, str................._artifacts_sentry0.4.186crashpad_snapshotwin_system_snapshot_win.cc
lea rdx, str.unsigned_char___cdecl_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea rcx, [rsp + 0x60]
call fcn.14000d640
nop
mov dword [rsp + 0x1a8], 1
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rsp + 0x60]
call fcn.14000d850
mov eax, dword [rsp + 0x50]
cmp eax, ebx
cmovbe ebx, eax
movzx r15d, bl
mov rbx, rbp
mov rdi, rbp
mov r14, rbp
test r15, r15
je 0x14004a39f
lea rax, [r15 + r15*2]
lea rsi, [rax*8]
cmp rsi, 0x1000
jb 0x14004a36f
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14004a4cd
call fcn.14005884c
mov rcx, rax
test rax, rax
je 0x14004a4c6
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rbx, rax
lea rdi, [rax + rsi]
jmp 0x14004a38f
test rsi, rsi
je 0x14004a385
mov rcx, rsi
call fcn.14005884c
mov rbx, rax
lea rdi, [rax + rsi]
jmp 0x14004a38f
mov rax, rbp
mov rbx, rbp
lea rdi, [rsi + rbp]
mov r14, rdi
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea eax, [r15 + r15*2]
shl eax, 3
mov dword [rsp + 0x20], eax
mov r9, rbx
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call sub.POWRPROF.dll_CallNtPowerInformation
test eax, eax
je 0x14004a3c7
mov qword [r12], rbp
jmp 0x14004a44d
mov rcx, rbx
cmp rbx, rdi
je 0x14004a40a
lea rdx, [rbx + 0x18]
cmp rdx, rdi
je 0x14004a40a
nop dword [rax + rax]
mov eax, dword [rdx + 8]
cmp dword [rcx + 8], eax
cmovb rcx, rdx
add rdx, 0x18
cmp rdx, rdi
jne 0x14004a3e0
mov eax, dword [rcx + 8]
imul rcx, rax, 0xf4240
mov qword [r12], rcx
mov rcx, rbx
lea rdx, [rbx + 0x18]
jmp 0x14004a430
mov eax, dword [rbx + 8]
imul rcx, rax, 0xf4240
mov qword [r12], rcx
mov rcx, rbx
cmp rbx, rdi
je 0x14004a443
lea rdx, [rbx + 0x18]
cmp rdx, rdi
je 0x14004a443
nop dword [rax]
mov eax, dword [rdx + 4]
cmp dword [rcx + 4], eax
cmovb rcx, rdx
add rdx, 0x18
cmp rdx, rdi
jne 0x14004a430
mov eax, dword [rcx + 4]
imul rbp, rax, 0xf4240
mov qword [r13], rbp
test rbx, rbx
je 0x14004a4a5
sub r14, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r14
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
cmp rdx, 0x1000
jb 0x14004a49d
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14004a4c6
mov rbx, rcx
mov rcx, rbx
call fcn.140058888
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003a50
int3
Function at 0x140059760
Capabilities:
Parse pe header

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

Function at 0x140059c60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x140059d3f
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rbx, rdx
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0x158], edi
mov r14d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov esi, ebx
cmp rbx, r14
cmova esi, r14d
mov edx, esi
mov rcx, rbp
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140059d07
mov dword [rsp + 0x20], 4
mov r9d, 0x7d
lea r8, str................._artifacts_sentry0.4.186crashpad_third_partymini_chromiummini_chromium_base_rand_util.cc
lea rdx, str.void___cdecl_base::RandBytes_void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14000d640
nop
or edi, 1
mov dword [rsp + 0x158], edi
lea rdx, str.Check_failed:_success
mov rcx, rax
call fcn.140001010
mov rcx, rax
lea rdx, [0x14006bcdc]
call fcn.140001010
nop
test dil, 1
je 0x140059d1a
and edi, 0xfffffffe
lea rcx, [rsp + 0x30]
call fcn.14000d850
mov eax, esi
add rbp, rax
sub rbx, rax
jne 0x140059ca0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140059da0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
xor edi, edi
mov dword [rax + 8], edi
mov ebx, 8
lea rbp, [rax + 0x10]
mov ecx, ebx
mov esi, ebx
mov r14d, 0xffffffff
nop
cmp rcx, r14
cmova esi, r14d
mov edx, esi
mov rcx, rbp
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140059e35
mov dword [rsp + 0x20], 4
mov r9d, 0x7d
lea r8, str................._artifacts_sentry0.4.186crashpad_third_partymini_chromiummini_chromium_base_rand_util.cc
lea rdx, str.void___cdecl_base::RandBytes_void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14000d640
nop
or edi, 1
mov dword [rsp + 0x150], edi
lea rdx, str.Check_failed:_success
mov rcx, rax
call fcn.140001010
mov rcx, rax
lea rdx, [0x14006bcdc]
call fcn.140001010
nop
test dil, 1
je 0x140059e48
and edi, 0xfffffffe
lea rcx, [rsp + 0x30]
call fcn.14000d850
mov eax, esi
sub rbx, rax
mov rcx, rbx
add rbp, rax
mov esi, ebx
test rbx, rbx
jne 0x140059dd0
mov rax, qword [rsp + 0x158]
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14005add0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x1c0
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14005ae00
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005af0d
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005ae1c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x75
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 6
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005aea6
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005afa9
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005af03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005af03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
jmp 0x14005afa9
test eax, 0x410
jne 0x14005afa9
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005af25
mov rcx, qword [rbx]
lea rdx, [rsp + 0x178]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
test eax, eax
jne 0x14005af41
mov rax, qword [rsp + 0x190]
jmp 0x14005afab
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0xac
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.unsigned___int64___cdecl_crashpad::GetFileSize_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14005af83
mov rbx, qword [rbx]
lea rdx, str.stat
mov rcx, rax
call fcn.140001010
mov rcx, rax
mov rdx, rbx
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__::operator___void_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140058920
add rsp, 0x1c0
pop rbx
ret
Function at 0x14005afd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rsp + 0x178], rax
movzx edi, dl
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14005b007
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005b10f
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005b023
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x82
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsDirectory_const_class_base::FilePath__bool_
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005b0ad
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005b11a
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b106
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b106
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
xor al, al
jmp 0x14005b123
test dil, dil
jne 0x14005b11e
bt eax, 0xa
jae 0x14005b11e
xor al, al
jmp 0x14005b123
shr eax, 4
and al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140058920
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
Function at 0x14005b150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14005b180
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005b288
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005b19c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x75
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005b226
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005b284
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b27f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b27f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
xor al, al
jmp 0x14005b290
test eax, 0x410
sete al
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140058920
add rsp, 0x180
pop rbx
ret
Function at 0x14005b840
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14005b870
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14005b977
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005b88b
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x30
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::LoggingRemoveDirectoryImpl_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.RemoveDirectory
mov rcx, rax
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005b915
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005b973
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b96e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b96e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
xor al, al
jmp 0x14005b979
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140058920
add rsp, 0x180
pop rbx
ret
Function at 0x14005b9a0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14005b9d0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005b9f4
and eax, 0x410
cmp eax, 0x410
jne 0x14005b9f4
mov rcx, rbx
call fcn.14005b840
jmp 0x14005bb0a
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005ba01
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005bb08
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005ba1c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x95
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingRemoveFile_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.DeleteFile
mov rcx, rax
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005baa6
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005bb04
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005baff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005baff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
xor al, al
jmp 0x14005bb0a
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140058920
add rsp, 0x180
pop rbx
ret
Function at 0x14005c1d0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, rcx
mov dword [rsp + 0x158], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, ax
shr dx, 8
cmp al, 6
jb 0x14005c2a4
jne 0x14005c208
cmp dx, 1
jbe 0x14005c2a4
mov ecx, dword [0x140092298]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140092880], eax
jg 0x14005c2b8
xor edx, edx
mov r8d, 0x10000000
mov rcx, rbx
call qword [0x140092878]
test eax, eax
jne 0x14005c2ad
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x21
lea r8, str................._artifacts_sentry0.4.186crashpadutilwincritical_section_with_debug_info.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::CrashpadInitializeCriticalSectionEx_struct__RTL_CRITICAL_SECTION__unsigned_long_unsigned_long_
lea rcx, [rsp + 0x30]
call fcn.14000d7d0
nop
mov dword [rsp + 0x158], 1
lea rdx, str.InitializeCriticalSectionEx
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rsp + 0x30]
call fcn.14000dae0
xor al, al
add rsp, 0x140
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
add rsp, 0x140
pop rbx
ret
lea rcx, [0x140092880]
call fcn.140058af4
cmp dword [0x140092880], 0xffffffff
jne 0x14005c22f
mov r8b, 1
lea rdx, str.::InitializeCriticalSectionEx
lea rcx, [0x14006c1f0]
call fcn.14001a370
mov qword [0x140092878], rax
lea rcx, [0x140092880]
call fcn.140058a94
jmp 0x14005c22f
Function at 0x14000a3c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140051028]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [0x140056d54]
mov qword [rsp + 0x50], rax
lea rax, str..payload_encode.bin
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x58]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000a430
lea rcx, str.Failed_to_convert_string_to_wide_string._n
call fcn.14000a5b0
jmp 0x14000a59c
movsxd rax, dword [rsp + 0x44]
mov ecx, 2
mul rcx
seto cl
mov rdx, 0xffffffffffffffff
test cl, 1
cmovne rax, rdx
mov rcx, rax
call fcn.140015028
mov qword [rsp + 0x60], rax
mov r10d, dword [rsp + 0x44]
mov rax, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], r10d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x60]
mov edx, 0x80000000
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x48], rax
jne 0x14000a4df
mov rdx, qword [rsp + 0x58]
lea rcx, str.Error_opening_file_for_reading:__s_n
call fcn.14000a5b0
jmp 0x14000a59c
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0xffffffff
jne 0x14000a51e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_getting_file_size._Error_code:__d_n
mov edx, eax
call fcn.14000a5b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a59c
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
call fcn.140015028
mov qword [0x140056d48], rax
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax]
mov rdx, qword [0x140056d48]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x14000a591
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_reading_file._Error_code:__d_n
mov edx, eax
call fcn.14000a5b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140056d48]
cmp rcx, 0
je 0x14000a58f
call fcn.140014ff4
jmp 0x14000a59c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400157d0
nop
add rsp, 0x78
ret
Function at 0x14000a690
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x140051028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x30
call fcn.140018040
mov rax, qword [rsp + 0x28]
cmp rax, qword [rsp + 0x38]
jae 0x14000a826
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov rcx, rax
mov rdx, rsi
mov r9d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [rsp + 0x70], 0x20000
jne 0x14000a812
cmp dword [rsp + 0x6c], 0x40
je 0x14000a747
cmp dword [rsp + 0x6c], 0x20
je 0x14000a747
cmp dword [rsp + 0x6c], 4
jne 0x14000a812
mov rax, qword [rsp + 0x30]
cmp rax, qword [rsp + 0x48]
jb 0x14000a810
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rcx, qword [rsp + 0x60]
cmp rax, rcx
ja 0x14000a810
lea rdx, [rsp + 0x48]
lea rcx, [0x140056d68]
mov r8d, 0x30
call fcn.140017990
lea rcx, [0x140054f60]
lea rdx, str.Address:
call fcn.14000a840
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14000aaf0
lea rdx, str._tSize:
mov rcx, rax
call fcn.14000a840
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.14000ace0
lea rdx, str._tstate:
mov rcx, rax
call fcn.14000a840
mov rcx, rax
call fcn.14000aef0
mov edx, dword [rsp + 0x68]
mov rcx, rax
call fcn.14000af30
lea rdx, str._ttype:
mov rcx, rax
call fcn.14000a840
mov rcx, rax
call fcn.14000aef0
mov edx, dword [rsp + 0x70]
mov rcx, rax
call fcn.14000af30
mov rcx, rax
call fcn.14000b170
jmp 0x14000a812
mov rax, qword [rsp + 0x60]
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x14000a6ee
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400157d0
nop
add rsp, 0xb0
pop rsi
ret