joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f5390
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1401f53b9
mov rcx, qword [rsi]
jmp 0x1401f53c2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401f540b
mov dil, 1
test bl, bl
je 0x1401f53f4
cmp byte [rsi + 8], 1
je 0x1401f53e0
mov rcx, qword [rsi]
jmp 0x1401f53e9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140192360
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1401f5422
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1401f5425
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401f5438
xor edi, edi
jmp 0x1401f53f4
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x1401f5451
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1401f5454
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1401f53f4

Function at 0x1401f8c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
mov rax, r8
sub rax, rdx
je 0x1401f8ccd
js 0x1401f8cd1
shr rax, 2
lea r9, [0x1402840a0]
movzx r10d, al
movzx r11d, byte [rdx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rdx
cmp rdx, r8
jne 0x1401f8cac
cmp eax, dword [rcx + 0x18]
sete al
ret
xor eax, eax
jmp 0x1401f8cc6
int3
Function at 0x1401f8d10
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1402c6ba8], 0
je 0x1401f8d56
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140192360
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1402c6bb0]
test rdi, rdi
je 0x1401f8df7
test byte [0x1402b6750], 1
je 0x1401f8d39
cmp byte [rdi + 0x17], 0
jns 0x1401f8d78
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402c6ba8], rax
inc rax
cmp rax, 1
ja 0x1401f8d39
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401ce350
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1401f8ebb
xor esi, esi
jmp 0x1401f8d39
mov ecx, Ordinal_26
call fcn.14018fb98
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401ce350
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140270080]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14013f230
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1401f8e61
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1401f8e87
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14016f420
mov qword [0x1402c6bb0], rdi
jmp 0x1401f8d66
add rax, rax
test rax, rax
je 0x1401f8e66
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1401f8e8a
cmp rdx, 0xfffffffffffffffe
je 0x1401f8e66
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1401834a0
jmp 0x1401f8e66
mov rcx, qword [0x1402c6bb0]
lea rdx, [rsp + 0x40]
call fcn.14002df70
mov rcx, qword [0x1402c6bb0]
call fcn.1401f2480
cmp word [rax], 0x5c
je 0x1401f8ef7
mov rcx, qword [0x1402c6bb0]
lea rdx, [0x140278900]
mov r8d, 1
call fcn.14016f420
mov rcx, qword [0x1402c6bb0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14016f420
mov rcx, qword [0x1402c6bb0]
cmp byte [rcx + 0x17], 0
jns 0x1401f8f20
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402c6ba8], rax
inc rax
cmp rax, 1
ja 0x1401f8d39
mov qword [0x1402c6ba8], 0
jmp 0x1401f8df0
Function at 0x140201db0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140201df6
mov r15, rbx
test r15, r15
je 0x140201f04
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140201e52
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140201e41
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1401cdcb0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140201dd2
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140201f17
lea rcx, [r13*8]
call fcn.14018fb98
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140201eb7
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x140201f04
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x140201e9c
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140201ed7
add rbx, 0xfffffffffffffff8
jne 0x140201eca
jmp 0x140201ef1
test r12, r12
je 0x140201dd2
mov rcx, r12
call fcn.14018fb90
mov r15, qword [rsi + 0x10]
jmp 0x140201dd2
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401cf0c0
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1401cf0c0
call fcn.1401cf0c0
int3

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r15, qword [rcx + 0x58]
cmp rdi, r15
je 0x140210976
mov rbx, rcx
lea r14, [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
call fcn.14022a880
test al, al
jne 0x140210972
add rdi, 0x70
cmp rdi, r15
jne 0x14021095a
mov r15, qword [rbx + 0x58]
cmp rdi, r15
je 0x1402109af
cmp byte [rdi + 0x27], 0
js 0x140210987
lea rcx, [rdi + 0x10]
jmp 0x14021098b
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x1402109b4
mov qword [rsi], rdi
xor ebx, ebx
jmp 0x1402109b4
mov ebx, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140192360
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140210b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r9
mov ebp, r8d
mov rdi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rbx, qword [rcx + 0x50]
mov r15, qword [rcx + 0x58]
cmp rbx, r15
je 0x140210b8a
lea r14, [rsp + 0x20]
mov rcx, rbx
mov rdx, r14
call fcn.14022a880
test al, al
jne 0x140210b86
add rbx, 0x70
cmp rbx, r15
jne 0x140210b6e
mov r15, qword [rdi + 0x58]
mov r14d, 1
cmp rbx, r15
je 0x140210bdd
mov eax, dword [rbx + 0x68]
cmp eax, ebp
jne 0x140210bce
cmp byte [rbx + 0x27], 0
jns 0x140210ba8
mov rcx, qword [rbx + 0x10]
jmp 0x140210bac
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140210bdd
shr eax, 3
and eax, 2
mov r14d, eax
jne 0x140210bdd
mov byte [rdi + 0x48], 1
mov qword [rsi], rbx
xor r14d, r14d
jmp 0x140210bdd
xor ecx, ecx
cmp eax, 1
sete cl
lea r14d, [rcx + rcx*2]
inc r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140192360
mov eax, r14d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1402161b0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [0x1402ccd80]
test rax, rax
jne 0x1402161f4
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1402ccd80]
test rax, rax
je 0x1402161e1
cmp eax, 2
jne 0x14021623d
cmp dword [0x1402c6bb8], 2
jg 0x1402162d4
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, Ordinal_145
mov r9d, 2
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1402162c7
mov eax, 1
lock xadd qword [0x1402ccdb8], rax
inc rax
cmp rax, 2
jl 0x140216261
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1402ccd40], eax
mov qword [0x1402ccd38], rsi
mov rcx, qword [0x1402c28e0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1402c6bb8], 2
jg 0x1402162d4
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0xbc
mov r9d, 2
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, reloc.WLDAP32.dll_Ordinal_46
call fcn.140172f40
mov rcx, rsi
call fcn.14000b670
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140192360
xor eax, eax
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x14021d300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rcx
mov rcx, r8
mov r8, rax
jmp fcn.14021d6f0
Function at 0x140227d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call fcn.14005c370
test rax, rax
jne 0x140227dae
mov rcx, rdi
call fcn.140051550
test al, al
je 0x140227dae
mov r8d, Ordinal_41
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140052bc0
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x14022a02a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14022a049
mov edi, eax
shr eax, 0xa
xor bl, 1
test al, bl
jne 0x14022a0aa
and edi, 0x10
shr edi, 4
jmp 0x14022a0ac
mov ecx, 2
call fcn.14018df00
test al, al
je 0x14022a0aa
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, Ordinal_133
mov r9d, 2
call fcn.1401f9570
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140172f40
mov rcx, rax
mov rdx, rsi
call fcn.1401fa420
mov rcx, rdi
call fcn.1401f95e0
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140192360
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret

Function at 0x14022a0d0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x14022a0fb
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14022a182
test bl, bl
je 0x14022a11f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14022a19f
mov ecx, 2
call fcn.14018df00
test al, al
je 0x14022a180
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x61
mov r9d, 2
call fcn.1401f9570
lea rcx, [rsp + 0x40]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140172f40
mov rcx, rax
mov rdx, rsi
call fcn.1401fa420
mov rcx, rdi
call fcn.1401f95e0
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140192360
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.14022a000
test al, al
jne 0x14022a182
mov ecx, 2
call fcn.14018df00
test al, al
je 0x14022a180
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x5c
mov r9d, 2
call fcn.140024610
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1401fa420
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.140172f40
mov rcx, rdi
call fcn.14000b670
jmp 0x14022a180
Function at 0x14022a210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x14022a237
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14022a267
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140192360
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14018df00
test al, al
je 0x14022a2c8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, Ordinal_117
mov r9d, 2
call fcn.1401f9570
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140172f40
mov rcx, rax
mov rdx, rsi
call fcn.1401fa420
mov rcx, rdi
call fcn.1401f95e0
xor esi, esi
jmp 0x14022a24b

Function at 0x14022a2d0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x14022a2f7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
not eax
test eax, 0x410
setne al
or al, cl
je 0x14022a3ad
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14022a321
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x14022a391
mov ecx, 2
call fcn.14018df00
test al, al
je 0x14022a38f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, reloc.WLDAP32.dll_Ordinal_147
mov r9d, 2
call fcn.1401f9570
lea rcx, [rsp + 0x38]
lea rdx, str.DeleteFile
mov r8d, Ordinal_14
call fcn.140172f40
mov rcx, rax
mov rdx, rsi
call fcn.1401fa420
mov rcx, rdi
call fcn.1401f95e0
xor edi, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140192360
mov eax, edi
add rsp, 0x168
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140192360
mov rcx, rsi
add rsp, 0x168
pop rdi
pop rsi
jmp fcn.14022a3d0

Function at 0x14022a3d0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x14022a3f8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
je 0x14022a426
test edi, edi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140192360
mov eax, ebx
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14018df00
test al, al
je 0x14022a404
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x2f
mov r9d, 2
call fcn.1401f9570
lea rcx, [rsp + 0x40]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140172f40
mov rcx, rax
mov rdx, rsi
call fcn.1401fa420
mov rcx, rbx
call fcn.1401f95e0
jmp 0x14022a404
Function at 0x14023d280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
sets al
test rdx, rdx
sete cl
or cl, al
je 0x14023d29c
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call 0x14023d2e0
test edi, edi
je 0x14023d295
cmp byte [rsi + rdi - 1], 0xa
je 0x14023d295
lea rcx, [0x140275977]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14023d2e0
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x14023d357
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x14023d357
add rdi, rax
test ecx, ecx
jne 0x14023d31d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140192360
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14023d2e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
sets al
test rdx, rdx
sete cl
or cl, al
je 0x14023d29c
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call 0x14023d2e0
test edi, edi
je 0x14023d295
cmp byte [rsi + rdi - 1], 0xa
je 0x14023d295
lea rcx, [0x140275977]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14023d2e0
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x14023d357
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x14023d357
add rdi, rax
test ecx, ecx
jne 0x14023d31d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140192360
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140241290
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x1402412f0
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140192360
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1402413b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x190
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x188], rax
movaps xmm0, xmmword [0x140270080]
lea rsi, [rsp + 0x150]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x140241443
mov ecx, 1
call fcn.14018df00
test al, al
je 0x140241443
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x10a
mov r9d, 1
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, Ordinal_46
call fcn.140172f40
mov rcx, rsi
call fcn.14000b670
mov eax, dword [rsp + 0x170]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140192360
mov eax, esi
add rsp, 0x190
pop rsi
ret
Function at 0x140254f60
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x140270080]
lea r15, [rsp + 0x150]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401d4250
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.14025df30
test al, al
je 0x140255077
movzx eax, word [rsp + 0x150]
cmp eax, 0x5a4d
jne 0x140255031
mov rcx, r14
call fcn.1401d4250
movsxd r14, dword [rsp + 0x18c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.14025df30
test al, al
je 0x140255103
cmp dword [rbx], 0x4550
jne 0x140255142
mov sil, 1
test rdi, rdi
je 0x1402550e2
mov qword [rdi], r14
jmp 0x1402550e2
mov ecx, 1
call fcn.14018df00
test al, al
je 0x1402550e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402550b7
mov ecx, 1
call fcn.14018df00
test al, al
je 0x1402550e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.140172f40
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x1402550cd
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140172f40
mov rcx, rdi
call fcn.14000b670
xor esi, esi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140192360
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.14018df00
test al, al
je 0x1402550e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402550b1
mov ecx, 1
call fcn.14018df00
test al, al
je 0x1402550e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140024610
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402550b7