joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c85b40
Capabilities:
Read 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 + 0x14]
mov eax, dword [0x1d01324]
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
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea ebx, [esp + 0x10]
push 0x3e
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.01c4c720
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.01c6cea0
test edi, edi
js 0x1c85c1a
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c8bd40
test al, al
je 0x1c85bd6
lea ecx, [esp + 0x28]
push 0
push edi
push esi
push str.File::Read
call fcn.01c8bdc0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1c85c21
mov ebx, dword [esp + 0xc]
jmp 0x1c85c31
mov ebx, 0xffffffff
jmp 0x1c85c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.01c8bda0
lea ecx, [esp + 0x30]
call fcn.01c6cee0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x1c85c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea ebx, [esp + 0x10]
push 0x57
push str..._.._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.01c4c720
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.01c6cea0
test edi, edi
js 0x1c85d1c
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c8bd40
test al, al
je 0x1c85cf9
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.01c8bdc0
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_ReadFile]
test eax, eax
je 0x1c85d23
mov ebx, dword [esp + 0xc]
jmp 0x1c85d33
mov ebx, 0xffffffff
jmp 0x1c85d3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.01c8bda0
lea ecx, [esp + 0x20]
call fcn.01c6cee0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c85d60
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 + 0x14]
mov eax, dword [0x1d01324]
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
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea ebx, [esp + 0x10]
push 0x73
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.01c4c720
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.01c6cea0
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c8bd40
test al, al
je 0x1c85df6
mov eax, edi
sar eax, 0x1f
lea ecx, [esp + 0x28]
push eax
push edi
push esi
push str.File::Write
call fcn.01c8bdc0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
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 + 0x28]
call fcn.01c8bda0
lea ecx, [esp + 0x30]
call fcn.01c6cee0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x1c85e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.01c4c720
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.01c6cea0
test edi, edi
js 0x1c85f3b
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c8bd40
test al, al
je 0x1c85f0c
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.01c8bdc0
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.01c8bda0
jmp 0x1c85f40
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.01c6cee0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c86010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea esi, [esp + 0x10]
push 0x15a
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.01c4c720
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.01c6cea0
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 0x1c861dc
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns 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
mov ebx, edi
and ebx, 0x2000000
or ebx, esi
and edi, 0x8000000
or edi, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x1c86162
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 0x1c861c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x1c861a6
call fcn.01c4c750
push dword [ebx]
call fcn.01c4c760
add esp, 4
mov dword [ebx], 0
mov eax, edi
add eax, 1
cmp eax, 2
jb 0x1c861b7
mov dword [ebx], edi
call fcn.01c4c750
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
add edi, 1
cmp edi, 2
jae 0x1c861ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01c85f60
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x1c8621e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x1c8621e
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 0x1c8620f
test al, 0xa
je 0x1c8621e
mov byte [ebx + 0x18], 1
jmp 0x1c8621e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.01c6cee0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01cb3141
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c866e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1d01324]
xor ecx, ebp
mov dword [ebp - 8], ecx
test eax, eax
je 0x1c8672c
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1c8672c
lea esi, [ebp - 0xc]
push str.success
push 0x20
push str..._.._base_rand_util_win.cc
push esi
call fcn.01c4cd70
add esp, 0x10
mov ecx, esi
call fcn.01c4cde0
mov ecx, esi
call fcn.01c4cdf0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.01cb3141
add esp, 8
pop esi
pop ebp
ret

Function at 0x1c8be00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d0bc88]
mov ecx, dword [0x1d04a8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c8be2b
mov ecx, 0x1d0bc80
pop ebp
jmp fcn.01c67240
push 0x1d0bc88
call fcn.01cb3187
add esp, 4
cmp dword [0x1d0bc88], 0xffffffff
jne 0x1c8be20
mov dword [0x1d0bc84], 0
mov dword [0x1d0bc80], 0
mov ecx, 0x1d0bc80
push 0
call fcn.01c672b0
push 0x1d0bc88
call fcn.01cb31fd
add esp, 4
jmp 0x1c8be20

Function at 0x1c8c860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x1c8c8f6
mov esi, ecx
mov dword [esp + 0x14], 0x9ff00ff
mov dword [esp + 0xc], 0x63736964
mov dword [esp + 0x10], 0x65647261
mov byte [esp + 0x14], 0x64
lea eax, [esp + 0xc]
mov edi, esp
push eax
push edi
call fcn.01c8c7d0
push 0x40
call fcn.01cb30d6
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.01c8ca30
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x1c8c8e0
mov ecx, edi
call fcn.01c8caa0
push edi
call fcn.01cb3106
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x1c8c8f3
push dword [esp + 0xc]
call fcn.01cb3106
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.01cb3141
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c8e270
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x158], eax
lea eax, [esp + 0x40]
push 0x118
push 0
push eax
call fcn.01cb76e0
add esp, 0xc
mov dword [esp + 0x3c], 0x11c
lea edi, [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push dword [esp + 0x50]
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x50
call fcn.01cb30d6
add esp, 4
mov esi, eax
mov ebx, dword [esp + 0xc]
mov eax, dword [0x1d0bcc4]
mov ecx, dword [0x1d04a8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c8e326
mov ecx, esi
push ebx
push 0x1d0bca0
push edi
call fcn.01c8e3f0
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1d0bcc4
call fcn.01cb3187
add esp, 4
cmp dword [0x1d0bcc4], 0xffffffff
jne 0x1c8e300
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 0x30]
mov dword [0x1d0bcc0], eax
movaps xmm0, xmmword [esp + 0x10]
movaps xmm1, xmmword [esp + 0x20]
movups xmmword [0x1d0bcb0], xmm1
movups xmmword [0x1d0bca0], xmm0
push 0x1d0bcc4
call fcn.01cb31fd
add esp, 4
jmp 0x1c8e300

Function at 0x1c8e8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x1d01324]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1c8e918
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x1c8e918
cmp dword [ebp - 0x14], 4
jne 0x1c8e918
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8
Function at 0x1c8e930
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.01cb35d0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.01cb76e0
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1c8ea04
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x1c8e9b9
mov edi, 0x3f4
cmp eax, 1
jne 0x1c8ea04
mov ecx, esi
push ebx
jmp 0x1c8e9fd
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.01cb76e0
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x1c8ea04
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.01c40cb8
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x1c8fdb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1d15d1c], 0
jne 0x1c8fde2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1c8fdda
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [0x1d15d20], eax
mov dword [0x1d15d1c], ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
push str..._.._base_allocator_partition_allocator_partition_tls_win.cc_36__Check_failed:_g_destructor__nullptr
call fcn.01c4cf00
add esp, 4
jmp 0x1c8fdbc

Function at 0x1c8fe10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1c8fe21
test eax, eax
jne 0x1c8fe62
test eax, eax
jne 0x1c8fe30
mov eax, dword [0x1d15d24]
test eax, eax
je 0x1c8fe30
call eax
cmp dword [0x1d15d1c], 0
je 0x1c8fe62
mov esi, dword [0x1d15d20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x1c8fe68
test esi, esi
je 0x1c8fe62
push esi
call dword [0x1d15d1c]
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1c8fe58
jmp 0x1c8fe62
Function at 0x1c901f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0xff
push edi
call fcn.01cb76e0
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x1c90275
push edi
call fcn.01ccde34
add esp, 4
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.01c581e0
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.01c595a0
mov ecx, dword [ebp + 8]
push edi
call fcn.01c58320
mov ecx, edi
call fcn.01c582a0
mov ecx, ebx
call fcn.01c582a0
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1c958dd
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c95906
mov ebx, eax
bt eax, 0xa
jae 0x1c958fb
cmp byte [ebp + 0xc], 0
je 0x1c959ac
and ebx, 0x10
shr ebx, 4
jmp 0x1c959ae
push 2
call fcn.01c60df0
add esp, 4
test al, al
je 0x1c959ac
call fcn.01c618c0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x81
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.01c61a60
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c23924
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c9595a
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push eax
push edi
push ebx
call fcn.01c47a90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c9597f
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push esi
call fcn.01c23924
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c959a1
push dword [ebp - 0xc8]
call fcn.01cb3106
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c61b10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c959c5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1c959e8
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c95a0d
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
jmp 0x1c95abc
push 2
call fcn.01c60df0
add esp, 4
test al, al
je 0x1c95ab0
call fcn.01c618c0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x74
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.01c61a60
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c23924
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c95a5e
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push eax
push edi
push ebx
call fcn.01c47a90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c95a83
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push esi
call fcn.01c23924
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c95aa5
push dword [ebp - 0xc8]
call fcn.01cb3106
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c61b10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
xor eax, eax
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c95aea
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c95b1d
and eax, 0x410
cmp eax, 0x410
jne 0x1c95b1d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01c95bf7
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c95b27
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x1c95be0
push 2
call fcn.01c60df0
add esp, 4
test al, al
je 0x1c95bde
call fcn.01c618c0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.01c61a60
lea eax, [ebp - 0xb4]
push 0xb
push str.DeleteFile
push eax
call fcn.01c23924
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c95b8c
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.01c47a90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c95bb1
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.01c23924
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c95bd3
push dword [ebp - 0xc8]
call fcn.01cb3106
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c61b10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c95bf7
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov edi, ecx
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c95c19
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1c95cd6
push 2
call fcn.01c60df0
add esp, 4
test al, al
je 0x1c95cd6
call fcn.01c618c0
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x2f
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.01c61a60
lea eax, [ebp - 0xb4]
push 0x10
push str.RemoveDirectory
push eax
call fcn.01c23924
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xcc], eax
jns 0x1c95c7f
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push ecx
push edi
push ebx
call fcn.01c47a90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c95ca4
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push dword [ebp - 0xcc]
call fcn.01c23924
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c95ccb
push dword [ebp - 0xc8]
call fcn.01cb3106
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c61b10
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c968f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x1d01324]
xor esi, ebp
mov dword [ebp - 0xc], esi
mov esi, 0x7fffffff
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0x10]
mov dword [edx], 0xffffffff
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1c96975
xor eax, eax
dec eax
lea edi, [ebp - 0x14]
mov dword [edi], eax
push str.bytes_written___static_cast_DWORD___1_
push eax
push dword [ebp - 0x10]
push edi
call fcn.01c9698b
add esp, 0x10
cmp dword [edi], 0
je 0x1c96970
lea esi, [ebp - 0x18]
push edi
push 0x65
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
push esi
call fcn.01c4ce10
add esp, 0x10
mov ecx, esi
call fcn.01c4cde0
mov ecx, esi
call fcn.01c4cdf0
mov esi, dword [ebp - 0x10]
jmp 0x1c96978
xor esi, esi
dec esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret