joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401789
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017c8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017c8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017c8
cmp dword [ecx + 0x74], 0xe
jbe 0x4017c8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407916
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4165f8
push 0x4165f0
push str.FlsAlloc
push 0x1f
call fcn.004077d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40794a
push dword [ebp + 8]
mov ecx, esi
call dword [0x415118]
call esi
jmp 0x407950
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407994
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416608
push 0x416600
push str.FlsGetValue
push 0x21
call fcn.004077d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4079cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x415118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4079d3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416610
push 0x416608
push str.FlsSetValue
push 0x22
call fcn.004077d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a0d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40af9f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b03c
push ebx
push esi
call fcn.0040af68
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040aefc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40afe9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b03b
push edi
push eax
call fcn.004080c5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b009
call fcn.00407668
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b03a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040aefc
add esp, 0x20
test eax, eax
jne 0x40b028
push edi
call fcn.00407668
jmp 0x40b030
push ebx
call fcn.00407668
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4109d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41cfe8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410a17
cmp byte [ebx], 0xa
jne 0x410a17
or byte [edi + eax + 0x28], 4
jmp 0x410a1c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x410b1b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x410afe
inc eax
cmp dl, 0xd
je 0x410a48
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410a6e
cmp eax, ecx
jae 0x410a7c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x410a30
jmp 0x410b1b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410af9
cmp dword [ebp - 0x10], 0
je 0x410af9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41cfe8]
test byte [eax + edi + 0x28], 0x48
je 0x410ad3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x410abe
mov byte [esi], dl
jmp 0x410acf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41cfe8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410b1b
cmp byte [ebp - 1], 0xa
jne 0x410ae2
cmp esi, ebx
jne 0x410ae2
mov byte [esi], 0xa
jmp 0x410b1a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410b1b
mov byte [esi], 0xd
jmp 0x410b1a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41cfe8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x410b18
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410b1b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410b24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41cfe8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410b6a
cmp word [ebx], dx
jne 0x410b6a
or byte [eax + edi + 0x28], 4
jmp 0x410b6f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x410cd2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x410cb2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x410bb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410be6
cmp eax, edx
jae 0x410bf4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x410b8b
jmp 0x410cd2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410cad
cmp dword [ebp - 0x18], 0
je 0x410cad
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41cfe8]
test byte [eax + edi + 0x28], 0x48
je 0x410c83
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x410c47
mov word [esi], cx
jmp 0x410c7e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41cfe8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41cfe8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41cfe8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x410cd2
pop eax
cmp word [ebp - 4], ax
jne 0x410c93
cmp esi, ebx
jne 0x410c93
mov word [esi], ax
jmp 0x410ccf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00410947
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x410cd2
push 0xd
pop eax
jmp 0x410c8e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41cfe8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x410ccc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x410cd2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40ee30
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov bl, byte [ebp + 0xc]
push esi
xor esi, esi
test bl, bl
je 0x40ee68
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x40ee68
push esi
mov dword [ebp - 0xc], 0xc
call fcn.0040eec0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
lea esi, [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x40ee73
mov ecx, dword [ecx]
push esi
push 0
push 0x200
push 0x200
push 2
movzx eax, bl
shl eax, 0x13
push 6
or eax, 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
push 0x40f4a0
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x40f485
lea ebx, [eax + 2]
call sub.KERNEL32.dll_GetLastError
push eax
push 4
push 0x1b
push str..._src_util_thread_thread_win.cc
push str.void___thiscall_crashpad::Thread::Start_void_
lea ecx, [ebp - 0xb4]
call fcn.00409060
push 0x445c5c
push 0x445510
push str.Check_failed:_platform_thread_
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
pop esi
test bl, 2
pop ebx
je 0x40f497
lea ecx, [ebp - 0xb4]
call fcn.00409240
mov esp, ebp
pop ebp
ret

Function at 0x40fe00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0040fd70
add esp, 0x10
or eax, edx
jne 0x40fe66
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40fe6c
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xfb
push str..._src_util_file_file_io_win.cc
push str.bool___cdecl_crashpad::LoggingTruncateFile_void__
lea ecx, [ebp - 0xb4]
call fcn.00409060
push 0x44731c
push eax
call fcn.004011c0
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.00409240
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40ff00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xac
mov ecx, 0x7fffffff
cmp eax, ecx
push 0
cmova eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ff34
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 4], 0xffffffff
jne 0x40ff7d
push str.bytes_written___static_cast_DWORD___1_
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0040f830
add esp, 0xc
test eax, eax
je 0x40ff7d
push eax
push 0x65
push str..._src_util_file_file_io_win.cc
push str.long___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned_int_
lea ecx, [ebp - 0xac]
call fcn.00408f40
lea ecx, [ebp - 0xac]
call fcn.00409090
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x410070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, 0x7fffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
push 0
cmova edi, eax
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410115
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 4], 0xffffffff
nop
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4100f2
push str.bytes_read___static_cast_DWORD___1_
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0040f830
add esp, 0xc
test eax, eax
je 0x4100f2
push eax
push 0x7e
push str..._src_util_file_file_io_win.cc
push str.long___cdecl_crashpad::ReadFile_void__void__unsigned_int_
lea ecx, [ebp - 0xac]
call fcn.00408f40
lea ecx, [ebp - 0xac]
call fcn.00409090
cmp dword [ebp + 0x10], 0
jne 0x410129
push esi
call ebx
cmp eax, 3
jne 0x410129
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4100b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4126d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4126f1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41270f
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4127a0
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x41272f
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409d90
add esp, 0xc
mov esi, eax
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x265
push str..._src_client_crash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::CreateDirectoryIfNecessary_const_class_base::FilePath__
lea ecx, [ebp - 0xd0]
call fcn.00409060
push str.CreateDirectory
push eax
call fcn.004011c0
push esi
push eax
call fcn.00401060
add esp, 0x10
lea ecx, [ebp - 0xd0]
call fcn.00409240
lea ecx, [ebp - 0x1c]
call fcn.00402050
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
push esi
call fcn.004129c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
Function at 0x4127e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov ebx, ecx
mov dword [ebp - 0x3c], edi
call fcn.00411ca0
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x412824
lea eax, [esi + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x1c]
call fcn.00407d60
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
push edi
call fcn.00412910
mov edi, eax
test edi, edi
jne 0x4128db
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4128cf
sub esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00409d90
add esp, 0xc
mov edi, eax
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x371
push str..._src_client_crash_report_database_win.cc
push str.enum_crashpad::CrashReportDatabase::OperationStatus___thiscall_crashpad::CrashReportDatabaseWin::DeleteReport_const_struct_crashpad::UUID__
lea ecx, [ebp - 0xec]
call fcn.00409060
push str.DeleteFile
push eax
call fcn.004011c0
push edi
push eax
call fcn.00401060
add esp, 0x10
lea ecx, [ebp - 0xec]
call fcn.00409240
lea ecx, [ebp - 0x34]
call fcn.00402050
mov edi, 2
jmp 0x4128db
push dword [ebp - 0x3c]
mov ecx, ebx
call fcn.00415a60
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.00407d80
mov ecx, esi
call fcn.00411b10
push 0x44
push esi
call fcn.0043bf97
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043c18a
mov esp, ebp
pop ebp
ret 4
Function at 0x4129c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4129e1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412a71
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x412a00
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409d90
add esp, 0xc
mov esi, eax
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x250
push str..._src_client_crash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0xd0]
call fcn.00409060
push str.GetFileAttributes
push eax
call fcn.004011c0
push esi
push eax
call fcn.00401060
add esp, 0x10
lea ecx, [ebp - 0xd0]
call fcn.00409240
lea ecx, [ebp - 0x1c]
call fcn.00402050
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
test al, 0x10
jne 0x412b04
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x412a88
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409d90
add esp, 0xc
lea ecx, [ebp - 0xc8]
mov esi, eax
push 2
push 0x254
push str..._src_client_crash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
call fcn.00408ea0
push str.GetFileAttributes
push eax
call fcn.004011c0
add esp, 8
push str.:_not_a_directory
push esi
push eax
call fcn.00401060
add esp, 8
push eax
call fcn.004011c0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00409090
lea ecx, [ebp - 0x1c]
call fcn.00402050
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0043c18a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x413f51
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413f64
mov eax, 1
pop ebp
ret
shr eax, 3
and eax, 2
pop ebp
ret
Function at 0x41ebd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xff
jbe 0x41ec2c
push 1
push 0x10a
push str..._src_snapshot_win_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0xd0]
call fcn.00408ea0
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.004011c0
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00409090
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xff
setbe dl
movzx ecx, cl
test dl, dl
mov eax, 0xff
cmovne eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x41f8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x2c], 0xa
push edx
lea edx, [ebp - 0x30]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f9af
cmp dword [ebp - 0x30], 1
jne 0x41f9af
mov eax, dword [ebp - 0x2c]
cmp eax, 0xb
jae 0x41f9c1
xorps xmm0, xmm0
mov byte [ebp + eax - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f936
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00401780
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e990
mov ecx, dword [ebp - 0x14]
add esp, 8
mov bl, al
cmp ecx, 0x10
jb 0x41f994
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f98a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41f98a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043bf97
add esp, 8
test bl, bl
je 0x41f9af
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
call fcn.0043c2eb
int3
Function at 0x424f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4c], eax
lea ecx, [edi + 0x18]
call fcn.00441fb0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x40
push edx
push eax
mov ecx, edi
call fcn.00427380
test al, al
jne 0x424fff
push 1
push 0x154
push str..._src_snapshot_win_pe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS64__struct__IMAGE_NT_HEADERS64__unsigned___int64___const
lea ecx, [ebp - 0xf8]
call fcn.00408ea0
push str.could_not_read_dos_header_from
push eax
call fcn.004011c0
push edi
push eax
call fcn.00401060
add esp, 0x10
lea ecx, [ebp - 0xf8]
call fcn.00409090
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret 8
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
je 0x42502d
push 1
push 0x15a
push str..._src_snapshot_win_pe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS64__struct__IMAGE_NT_HEADERS64__unsigned___int64___const
lea ecx, [ebp - 0xf8]
call fcn.00408ea0
push str.invalid_e_magic_in_dos_header_of
jmp 0x424fcf
lea ecx, [edi + 0x18]
call fcn.00441fb0
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 8]
cdq
add eax, ecx
mov ecx, edi
mov dword [ebp - 0x50], eax
adc edx, esi
mov esi, dword [ebp - 0x4c]
push esi
push 0
push 0x108
push edx
push eax
mov dword [ebp - 0x48], edx
call fcn.00427380
test al, al
jne 0x425085
push 1
push 0x162
push str..._src_snapshot_win_pe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS64__struct__IMAGE_NT_HEADERS64__unsigned___int64___const
lea ecx, [ebp - 0xf8]
call fcn.00408ea0
push str.could_not_read_nt_headers_from
jmp 0x424fcf
cmp dword [esi], 0x4550
je 0x4250b3
push 1
push 0x168
push str..._src_snapshot_win_pe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS64__struct__IMAGE_NT_HEADERS64__unsigned___int64___const
lea ecx, [ebp - 0xf8]
call fcn.00408ea0
push str.invalid_signature_in_nt_headers_of
jmp 0x424fcf
test ebx, ebx
je 0x4250c2
mov eax, dword [ebp - 0x50]
mov dword [ebx], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c18a
mov esp, ebp
pop ebp
ret 8