joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0xa8], eax
test ecx, ecx
je 0x453c94
mov ebx, edx
push 0
push 0
push ecx
mov esi, ecx
call fcn.004b18a9
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
lea edi, [esp + 0x20]
push 0x48
push str....._base_files_file_util.cc
push str.ReadStreamToSpanWithMaxSize
push edi
call fcn.004546a0
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push edi
call fcn.004546e0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x50], 0
mov dword [esp], esi
push esi
call fcn.004ab3e6
add esp, 4
push eax
call fcn.004abb8a
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x453c9b
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x40]
mov edi, 0xffff
cmovl edi, eax
jmp 0x453ca0
xor ebx, ebx
jmp 0x453daf
mov edi, 0xffff
cmp edi, ebx
mov dword [esp + 0xc], ebx
cmovae edi, ebx
inc edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
call dword [section..00cfg]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edi
push eax
push edx
mov dword [esp + 0x14], ecx
call ecx
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x1c]
nop word [eax + eax]
mov ecx, dword [esp]
add eax, ebx
push ecx
push edi
push 1
push eax
call fcn.004b16a6
add esp, 0x10
test eax, eax
je 0x453d70
mov esi, eax
mov eax, dword [esp + 0xc]
sub eax, ebx
cmp eax, esi
jb 0x453d66
add esi, ebx
push dword [esp]
call fcn.004b1248
add esp, 4
test eax, eax
jne 0x453d6e
test ebx, ebx
mov eax, 0x10000
cmove edi, eax
lea ebx, [esi + edi]
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 8]
call dword [section..00cfg]
mov eax, dword [esp + 0x5c]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ebx, esi
jmp 0x453cf0
xor esi, esi
mov ebx, dword [esp + 0xc]
jmp 0x453d82
mov ebx, esi
push dword [esp]
call fcn.004b1274
add esp, 4
test eax, eax
sete al
mov esi, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 8]
call dword [section..00cfg]
mov eax, dword [esp + 0x5c]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
lea ecx, [esp + 0x60]
call fcn.00454760
mov ebx, esi
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x457630
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm1, qword [0x5f3cc8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x4577ac
jp 0x4577ac
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x5f3cd8]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4577d1
mov eax, dword [0x5f3ce8]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45780a
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea ebx, [esp + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub esi, dword [0x5f3ce0]
sbb edi, dword [0x5f3ce4]
movd xmm0, edi
movd xmm1, esi
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm0, qword [esp + 0x30]
pxor xmm1, xmm1
movsd xmm2, qword [0x4d5778]
ucomisd xmm2, xmm0
ja 0x4577ac
mov eax, dword [esp + 8]
sub eax, dword [0x5f3cd0]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x5f3cd4]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x4d5750]
subpd xmm2, xmmword [0x4d5760]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x5f3cc8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00499333
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5f3cd8
call fcn.004989b7
add esp, 4
cmp dword [0x5f3cd8], 0xffffffff
jne 0x4576a2
rdtsc
mov dword [0x5f3cd0], eax
mov dword [0x5f3cd4], edx
push 0x5f3cd8
call fcn.00498a2d
add esp, 4
jmp 0x4576a2
push 0x5f3ce8
call fcn.004989b7
add esp, 4
cmp dword [0x5f3ce8], 0xffffffff
jne 0x4576c3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [0x5f3ce4], ecx
mov dword [0x5f3ce0], eax
push 0x5f3ce8
call fcn.00498a2d
add esp, 4
jmp 0x4576c3
Function at 0x457aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x93
push 0x4d5780
push str.WriteAtCurrentPos
push ebx
call fcn.004546a0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.004546e0
test edi, edi
js 0x457b61
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004743d0
test al, al
je 0x457b32
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.004744e0
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00474470
jmp 0x457b66
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00454760
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00499333
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x457cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea esi, [esp + 0x10]
push 0x16f
push 0x4d5780
push str.DoInitialize
push esi
call fcn.004546a0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.004546e0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x457e73
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, eax
shl edi, 8
and edi, 0xa000000
or edi, esi
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x457dff
mov esi, dword [esi]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
push 0
push edi
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [ebx], eax
je 0x457e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jb 0x457e41
call fcn.004546d0
push dword [ebx]
call fcn.004599d0
add esp, 4
mov dword [ebx], 0
mov eax, edi
inc eax
cmp eax, 2
jb 0x457e50
mov dword [ebx], edi
call fcn.004546d0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
inc edi
cmp edi, 2
jae 0x457e84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00457c00
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x457eb5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x457eb5
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
mov eax, dword [ebp + 0xc]
test al, 4
jne 0x457ea6
test al, 0xa
je 0x457eb5
mov byte [ebx + 0x18], 1
jmp 0x457eb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.00454760
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00499333
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x458070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004579b0
mov dword [esi], 0
test eax, eax
je 0x4580d2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x4580b8
mov dword [ebp - 0x10], eax
call fcn.004546d0
push dword [esi]
call fcn.004599d0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x4580cb
mov dword [esi], ebx
mov ebx, eax
call fcn.004546d0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.00438c70
lea ecx, [esi + 0x10]
call fcn.00474400
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4649e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x48], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x464a0d
mov eax, dword [ecx + 4]
test eax, eax
je 0x464a32
mov eax, ebx
not eax
test eax, 0x300
je 0x464a32
cmp edi, 2
mov eax, 0x5f6aaa
mov ecx, 0x5f6caa
cmove ecx, eax
cmp word [ecx], 0
je 0x464a45
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00499333
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
lea esi, [esp + 0x20]
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x464a32
cmp byte [0x5f6aa8], 0
setne al
bt ebx, 8
jb 0x464a32
shr ebx, 9
and ebx, 1
or bl, al
je 0x464a32
cmp edi, 2
mov eax, 0x4d63f8
mov edx, 0x4d640c
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0xb]
test bl, bl
js 0x464aa4
mov ecx, ebx
mov esi, eax
mov eax, ebx
jmp 0x464aa9
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ecx
mov ebx, dword [edx + 4]
mov edi, eax
sub edi, ebx
jb 0x464af7
push ebx
push dword [edx]
push esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.004afbae
mov edx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x14]
je 0x464b07
add edx, 0x14
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x464aca
jmp 0x464b6d
movzx ecx, word [esi + ebx*2]
cmp ecx, 0x5c
je 0x464b14
test ecx, ecx
jne 0x464af7
lea eax, [esi + ebx*2]
mov ebx, dword [edx + 8]
cmp ebx, 1
je 0x464b34
cmp ebx, 2
mov esi, ebx
jne 0x464b42
mov dword [esp + 8], str.WOW6432Node
mov dword [esp + 4], eax
jmp 0x464b42
mov dword [esp + 8], str.WOW6432Node_
mov dword [esp + 4], esi
mov esi, ebx
mov dword [esp + 0xc], esi
cmp cx, 0x5c
jne 0x464b5b
lea esi, [eax + 2]
dec edi
cmp word [eax + 2], 0x5c
mov eax, esi
je 0x464b4c
jmp 0x464b5d
mov esi, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [edx + 0xc]
xor ecx, ecx
mov eax, edi
jmp 0x464aff
cmp dword [esp + 0xc], 0
je 0x464a32
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x464b85
mov eax, dword [ecx]
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
push dword [esp + 8]
push edx
call fcn.00433f00
jmp 0x464a32
Function at 0x466c0a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x466c2c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x466d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x466c67
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00466d26
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x466d0d
call fcn.00451d20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x267
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.00414114
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x466cbb
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x466ce0
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x466d02
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451f70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x466d26
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x466d48
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x466e17
mov bl, 1
test al, 0x10
jne 0x466ebf
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x466ebd
lea ecx, [ebp - 0xb8]
push 2
push 0x256
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00451260
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00414114
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x466db0
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x466dd5
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00414114
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x466e07
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451670
jmp 0x466ebd
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x466ebd
call fcn.00451d20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x252
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00414114
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x466e6b
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x466e90
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x466eb2
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451f70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x468498
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x4684ea
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.00466824
test al, al
jne 0x4684d7
add esi, 0x58
cmp esi, ebx
jne 0x4684c2
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x4684ea
cmp byte [esi + 0x1b], 0
jns 0x4684ef
mov eax, dword [esi + 0x10]
jmp 0x4684f2
xor edi, edi
inc edi
jmp 0x468515
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x468515
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x4699d9
cmp byte [ecx + 0x1b], 0
jns 0x4699e7
mov ecx, dword [ecx + 0x10]
jmp 0x4699ea
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
jmp 0x469a04
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, eax
shr edx, 3
and edx, 2
xor eax, eax
inc eax
cmp ecx, 0xffffffff
cmovne eax, edx
pop ebp
ret

Function at 0x469ec0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4e3014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x469ee4
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
push ecx
push eax
push esi
call fcn.0043d090
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x469efe
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.0043d090
add esp, 0xc
cmp byte [ebp - 0x1d], 0
jns 0x469f17
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
js 0x469f48
cmp byte [ebp - 0x11], 0
js 0x469f59
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push dword [ebp - 0x28]
call fcn.0049893c
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x469f2d
push dword [ebp - 0x1c]
call fcn.0049893c
add esp, 4
jmp 0x469f2d
Function at 0x469fe0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.0043d090
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x46a00e
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
js 0x46a02c
cmp dword [ebp + 8], 0
jne 0x46a041
jmp 0x46a0dc
push dword [ebp - 0x1c]
call fcn.0049893c
add esp, 4
cmp dword [ebp + 8], 0
je 0x46a0dc
test esi, esi
je 0x46a0dc
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.00498973
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.0043d090
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x46a07c
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x46a096
push dword [ebp - 0x1c]
call fcn.0049893c
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x46a0f5
push edi
call fcn.004b414c
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.0043d0d0
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x46a0c4
push dword [ebx]
call fcn.0049893c
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.0049897c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3

Function at 0x46a100
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.0049bea0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0049890c
add esp, 4
mov esi, eax
mov ebx, dword [ebp - 0x130]
mov eax, dword [0x5f70e8]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46a1be
mov ecx, esi
push ebx
push 0x5f70c4
push edi
call fcn.0046a310
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5f70e8
call fcn.004989b7
add esp, 4
cmp dword [0x5f70e8], 0xffffffff
jne 0x46a199
xorps xmm0, xmm0
movups xmmword [0x5f70d4], xmm0
movups xmmword [0x5f70c4], xmm0
mov dword [0x5f70e4], 0
push 0x5f70c4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5f70e8
call fcn.00498a2d
add esp, 4
jmp 0x46a199
Function at 0x46a270
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5f70e8]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46a2bf
movzx eax, word [0x5f70c4]
cmp eax, 0xc
ja case.0x46a29c.1
jmp dword [eax*4 + 0x4d8094]
mov eax, 2
pop ebp
ret
mov eax, 4
pop ebp
ret
mov eax, 1
pop ebp
ret
mov eax, 3
pop ebp
ret
push 0x5f70e8
call fcn.004989b7
add esp, 4
cmp dword [0x5f70e8], 0xffffffff
jne 0x46a290
xorps xmm0, xmm0
movups xmmword [0x5f70d4], xmm0
movups xmmword [0x5f70c4], xmm0
mov dword [0x5f70e4], 0
push 0x5f70c4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5f70e8
call fcn.00498a2d
add esp, 4
jmp 0x46a290