joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fc958
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
jmp 0x14011e4b4
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14011e4db
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011e513
and eax, 0x410
cmp eax, 0x410
jne 0x14011e513
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x14011e606
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14011e51f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x14011e5ea
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14011e5e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.140006489
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140052710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14011e5c1
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140006489
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x14011e5de
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
lea rcx, [rsp + 0x50]
call fcn.140049000
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14011e62d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x14011e6f8
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14011e6f6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140006489
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140052710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14011e6cf
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140006489
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x14011e6ec
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
lea rcx, [rsp + 0x50]
call fcn.140049000
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x1400fc960
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov eax, dword [0x1401c0230]
mov ecx, dword [0x1401bc798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fc9c3
cmp rdi, rbx
je 0x1400fc9b9
mov eax, 0xffffffff
lea rcx, [0x1401bfe30]
movzx edx, byte [rdi]
movzx esi, al
xor esi, edx
shr eax, 8
xor eax, dword [rcx + rsi*4]
inc rdi
cmp rbx, rdi
jne 0x1400fc99f
not eax
jmp 0x1400fc9bb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401c0230]
call fcn.140147d80
cmp dword [0x1401c0230], 0xffffffff
jne 0x1400fc98e
xor r9d, r9d
lea r8, [0x1401bfe30]
mov edx, 8
mov ecx, r9d
mov eax, ecx
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
dec edx
jne 0x1400fc9ea
mov dword [r8 + r9*4], ecx
inc r9
cmp r9, 0x100
jne 0x1400fc9e2
lea rcx, [0x1401c0230]
call fcn.140147e18
jmp 0x1400fc98e

Function at 0x1401012f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140101309
mov dword [rsi], eax
mov al, 1
jmp 0x14010130b
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x1401022b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401c0258]
mov ecx, dword [0x1401bc798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401022e5
lea rcx, [0x1401c0250]
add rsp, 0x28
jmp fcn.1400bef60
lea rcx, [0x1401c0258]
call fcn.140147d80
cmp dword [0x1401c0258], 0xffffffff
jne 0x1401022d5
mov qword [0x1401c0250], 0
lea rcx, [0x1401c0250]
xor edx, edx
call fcn.1400beff0
lea rcx, [0x1401c0258]
call fcn.140147e18
jmp 0x1401022d5

Function at 0x1401162d8
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x180
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140116370]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x14011633d
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140147fd0
nop
add rsp, 0x180
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r8d, 0x19
mov r9d, 3
call fcn.140048f30
mov rcx, rsi
call fcn.140049000
jmp 0x140116323
Function at 0x14011e4b4
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
jmp 0x14011e4b4
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14011e4db
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011e513
and eax, 0x410
cmp eax, 0x410
jne 0x14011e513
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x14011e606
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14011e51f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x14011e5ea
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14011e5e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.140006489
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140052710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14011e5c1
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140006489
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x14011e5de
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
lea rcx, [rsp + 0x50]
call fcn.140049000
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14011e62d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x14011e6f8
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14011e6f6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140006489
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140052710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14011e6cf
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140006489
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x14011e6ec
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
lea rcx, [rsp + 0x50]
call fcn.140049000
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x14011e606
Capabilities:
Delete directory

Disassembly:
jmp 0x14011e4b4
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14011e4db
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011e513
and eax, 0x410
cmp eax, 0x410
jne 0x14011e513
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x14011e606
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14011e51f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x14011e5ea
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14011e5e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.140006489
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140052710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14011e5c1
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140006489
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x14011e5de
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
lea rcx, [rsp + 0x50]
call fcn.140049000
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14011e62d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x14011e6f8
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14011e6f6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140006489
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140052710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14011e6cf
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140006489
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x14011e6ec
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
lea rcx, [rsp + 0x50]
call fcn.140049000
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x14012633a
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x140126393
cmp byte [rcx], 0x4d
jne 0x140126393
cmp byte [rcx + 1], 0x5a
jne 0x140126393
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x140126395
cmp r9, rdx
jae 0x140126395
cmp r9d, 0x40
jb 0x140126395
mov r10d, r9d
and r10d, 7
test r10, r10
jne 0x140126395
cmp byte [rcx + r9], 0x50
jne 0x140126393
cmp byte [rcx + r9 + 1], 0x45
jne 0x140126393
cmp byte [rcx + r9 + 2], 0
jne 0x140126393
cmp byte [rcx + r9 + 3], 0
je 0x140126396
xor eax, eax
ret
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x140126395
cmp rdx, 2
jb 0x140126395
cmp word [rcx + r9], r8w
sete al
ret
Function at 0x14012d8a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x190
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rsi, [rsp + 0x158]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x14012d921
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x14012d921
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0xb0
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x28]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.140006489
mov rcx, rsi
call fcn.1400486f0
mov eax, dword [rsp + 0x178]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x190
pop rsi
ret
Function at 0x140140a3e
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.140141498
lea r9, [rsp + 0x160]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
call fcn.140145ce6
test al, al
je 0x140140af0
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140140b39
mov rcx, rdi
call fcn.140141498
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.140145ce6
test al, al
je 0x140140b82
cmp dword [rbx], 0x4550
jne 0x140140bc5
mov sil, 1
test r14, r14
je 0x140140c30
mov qword [r14], rdi
jmp 0x140140c30
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140c2e
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x140140c05
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140c2e
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140140c05
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140c2e
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140140b2e
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140c2e
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.140006489
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140140c1b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140006489
mov rcx, rdi
call fcn.1400486f0
xor esi, esi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140140c50
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.140141498
lea r9, [rsp + 0x160]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
call fcn.140145ce6
test al, al
je 0x140140d02
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140140d4b
mov rcx, rdi
call fcn.140141498
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.140145ce6
test al, al
je 0x140140d94
cmp dword [rbx], 0x4550
jne 0x140140dd7
mov sil, 1
test r14, r14
je 0x140140e42
mov qword [r14], rdi
jmp 0x140140e42
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140e40
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x140140e17
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140e40
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140140e17
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140e40
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140140d40
mov ecx, 1
call fcn.1400481e0
test al, al
je 0x140140e40
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140048290
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.140006489
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140140e2d
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140006489
mov rcx, rdi
call fcn.1400486f0
xor esi, esi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140143934
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx + 0x48], 0x1003f
mov eax, dword [rdx + 0x234]
mov dword [rcx + 0x4c], eax
mov eax, dword [rdx + 0x238]
mov dword [rcx + 0x50], eax
mov eax, dword [rdx + 0x23c]
mov dword [rcx + 0x54], eax
mov eax, dword [rdx + 0x240]
mov dword [rcx + 0x58], eax
mov eax, dword [rdx + 0x24c]
mov dword [rcx + 0x5c], eax
mov eax, dword [rdx + 0x250]
mov dword [rcx + 0x60], eax
lea rdx, [rcx + 0x64]
lea rbx, [rdi + 0x34]
mov rcx, rbx
call fcn.140116c98
movzx eax, word [rdi + 0x30]
mov dword [rsi + 0xd4], eax
movzx eax, word [rdi + 0x2e]
mov dword [rsi + 0xd8], eax
movzx eax, word [rdi + 0x2c]
mov dword [rsi + 0xdc], eax
movzx eax, word [rdi + 0x2a]
mov dword [rsi + 0xe0], eax
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0xe4], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0xe8], eax
mov eax, dword [rdi + 4]
mov dword [rsi + 0xec], eax
mov eax, dword [rdi + 0xc]
mov dword [rsi + 0xf0], eax
mov eax, dword [rdi + 8]
mov dword [rsi + 0xf4], eax
mov eax, dword [rdi]
mov dword [rsi + 0xf8], eax
mov eax, dword [rdi + 0x18]
mov dword [rsi + 0xfc], eax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x100], eax
movzx eax, word [rdi + 0x28]
mov dword [rsi + 0x104], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x108], eax
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x10c], eax
movzx eax, word [rdi + 0x32]
mov dword [rsi + 0x110], eax
add rsi, 0x114
mov r8d, 0x200
mov rcx, rsi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14014a9e0

Function at 0x1401553cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401554fc
Function at 0x140004be2
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._usr_local_Cellar_nim_1.6.12_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.14000427e
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x140043700]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x140043700]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140004d31
mov qword [rbp - 0x40], 0x333
lea rax, str._usr_local_Cellar_nim_1.6.12_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x140004c93
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x140004ca7
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.14000f475
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [fcn.140040d90]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call fcn.140004989
mov qword [rbp - 0x40], 0xb
lea rax, [0x140043700]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140004d0b
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140004d24
call fcn.140010425
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140004c61
nop
mov qword [rbp - 0x40], 0x339
lea rax, str._usr_local_Cellar_nim_1.6.12_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [fcn.140040d90]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14004373a]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str._usr_local_Cellar_nim_1.6.12_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [fcn.140040d90]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x1c], eax
call fcn.1400042fd
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x14000570a
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
je 0x140005771
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140005540
jmp 0x140005772
nop
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret
Function at 0x140007601
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140007631
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400075c3
mov rcx, rax
jmp 0x140007636
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000fc02
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret