joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14042ae20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, edx
mov rsi, qword [rcx + 0x38]
mov rbx, qword [rcx + 0x30]
cmp rbx, rsi
je 0x14042ae9b
cmp dword [rbx + 0x78], ebp
jne 0x14042ae92
cmp qword [rbx + 0x28], 8
lea rcx, [rbx + 0x10]
jb 0x14042ae59
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14042ae92
test al, 0x10
jne 0x14042ae92
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14042ae84
mov rdx, rbx
mov rcx, rax
call fcn.1404294f0
add qword [rdi + 8], 0x78
jmp 0x14042ae92
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140428de0
sub rbx, 0xffffffffffffff80
cmp rbx, rsi
jne 0x14042ae46
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14042aec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
movups xmm0, xmmword [rdx]
mov rdi, qword [rcx + 0x38]
mov r14, r9
mov rbx, qword [rcx + 0x30]
mov ebp, r8d
movaps xmmword [rsp + 0x20], xmm0
mov rsi, rcx
cmp rbx, rdi
je 0x14042af1a
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1404346b0
test al, al
jne 0x14042af1a
sub rbx, 0xffffffffffffff80
cmp rbx, rdi
jne 0x14042af00
cmp rbx, qword [rsi + 0x38]
jne 0x14042af27
mov eax, 1
jmp 0x14042af73
mov eax, dword [rbx + 0x78]
cmp eax, ebp
jne 0x14042af57
cmp qword [rbx + 0x28], 8
lea rcx, [rbx + 0x10]
jb 0x14042af3c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, 1
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
cmove ecx, edx
jmp 0x14042af66
mov ecx, 1
mov edx, 4
cmp eax, ecx
cmove ecx, edx
test ecx, ecx
jne 0x14042af71
mov byte [rsi + 0x28], 1
mov qword [r14], rbx
mov eax, ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14042bbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rbx, rdx
lea rdx, [rsp + 0x68]
call fcn.140429ad0
mov rsi, qword [rax]
mov qword [rax], 0
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x68]
call fcn.140429780
test rsi, rsi
jne 0x14042bc27
lea edi, [rsi + 3]
jmp 0x14042bc96
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsi + 0x38]
mov rbx, qword [rsi + 0x30]
cmp rbx, rdi
je 0x14042bc5a
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1404346b0
test al, al
jne 0x14042bc5a
sub rbx, 0xffffffffffffff80
cmp rbx, rdi
jne 0x14042bc40
cmp rbx, qword [rsi + 0x38]
jne 0x14042bc67
mov edi, 1
jmp 0x14042bc96
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14042bc75
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x14042bc60
shr edi, 3
and edi, 2
jne 0x14042bc96
mov rdx, rbx
mov rcx, rbp
call fcn.1404299c0
nop
lea rcx, [rsp + 0x20]
call fcn.140429780
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140431510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rdi, rcx
mov dword [rsp + 0x148], 0
mov ebx, 1
mov rax, qword [0x14088f030]
test rax, rax
jne 0x140431546
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140431530
cmp eax, 2
jne 0x14043158a
mov dword [rsp + 0x20], eax
mov r9d, 0x86
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadclientcrashpad_client_win.cc
lea rdx, str.long___cdecl_crashpad::_anonymous_namespace::UnhandledExceptionHandler_struct__EXCEPTION_POINTERS__
lea rcx, [rsp + 0x30]
call fcn.140437f10
nop
mov dword [rsp + 0x148], ebx
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov rcx, rax
call fcn.1400c90c0
nop
jmp 0x140431630
mov rax, qword [0x14088f010]
test rax, rax
je 0x1404315a3
mov rcx, rdi
call rax
test al, al
jne 0x14043164e
lock xadd qword [0x14088f060], rbx
lea rax, [rbx + 1]
cmp rax, 1
jle 0x1404315c3
xor edx, edx
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14088f008], eax
mov qword [0x14088f000], rdi
mov rcx, qword [0x1405fa530]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 2
mov r9d, 0xb6
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadclientcrashpad_client_win.cc
lea rdx, str.long___cdecl_crashpad::_anonymous_namespace::UnhandledExceptionHandler_struct__EXCEPTION_POINTERS__
lea rcx, [rsp + 0x30]
call fcn.140437f10
nop
mov dword [rsp + 0x148], 2
lea rdx, str.crash_server_did_not_respond__self_terminating
mov rcx, rax
call fcn.1400c90c0
nop
lea rcx, [rsp + 0x30]
call fcn.140438120
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xffff7001
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret

Function at 0x140432ec0
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140433ae0
push rbx
sub rsp, 0x130
mov ebx, 0xffffffff
mov qword [rsp + 0x20], 0
cmp r8, rbx
lea r9, [rsp + 0x150]
cmova r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140433b20
mov rax, 0xffffffffffffffff
add rsp, 0x130
pop rbx
ret
mov dword [rsp + 0x158], ebx
cmp dword [rsp + 0x150], ebx
jne 0x140433b7e
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x150]
call fcn.140432ed0
test rax, rax
je 0x140433b7e
mov r9d, 0x65
mov qword [rsp + 0x20], rax
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.140437f90
lea rcx, [rsp + 0x30]
call fcn.140438120
mov eax, dword [rsp + 0x150]
add rsp, 0x130
pop rbx
ret
Function at 0x140433920
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x140
mov rbx, rcx
mov dword [rax + 0x10], 0
xor r9d, r9d
lea r8, [rax + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1404339a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0xea
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::LoggingSeekFile_void____int64_int_
lea rcx, [rsp + 0x30]
call fcn.1404380a0
nop
mov dword [rsp + 0x158], 4
lea rdx, [0x14053db88]
mov rcx, rax
call fcn.1400c90c0
nop
lea rcx, [rsp + 0x30]
call fcn.1404383e0
xor al, al
add rsp, 0x140
pop rbx
ret
cmp qword [rsp + 0x160], 0
jne 0x140433a15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140433a20
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0xf4
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_file_io_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingTruncateFile_void__
lea rcx, [rsp + 0x30]
call fcn.1404380a0
nop
mov dword [rsp + 0x158], 1
lea rdx, [0x14053dba0]
mov rcx, rax
call fcn.1400c90c0
nop
lea rcx, [rsp + 0x30]
call fcn.1404383e0
xor al, al
add rsp, 0x140
pop rbx
ret
mov al, 1
add rsp, 0x140
pop rbx
ret

Function at 0x140433c00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0xffffffff
lea r9, [rsp + 0x160]
cmp r8, rbp
cmova edi, ebp
xor r14d, r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140433cef
nop word [rax + rax]
mov dword [rsp + 0x168], ebp
cmp dword [rsp + 0x160], ebp
je 0x140433c65
mov rax, r14
jmp 0x140433c81
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x160]
call fcn.140432ed0
test rax, rax
je 0x140433cb3
mov r9d, 0x7e
mov qword [rsp + 0x20], rax
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::ReadFile_void__void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.140437f90
lea rcx, [rsp + 0x30]
call fcn.140438120
cmp dword [rsp + 0x160], r14d
jne 0x140433d15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140433d15
lea r9, [rsp + 0x160]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140433c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x160]
jmp 0x140433cfd
Function at 0x140435110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
movzx edi, dl
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140435147
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14043523d
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140435163
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x150]
call fcn.140438d20
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, 0x81
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsDirectory_const_class_base::FilePath__bool_
lea rcx, [rsp + 0x48]
call fcn.1404380a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400c90c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1404351e2
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400c8cd0
nop
lea rcx, [rsp + 0x48]
call fcn.1404383e0
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x140435248
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140435234
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140435272
call fcn.1403e3650
xor al, al
jmp 0x140435251
test dil, dil
jne 0x14043524c
bt eax, 0xa
jae 0x14043524c
xor al, al
jmp 0x140435251
shr eax, 4
and al, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1403e3630
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call fcn.1403fd768
int3
Function at 0x140435280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x1404352b0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1404353bd
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1404352cc
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x150]
call fcn.140438d20
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, reloc.WS2_32.dll_WSACleanup
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea rcx, [rsp + 0x48]
call fcn.1404380a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400c90c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14043534b
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400c8cd0
nop
lea rcx, [rsp + 0x48]
call fcn.1404383e0
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x1404353a2
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14043539d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1404353c8
call fcn.1403e3650
xor al, al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x180
pop rbx
ret
test eax, 0x410
jne 0x1404353a2
mov al, 1
jmp 0x1404353a4
call fcn.1403fd768
int3
Function at 0x1404356b0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x1404356e0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1404357d5
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1404356fb
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x150]
call fcn.140438d20
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, 0x2f
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::LoggingRemoveDirectoryImpl_const_class_base::FilePath__
lea rcx, [rsp + 0x48]
call fcn.1404380a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.RemoveDirectory
mov rcx, rax
call fcn.1400c90c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14043577a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400c8cd0
nop
lea rcx, [rsp + 0x48]
call fcn.1404383e0
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x1404357d1
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1404357cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1404357f0
call fcn.1403e3650
xor al, al
jmp 0x1404357d7
mov al, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x180
pop rbx
ret
call fcn.1403fd768
int3
Function at 0x140435800
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140435830
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140435854
and eax, 0x410
cmp eax, 0x410
jne 0x140435854
mov rcx, rbx
call fcn.1404356b0
jmp 0x140435958
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140435861
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140435956
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14043587c
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x150]
call fcn.140438d20
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, 0x94
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingRemoveFile_const_class_base::FilePath__
lea rcx, [rsp + 0x48]
call fcn.1404380a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.DeleteFile
mov rcx, rax
call fcn.1400c90c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1404358fb
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400c8cd0
nop
lea rcx, [rsp + 0x48]
call fcn.1404383e0
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x140435952
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14043594d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140435971
call fcn.1403e3650
xor al, al
jmp 0x140435958
mov al, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x180
pop rbx
ret
call fcn.1403fd768
int3
Function at 0x140436180
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 0x140436254
jne 0x1404361b8
cmp dx, 1
jbe 0x140436254
mov ecx, dword [0x14088e2b4]
mov rax, qword gs:[0x58]
mov edx, 8
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x14088f0a0], eax
jg 0x140436268
xor edx, edx
mov r8d, 0x10000000
mov rcx, rbx
call qword [0x14088f098]
test eax, eax
jne 0x14043625d
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x21
lea r8, str.C:UsersShadowDownloads_sentry_native__1_externalcrashpadutilwincritical_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.1404380a0
nop
mov dword [rsp + 0x158], 1
lea rdx, [0x14052f6d0]
mov rcx, rax
call fcn.1400c90c0
nop
lea rcx, [rsp + 0x30]
call fcn.1404383e0
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, [0x14088f0a0]
call fcn.1403e3aa0
cmp dword [0x14088f0a0], 0xffffffff
jne 0x1404361df
mov r8b, 1
lea rdx, str.::InitializeCriticalSectionEx
lea rcx, str.kernel32.dll
call fcn.1404362b0
mov qword [0x14088f098], rax
lea rcx, [0x14088f0a0]
call fcn.1403e3a34
jmp 0x1404361df

Function at 0x140436460
Capabilities:
Check os version
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
xor edi, edi
movzx esi, dl
mov rbx, rcx
test dl, dl
je 0x1404364ab
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1404364ab
xor ecx, ecx
mov qword [rsp + 0x40], 0x18
mov dword [rsp + 0x54], edi
call fcn.140436500
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x50], 1
cmp qword [rbx + 0x18], 8
jb 0x1404364b5
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov r9d, 2
mov edx, esi
mov dword [rsp + 0x30], 0
shl edx, 0x13
mov rcx, rbx
or edx, 3
mov dword [rsp + 0x28], 0x200
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14043c9f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14043ca18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14043ca18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
lea rdx, [0x180017700]
call fcn.180003d60
mov rbx, rax
test rax, rax
jne 0x18000102c
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x38], rdi
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18000405c
mov rcx, rbx
call fcn.180003c9c
movsxd rdi, eax
test rsi, rsi
jne 0x180001062
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rcx, rbx
mov qword [rsp + 0x30], rbp
call fcn.180004064
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.18000439c
mov rbp, rax
cmp rax, rdi
je 0x18000109e
mov rcx, rsi
call fcn.180004128
mov rcx, rbx
call fcn.180003df0
xor eax, eax
jmp 0x1800010a9
mov rcx, rbx
call fcn.180003df0
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005990]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400059a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400059a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400059a0]
mov dword [rax], 1
mov rax, qword [0x1400059e0]
mov rdx, rax
mov rax, qword [0x1400059d0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x1400059a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400059c0]
mov rdx, rax
mov rax, qword [0x1400059b0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400059a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005990]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400058e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400058e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005980]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005910]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret