joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c78db0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov ebx, dword [ebp + 8]
mov eax, dword [0x1cf7014]
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
movdqa xmmword [esp + 0x10], xmm0
mov esi, esp
push 0x290
push str....._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push esi
call fcn.01c67b60
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push esi
call fcn.01c7f810
cmp byte [ebx + 0xb], 0
mov esi, ebx
jns 0x1c78e16
mov esi, dword [ebx]
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c78e48
mov bl, 1
test al, 0x10
jne 0x1c78f39
test edi, edi
je 0x1c78e39
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1c78f39
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov ecx, ebx
mov edi, esp
push edi
call fcn.01c6ef70
movzx eax, byte [ebx + 0xb]
mov ecx, ebx
test al, al
jns 0x1c78e78
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
test eax, eax
je 0x1c78e84
test ecx, ecx
je 0x1c78f57
movzx ebx, byte [esp + 0xb]
test bl, bl
cmovs ebx, dword [esp + 4]
mov edx, dword [esp]
cmovns edx, edi
test ebx, ebx
je 0x1c78ea2
test edx, edx
je 0x1c78f57
cmp ebx, eax
jne 0x1c78ec1
test ebx, ebx
je 0x1c78ec1
xor ebx, ebx
nop dword [eax]
movzx edi, word [edx + ebx*2]
cmp di, word [ecx + ebx*2]
jne 0x1c78ec5
inc ebx
cmp eax, ebx
jne 0x1c78eb0
jmp 0x1c78f16
cmp ebx, eax
je 0x1c78f16
mov edi, dword [ebp + 0xc]
push edi
lea eax, [esp + 4]
push eax
call fcn.01c78db0
add esp, 8
test al, al
je 0x1c78f30
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c78f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x1c78f07
push dword [ebp + 8]
call fcn.01c78980
add esp, 4
test al, al
jne 0x1c78f32
test edi, edi
je 0x1c78f29
push esi
call fcn.01c8ed00
add esp, 4
jmp 0x1c78f27
mov eax, 0xfffffffc
mov esi, 2
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1c78f29
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov ecx, esp
call fcn.01c6e910
lea ecx, [esp + 0x10]
call fcn.01c7f890
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x129
push str....._buildtools_third_partylibc_trunkinclude_string_view
push str._s:_d:_assertion__s_failed:__s
call fcn.01c36838
int3
Function at 0x1c7be5c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x1cf7014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
test al, al
je 0x1c7bf37
lea ebx, [ebp - 0x120]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.01cb3330
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x1ce4a80]
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
mov ecx, 3
push ecx
push 1
push edx
push eax
call ebx
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call ebx
lea ecx, [ebp - 0x120]
mov dword [ecx - 8], 6
mov dword [ecx - 4], edi
mov word [ecx + 0x108], 0
lea ecx, [ebp - 0x12c]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ebx, 0x80003
test eax, eax
je 0x1c7bf3e
lea edi, [ebp - 0x138]
mov dword [edi], 0xc
push 0
call fcn.01c7bf87
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], 1
jmp 0x1c7bf3e
xor edi, edi
mov ebx, 3
cmp byte [esi + 0xb], 0
jns 0x1c7bf46
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x1cec650]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c7c78c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
sete al
pop ebp
ret
Function at 0x1c7e600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.01cb0ee0
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1cf9f84]
cmp eax, 0xffffffff
je 0x1c7e75a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x1c7e75a
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.01cb2db0
add esp, 0xc
mov ecx, dword [0x1cf9f84]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.01c918f0
add esp, 8
test ebx, ebx
je 0x1c7e67b
push ebx
call fcn.01cafb3c
add esp, 4
mov eax, dword [0x1d01284]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c7e77b
mov esi, dword [0x1d01280]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c7e76f
lea eax, [ebp - 0x1410]
push 0xc00
push 0x1d00680
push eax
call fcn.01cb2db0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x1c7e6e9
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x1c7e74a
test al, 1
je 0x1c7e74a
mov dword [ebp - 0x1418], ecx
xor edi, edi
lea ebx, [ebp - 0x1408]
xor eax, eax
jmp 0x1c7e70c
inc edi
add ebx, 0xc
cmp edi, 0x100
je 0x1c7e6e0
mov esi, dword [ebp + edi*8 - 0x810]
test esi, esi
je 0x1c7e700
cmp dword [ebx - 8], 0
je 0x1c7e700
mov ecx, dword [ebp + edi*8 - 0x80c]
cmp ecx, dword [ebx]
jne 0x1c7e700
mov ecx, dword [ebx - 4]
test ecx, ecx
je 0x1c7e700
mov dword [ebp + edi*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x1c7e700
push 2
push dword [ebp - 0x1414]
call fcn.01c918f0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.01c7c730
jmp 0x1c7e6b1
push 0x1d01284
call fcn.01cafb77
add esp, 4
cmp dword [0x1d01284], 0xffffffff
jne 0x1c7e69c
push 4
call fcn.01cafad0
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.01c7c720
mov dword [0x1d01280], esi
push 0x1d01284
call fcn.01cafbed
add esp, 4
jmp 0x1c7e69c

Function at 0x1c7e7c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1cf9f84]
cmp eax, 0xffffffff
je 0x1c7e7e0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1c7e7f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x1cf9f84]
cmp eax, 0xffffffff
je 0x1c7e80d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1c7e812
call fcn.01c7e910
mov eax, dword [0x1d01284]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c7e8bd
mov edi, dword [0x1d01280]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c7e8b4
mov ecx, dword [0x1d0067c]
inc ecx
xor edx, edx
nop dword [eax]
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x1d00680], 0
je 0x1c7e86e
inc edx
cmp edx, 0x100
jne 0x1c7e850
jmp 0x1c7e89e
lea eax, [eax*4 + 0x1d00680]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x1d00684], ecx
mov dword [0x1d0067c], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x1d00688]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x1c7e902
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.01c7c730
jmp 0x1c7e844
push 0x1d01284
call fcn.01cafb77
add esp, 4
cmp dword [0x1d01284], 0xffffffff
jne 0x1c7e833
push 4
call fcn.01cafad0
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.01c7c720
mov dword [0x1d01280], edi
push 0x1d01284
call fcn.01cafbed
add esp, 4
jmp 0x1c7e833
int3

Function at 0x1c7e910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov ecx, dword [0x1cf9f84]
mov dword [ebp - 0x810], ecx
cmp ecx, 0xffffffff
jne 0x1c7e9b4
lea esi, [ebp - 0x810]
push esi
call fcn.01c918c0
add esp, 4
test al, al
je 0x1c7ea35
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x1c7e990
push esi
call fcn.01c918c0
add esp, 4
test al, al
je 0x1c7ea38
cmp dword [ebp - 0x810], 0xffffffff
je 0x1c7ea38
push 0xffffffffffffffff
call fcn.01c918e0
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x1cf9f84], ecx
je 0x1c7e9b4
push ecx
call fcn.01c918e0
add esp, 4
mov ecx, dword [0x1cf9f84]
mov dword [ebp - 0x810], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1c7ea32
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.01cb3330
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.01c918f0
add esp, 8
push 0x800
call fcn.01cafb33
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.01cb2db0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.01c918f0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x1c84be0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test bl, bl
mov dword [ebp - 0x14], ecx
lea ecx, [eax + ecx]
lea edx, [esi + ebx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
mov dword [ebp - 0x20], ebx
jb 0x1c84c4d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x1c84c20
cmp edx, 1
jne 0x1c84c56
jmp 0x1c84c72
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x1c84c72
cmp edx, 2
je 0x1c84c69
cmp edx, 3
jne 0x1c84c7d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 4]
xor ecx, ecx
test ebx, ebx
je 0x1c84dde
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x1c84ce6
lea edx, [ebx - 1]
and edx, edi
jmp 0x1c84cf2
mov edx, edi
cmp edi, ebx
jb 0x1c84cf2
mov eax, edi
xor edx, edx
div ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1c84dde
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax]
test ebx, ebx
je 0x1c84dde
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x14]
cmovns eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x1c84d45
and eax, dword [ebp - 0x1c]
cmp eax, edx
jne 0x1c84ddc
mov ebx, dword [ebx]
test ebx, ebx
je 0x1c84ddc
mov eax, dword [ebx + 4]
cmp edi, eax
jne 0x1c84da0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x1c84d59
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x1c84d3b
lea ecx, [ebx + 8]
test al, al
jns 0x1c84d67
mov ecx, dword [ecx]
js 0x1c84dbe
cmp dword [ebp - 0x14], 0
je 0x1c84dd8
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 8]
cmp dl, byte [esi + ecx]
jne 0x1c84d3b
inc ecx
cmp eax, ecx
jne 0x1c84d80
jmp 0x1c84dd8
cmp dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x10]
jbe 0x1c84d30
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x1c84d33
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
jmp 0x1c84d33
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1c84dd8
push eax
push esi
push ecx
call fcn.01cb1e9d
add esp, 0xc
test eax, eax
jne 0x1c84d3b
mov ecx, ebx
jmp 0x1c84dde
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c86bf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x1c86c26
push dword [ebp + 8]
call fcn.01c89480
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.01c30910
add esp, 4
cmp ebx, edi
jbe 0x1c86c86
push ebx
call fcn.01c894b0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.01c30910
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.01c30910
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call fcn.01c30910
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call fcn.01c30910
add esp, 4
mov ecx, dword [0x1d0bb8c]
test ecx, ecx
je 0x1c86d59
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.01c801a0
int3
Function at 0x1c8b2a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x1cf7014]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, 0x7fffffff
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0xc]
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 0x1c8b2f1
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x1c8b2f4
int3
xor esi, esi
dec esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
add esp, 8
pop esi
pop ebp
ret

Function at 0x1c8b306
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1cf7014]
xor ecx, ebp
mov esi, 0x7fffffff
cmp eax, esi
cmovb esi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
push esi
push ebx
push edi
call ecx
test eax, eax
je 0x1c8b38a
mov esi, ebx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x1c8b371
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x1c8b39c
mov ebx, esi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1c8b339
cmp ebx, 0xffffffff
je 0x1c8b3a1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x1c8b376
mov ebx, dword [ebp - 0x14]
jmp 0x1c8b376
int3

Function at 0x1c8b97b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.01c8b88c
add esp, 0x10
or edx, eax
jne 0x1c8b9fe
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x1c8b9fe
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c8b9fc
call fcn.01c7a7c0
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xac]
push 0xc
push 0x1ced17a
push eax
call fcn.01c35b14
add esp, 0xc
mov ecx, esi
call fcn.01c7aa10
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret

Function at 0x1c8bda0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx edx, byte [0x1d0bbec]
test dl, 1
jne 0x1c8bdc6
test ecx, ecx
je 0x1c8bdc4
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1c8bdd1
pop ebp
ret
call fcn.01c9dda0
pop ebp
jmp fcn.01c9fb20
int3
Function at 0x1c8de6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1c8de8d
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c8deb9
mov ebx, eax
cmp byte [ebp + 0xc], 0
jne 0x1c8deae
mov eax, ebx
and eax, 0x400
jne 0x1c8df5f
and ebx, 0x10
shr ebx, 4
jmp 0x1c8df61
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c8df5f
call fcn.01c7a7c0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x82
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c35b14
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c8df0d
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c8df32
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c8df54
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7aa10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x1c8df9b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c8dfb4
test eax, 0x410
sete bl
jmp 0x1c8e059
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c8e057
call fcn.01c7a7c0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x75
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c35b14
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c8e005
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c8e02a
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c8e04c
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7aa10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c8e070
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, dword [ebp + 8]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c8e093
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c8e0c6
and eax, 0x410
cmp eax, 0x410
jne 0x1c8e0c6
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01c8e1a0
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c8e0d0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x1c8e189
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c8e187
call fcn.01c7a7c0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x95
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.01c35b14
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c8e135
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c8e15a
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c8e17c
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7aa10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c8e1a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, ecx
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c8e1c2
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1c8e27f
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c8e27f
call fcn.01c7a7c0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x30
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.01c35b14
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xc8], eax
jns 0x1c8e228
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push ecx
push edi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c8e24d
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push dword [ebp - 0xc8]
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c8e274
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7aa10
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret