joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14022b740
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test r8, r8
je 0x14022b77f
mov rsi, r8
test rcx, rcx
je 0x14022b781
mov rdi, rdx
mov rdx, rsi
call fcn.140104e08
cmp eax, 1
jne 0x14022b781
test rdi, rdi
je 0x14022b78b
mov rcx, rdi
mov rdx, rsi
mov r8d, 0xffffffff
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d37a7
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401007c0

Function at 0x140232680
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1402326ba
test rax, rax
je 0x14023276c
mov rcx, qword [rdi]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
sub rax, qword [rsi]
mov r14, rax
sar r14, 3
lea rcx, [r14 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x140232798
movabs rdx, 0x1fffffffffffffff
mov rbx, rax
sar rbx, 2
cmp rbx, rcx
cmovbe rbx, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae rbx, rdx
test rbx, rbx
jne 0x140232762
xor eax, eax
shl r14, 3
add r14, rax
je 0x14023276c
lea rax, [rax + rbx*8]
mov rcx, qword [rdi]
mov qword [r14], rcx
lea rdx, [r14 + 8]
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rcx
je 0x140232740
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r14 - 8], r9
add r14, 0xfffffffffffffff8
cmp r8, rcx
jne 0x140232728
mov rcx, qword [rsi]
mov qword [rsi], r14
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x1402326b0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140232c00
mov rcx, rbx
call fcn.1402331a0
jmp 0x140232705
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140181600
call fcn.1401a2e30
int3

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov ebx, 1
cmp rdi, r12
je 0x14023b680
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.1402071f8
test al, al
jne 0x14023b648
add rdi, 0x70
cmp rdi, r12
jne 0x14023b62d
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x14023b680
cmp byte [rdi + 0x27], 0
js 0x14023b65a
lea rcx, [rdi + 0x10]
jmp 0x14023b65e
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 0x14023b680
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14013d520
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14023b870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov esi, 1
cmp r14, r12
je 0x14023b8eb
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.1402071f8
test al, al
jne 0x14023b8d0
add r14, 0x70
cmp r14, r12
jne 0x14023b8b5
mov r14, r12
cmp r14, qword [rbx + 0x58]
je 0x14023b8eb
mov eax, dword [r14 + 0x68]
cmp eax, ebp
je 0x14023b909
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14013d520
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp byte [r14 + 0x27], 0
js 0x14023b916
lea rcx, [r14 + 0x10]
jmp 0x14023b91a
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14023b8eb
shr eax, 3
and eax, 2
mov esi, eax
jne 0x14023b8eb
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x14023b8eb
Function at 0x140240db0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x140342628]
test rax, rax
jne 0x140240df4
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x140342628]
test rax, rax
je 0x140240de1
cmp eax, 2
je 0x140240e5a
mov eax, 1
lock xadd qword [0x140342660], rax
test rax, rax
jle 0x140240e19
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1403425e0], eax
mov qword [0x1403425d8], rsi
mov rcx, qword [0x140336cb0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140240ea2
cmp dword [0x14033b1a8], 2
jg 0x140240ea2
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x93
mov r9d, 2
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch
mov r8d, 0x1d
call fcn.1401970a4
mov rcx, rsi
call fcn.1400a0470
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14013d520
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x140246baf
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x140246bee
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x140246bbe
mov dword [rsi], 7
jmp 0x140246bbe
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400c9057
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140246bca
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140246bca
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140246ca0
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140246bc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140246bbe
Function at 0x140259d1d
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ecx, dword [0x140337440]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x140259d6f
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14010a7cd
mov rsi, qword [rax]
call fcn.14010a7f3
mov rcx, qword [rax]
lea rdx, str.xmlGetGlobalState:_out_of_memory_n
mov rax, rsi
call qword [case.0x14017aab5.0]
xor esi, esi
jmp 0x140259d3c
mov ecx, 1
mov edx, 0x3c8
call fcn.140083010
test rax, rax
je 0x140259d4b
mov rsi, rax
mov rcx, rax
call fcn.140228615
mov ecx, 0x10
call fcn.14003dfb0
test rax, rax
je 0x140259e0c
mov rdi, rax
mov qword [rax + 8], rsi
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r15
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r14
mov r8, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [0x140337440]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, [0x140259e50]
xor edx, edx
mov r8, rdi
call fcn.14014ecd8
jmp 0x140259d3c
call fcn.14010a7cd
mov rdi, qword [rax]
call fcn.14010a7f3
mov rcx, qword [rax]
lea rdx, str.xmlGetGlobalState:_out_of_memory_n
mov rax, rdi
call qword [case.0x14017aab5.0]
mov rcx, rsi
add rcx, 0x358
call fcn.1400fb96c
mov rcx, rsi
call fcn.14010f9d0
jmp 0x140259d6b

Function at 0x14025c1a2
Capabilities:
Encode data using xor

Disassembly:
push rsi
mov r11d, dword [rcx + 0x18]
test rdx, rdx
je 0x14025c1ec
movzx r10d, byte [rdx]
mov eax, r10d
shl eax, 5
sub eax, r10d
sub eax, r10d
add eax, r11d
test r10d, r10d
je 0x14025c1ef
inc rdx
movzx r10d, r10b
mov r11d, eax
shl r11d, 5
mov esi, eax
shr esi, 3
add esi, r11d
add esi, r10d
xor eax, esi
mov r10b, byte [rdx]
inc rdx
test r10b, r10b
jne 0x14025c1c7
jmp 0x14025c1ef
mov eax, r11d
mov r10d, eax
shl r10d, 5
mov edx, eax
shr edx, 3
add edx, r10d
xor edx, eax
test r8, r8
je 0x14025c233
mov al, byte [r8]
test al, al
je 0x14025c233
inc r8
movzx eax, al
mov r10d, edx
shl r10d, 5
mov r11d, edx
shr r11d, 3
add r11d, eax
add r11d, r10d
xor edx, r11d
mov al, byte [r8]
inc r8
test al, al
jne 0x14025c20f
mov r8d, edx
shl r8d, 5
mov eax, edx
shr eax, 3
add eax, r8d
xor eax, edx
test r9, r9
je 0x14025c277
mov dl, byte [r9]
test dl, dl
je 0x14025c277
inc r9
movzx edx, dl
mov r8d, eax
shl r8d, 5
mov r10d, eax
shr r10d, 3
add r10d, edx
add r10d, r8d
xor eax, r10d
mov dl, byte [r9]
inc r9
test dl, dl
jne 0x14025c253
xor edx, edx
div dword [rcx + 8]
mov eax, edx
pop rsi
ret
Function at 0x14025e2e6
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp dword [rcx + 0x10108], 0
mov r9d, dword [rcx + 0xd4]
je 0x14025e3a8
test r9d, r9d
je 0x14025e3fe
xor eax, eax
mov ecx, 0xff
mov r10d, dword [rsi + 0x10128]
mov r8d, dword [rsi + 0x10130]
mov edx, r8d
and edx, 0xfffd
mov r11d, r8d
or r11d, 2
xor edx, 3
imul edx, r11d
shr edx, 8
mov r11, qword [rsi + 0x10138]
mov bl, byte [rsi + rax + 0x100]
xor bl, r10b
movzx edi, bl
shr r10d, 8
xor r10d, dword [r11 + rdi*4]
mov dword [rsi + 0x10128], r10d
and r10d, ecx
add r10d, dword [rsi + 0x1012c]
imul r10d, r10d, 0x8088405
inc r10d
mov dword [rsi + 0x1012c], r10d
shr r10d, 0x18
mov edi, r8d
and edi, ecx
xor edi, r10d
shr r8d, 8
xor r8d, dword [r11 + rdi*4]
mov dword [rsi + 0x10130], r8d
xor byte [rsi + rax + 0x100], dl
inc rax
cmp r9, rax
jne 0x14025e314
lea r8, [rsi + 0x100]
mov rdx, qword [rsi + 0x58]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x38]
call qword [case.0x14017aab5.0]
mov edx, dword [rsi + 0x84]
mov r8d, dword [rsi + 0xd4]
xor ecx, ecx
cmp eax, r8d
setne cl
add qword [rsi + 0x10118], r8
neg ecx
add qword [rsi + 0x10120], rdx
xor eax, eax
mov dword [rsi + 0x84], eax
mov dword [rsi + 0xd4], eax
mov eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor r9d, r9d
jmp 0x14025e3a8

Function at 0x14025ee02
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rsi
push rdi
push rbx
movabs rax, 0x2345678912345678
mov qword [rdx], rax
mov dword [rdx + 8], 0x34567890
mov bl, byte [rcx]
test bl, bl
je 0x14025ee84
inc rcx
mov eax, 0x12345678
mov r10d, 0x23456789
mov r9d, 0x34567890
mov r11d, 0xff
mov esi, eax
xor sil, bl
movzx esi, sil
shr eax, 8
xor eax, dword [r8 + rsi*4]
mov dword [rdx], eax
mov esi, eax
and esi, r11d
add esi, r10d
imul r10d, esi, 0x8088405
inc r10d
mov dword [rdx + 4], r10d
mov esi, r10d
shr esi, 0x18
mov edi, r9d
and edi, r11d
xor edi, esi
shr r9d, 8
xor r9d, dword [r8 + rdi*4]
mov dword [rdx + 8], r9d
mov bl, byte [rcx]
inc rcx
test bl, bl
jne 0x14025ee39
pop rbx
pop rdi
pop rsi
ret
Function at 0x14026571e
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.140218020
test al, al
je 0x14026574c
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x14026576d
mov rcx, rdi
call fcn.140284926
mov rcx, rdi
call fcn.14013a6ac
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x140265788
mov edx, 1
call fcn.140264db0
mov rcx, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
test rcx, rcx
je 0x14026579e
call fcn.14010f9d0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1402657b1
lock dec dword [rcx]
jne 0x1402657b1
call fcn.140133cde
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x1402657d2
mov rcx, rdi
call fcn.140284926
mov rcx, rdi
call fcn.14013a6ac
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jb 0x14026580b
call fcn.1400a6030
mov rdi, qword [rsi + 0x28]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x14026582b
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x14017aab5.0]
mov qword [rsi + 0x28], 0
lea rcx, [rsi + 0x20]
call fcn.140131ce0
lea rcx, [rsi + 0x18]
call fcn.140131ce0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14006cb70
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x1402657f4

Function at 0x14026c270
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14026c2be
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x14026c2fc
cmp rdi, rsi
jae 0x14026c2fc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x14026c2b7
jmp 0x14026c2b4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14013d520
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140288203
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x140327038]
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 0x140288263
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013d520
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1402a40aa
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402e6d80]
lea r15, [rsp + 0x160]
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.1401a1e34
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1402b4158
test al, al
je 0x1402a41c1
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1402a417b
mov rcx, r14
call fcn.1401a1e34
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1402b4158
test al, al
je 0x1402a4253
cmp dword [rbx], 0x4550
jne 0x1402a4292
mov sil, 1
test rdi, rdi
je 0x1402a4232
mov qword [rdi], r14
jmp 0x1402a4232
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a4230
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402a4201
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a4230
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401970a4
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1402a4216
and r8d, 0x7f
jmp 0x1402a421d
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401970a4
mov rcx, rdi
call fcn.1400a0470
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14013d520
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a4230
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402a41fb
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a4230
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402a4201
Function at 0x1402a42d8
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402e6d80]
lea r15, [rsp + 0x160]
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.1401a1e34
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1402b4158
test al, al
je 0x1402a43ef
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1402a43a9
mov rcx, r14
call fcn.1401a1e34
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1402b4158
test al, al
je 0x1402a4481
cmp dword [rbx], 0x4550
jne 0x1402a44c0
mov sil, 1
test rdi, rdi
je 0x1402a4460
mov qword [rdi], r14
jmp 0x1402a4460
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a445e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402a442f
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a445e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401970a4
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1402a4444
and r8d, 0x7f
jmp 0x1402a444b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401970a4
mov rcx, rdi
call fcn.1400a0470
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14013d520
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a445e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402a4429
mov ecx, 1
call fcn.140061360
test al, al
je 0x1402a445e
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.14012fd40
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402a442f
Function at 0x18000c680
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000c6dd
lea rbx, [0x180545580]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18000c6c4
cmp r10, 2
jb 0x18000c6c4
cmp byte [r9], r8b
jne 0x18000c6c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18000c6a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000c71f
lea rbx, [0x180545580]
cmp r8b, 0x23
jne 0x18000c703
cmp byte [r9], r8b
jne 0x18000c703
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18000c6f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18000c860
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000c87a
mov qword [r8], 0
lea rdx, [0x180545174]
call fcn.18000c730
mov rbx, rax
test rax, rax
jne 0x18000c89a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18000c971
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c971
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000c971
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c971
cmp rdi, 0xffffffffffffffff
je 0x18000c971
mov rax, qword [0x180593810]
test rax, rax
je 0x18000c90e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18000c971
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000c95e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180593810]
test rax, rax
je 0x18000c953
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000c97a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000c96c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000c97c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret