joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c4eec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1c4ef33
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x1c4ef1d
cmp dword [ebp - 0x18], 4
jne 0x1c4ef1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x1c4ef1d

Function at 0x1c4ef40
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.01c98400
mov esi, ecx
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.01c9afc0
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1c4efd9
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x1c4efdd
push edi
call fcn.01cb0da4
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.01c3d7c0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x1c4efc0
cmp eax, 2
jne 0x1c4f029
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.01c9afc0
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1c4f030
push ebx
call fcn.01cb0da4
add esp, 4
mov ecx, esi
push eax
push ebx
jmp 0x1c4efb9
mov esi, 0x3f4
jmp 0x1c4efc0
mov esi, 0xea
jmp 0x1c4efc0
Function at 0x1c52500
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 0x1c52517
test eax, eax
je 0x1c52517
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x1c52525
mov ecx, dword [0x1d42d70]
test ecx, ecx
jne 0x1c52561
cmp dword [0x1d42d68], 0
je 0x1c52511
mov esi, dword [0x1d42d6c]
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 0x1c5256b
test esi, esi
je 0x1c52511
mov ecx, dword [0x1d42d68]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x1c52511
call dword [section..00cfg]
call ecx
jmp 0x1c52525
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1c52549

Function at 0x1c53790
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 [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c537b2
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1c537e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1c53800
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01c538b0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.01c821e0
add esp, 4
test al, al
jne 0x1c53812
xor ebx, ebx
jmp 0x1c537e9
call fcn.01ce2be0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x266
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.01ce2d10
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.01cc4230
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c53854
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c75e80
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c53879
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01cc4230
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c5389b
push dword [ebp - 0xc4]
call fcn.01c97151
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01ce2d70
jmp 0x1c5380e
Function at 0x1c538b0
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 [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c538d2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c538ff
mov bl, 1
test al, 0x10
je 0x1c539a7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.01c821e0
add esp, 4
test al, al
je 0x1c539b5
call fcn.01ce2be0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x251
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.01ce2d10
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01cc4230
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c53953
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c75e80
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c53978
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01cc4230
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c5399a
push dword [ebp - 0xc4]
call fcn.01c97151
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01ce2d70
jmp 0x1c539b5
push 2
call fcn.01c821e0
add esp, 4
test al, al
jne 0x1c539bc
xor ebx, ebx
jmp 0x1c538e8
lea ecx, [ebp - 0xb8]
push 2
push 0x255
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.01c572a0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01cc4230
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c539f8
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c75e80
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c53a1d
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01cc4230
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.01cc4230
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c53a4f
push dword [ebp - 0xc4]
call fcn.01c97151
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c576b0
jmp 0x1c539b5
Function at 0x1c54c60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.01c53ae0
mov eax, dword [esi]
test eax, eax
je 0x1c54cb3
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x1c54cba
lea ecx, [ebp - 0x14]
call fcn.01c54490
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x1c54c95
cmp dword [ebx + 0x50], 0
je 0x1c54cc5
add ebx, 0x58
jmp 0x1c54c91
cmp byte [ebx + 0x1b], 0
jns 0x1c54cd0
mov eax, dword [ebx + 0x10]
jmp 0x1c54cd3
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1c54cc0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
je 0x1c54d04
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.01c55920
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x1c54cc0
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c55780
jmp 0x1c54cc0

Function at 0x1c54d10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.01c53ae0
mov eax, dword [esi]
test eax, eax
je 0x1c54d63
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x1c54d6a
lea ecx, [ebp - 0x14]
call fcn.01c54490
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x1c54d45
cmp dword [ebx + 0x50], 2
jne 0x1c54dad
cmp byte [ebx + 0x1b], 0
jns 0x1c54d7b
mov eax, dword [ebx + 0x10]
jmp 0x1c54d7e
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1c54dad
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
je 0x1c54db2
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.01c55920
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
add ebx, 0x58
jmp 0x1c54d41
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c55780
jmp 0x1c54dad
Function at 0x1c55b00
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 [0x1d17014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x1c55b24
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.01c422c0
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x1c55b3e
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.01c422c0
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x1c55b57
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
jns 0x1c55b72
push dword [ebp - 0x28]
call fcn.01c97151
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x1c55b83
push dword [ebp - 0x1c]
call fcn.01c97151
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x1c55c10
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 [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.01c422c0
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x1c55c3e
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x1c55c5c
push dword [ebp - 0x1c]
call fcn.01c97151
add esp, 4
cmp dword [ebp + 8], 0
je 0x1c55cf5
test esi, esi
je 0x1c55cf5
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.01c97183
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.01c422c0
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x1c55c9f
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x1c55cb9
push dword [ebp - 0x1c]
call fcn.01c97151
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x1c55d0e
push edi
call fcn.01cb0da4
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.01c75e80
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x1c55d11
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.01c9718c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.01c97151
add esp, 4
jmp 0x1c55cdd
Function at 0x1c55e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1f5
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.01c7b570
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.01c84470
cmp byte [edi + 0xb], 0
jns 0x1c55e61
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.01c844f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c55e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.01c9afc0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x1c55f13
push ebx
call fcn.01cb0da4
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.01c7d700
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.01c4fbb0
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c4f100
mov ecx, ebx
call fcn.01c7d830
mov ecx, edi
call fcn.01c7d830
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c55f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.01c9afc0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x1d0b2f0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1c55fbc
cmp word [ebp - 0x214], 0
je 0x1c55fbc
push edi
call fcn.01cb0da4
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.01c7d700
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.01c7d5f0
push edi
call fcn.01c55e90
add esp, 4
mov ecx, esi
test al, al
je 0x1c55feb
push edi
call fcn.01c7d6d0
jmp 0x1c55ff7
push 3
push 0x1d0b352
call fcn.01c7d700
lea ecx, [ebp - 0x220]
call fcn.01c7d830
jmp 0x1c55fa6
Function at 0x1c56520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x3ef
push str....._base_files_file_util_win.cc
push 0x1d0b3b0
push ebx
call fcn.01c7b570
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.01c84470
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.01c9afc0
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x1c565ec
push ebx
call fcn.01cb0da4
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.01c7d700
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.01c4fbb0
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c4f100
mov ecx, ebx
call fcn.01c7d830
mov ecx, edi
call fcn.01c7d830
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.01c844f0
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c57ef0
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 [0x1d17014]
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 0x1c57fcb
lea ebx, [ebp - 0x120]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.01c9afc0
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x1d041b0]
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 0x1c57fd2
lea edi, [ebp - 0x138]
mov dword [edi], 0xc
push 0
call fcn.01c58020
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], 1
jmp 0x1c57fd2
xor edi, edi
mov ebx, 3
cmp byte [esi + 0xb], 0
jns 0x1c57fda
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x1d0b4a0]
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.01c97fe3
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c58940
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 0x1c595e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x1d32eb4]
cmp eax, 0xffffffff
je 0x1c596a1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1c596a1
mov eax, dword [0x1d439fc]
mov ecx, dword [0x1d33130]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c596ab
mov edi, dword [0x1d439f8]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c596f0
mov ecx, dword [0x1d42df4]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x1d42df8], 0
jne 0x1c596fc
lea eax, [eax*4 + 0x1d42df8]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x1d42dfc], ecx
mov dword [0x1d42df4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x1d42e00]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x1c5970b
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.01c59710
jmp 0x1c59605
push 0x1d439fc
call fcn.01c97191
add esp, 4
cmp dword [0x1d439fc], 0xffffffff
jne 0x1c59626
push 4
call fcn.01c97121
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.01c82950
mov dword [0x1d439f8], edi
push 0x1d439fc
call fcn.01c9720b
add esp, 4
jmp 0x1c59626
mov ecx, edi
call fcn.01c82960
jmp 0x1c5963b
inc edx
cmp edx, 0x100
jne 0x1c59644
jmp 0x1c5968b
int3

Function at 0x1c59710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x1d32eb4]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x1c597bd
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1c59806
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.01c9afc0
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.01c625b0
add esp, 8
push edi
call fcn.01c97183
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.01c9aa40
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.01c625b0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.01c62590
add esp, 4
test al, al
je 0x1c59809
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x1c5980c
xor eax, eax
dec eax
lock cmpxchg dword [0x1d32eb4], ecx
je 0x1c59741
push ecx
call fcn.01cef7d0
add esp, 4
mov ecx, dword [0x1d32eb4]
mov dword [ebp - 0x814], ecx
jmp 0x1c59741
int3
int3
push esi
call fcn.01c62590
add esp, 4
test al, al
je 0x1c59834
cmp dword [ebp - 0x814], 0xffffffff
je 0x1c59834
push 0xffffffffffffffff
call fcn.01cef7d0
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x1c597db
int3
Function at 0x1c5e870
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 [0x1d17014]
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 0x1c5e8c8
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x1c5e8cd
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.01c97fe3
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
xor esi, esi
dec esi
jmp 0x1c5e8b6
int3

Function at 0x1c5e8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1d17014]
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 - 0x14], 0xffffffff
push 0
push eax
push esi
push edx
mov edi, ebx
push ebx
call ecx
test eax, eax
je 0x1c5e948
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1c5e935
cmp ebx, 0xffffffff
je 0x1c5e95a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x1c5e95d
mov ebx, dword [ebp - 0x14]
jmp 0x1c5e921
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x1c5e921
int3
mov edx, dword [ebp + 0xc]
jmp 0x1c5e8f7

Function at 0x1c5ed90
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 [0x1d17014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.01c5ec80
add esp, 0x10
or edx, eax
jne 0x1c5edc7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
je 0x1c5eddd
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01c97fe3
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
push 2
call fcn.01c821e0
add esp, 4
test al, al
jne 0x1c5edef
xor ebx, ebx
jmp 0x1c5edc7
call fcn.01ce2be0
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.01ce2d10
lea eax, [ebp - 0xac]
push 0xc
push 0x1d0bfea
push eax
call fcn.01cc4230
add esp, 0xc
mov ecx, esi
call fcn.01ce2d70
jmp 0x1c5edeb