joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57fbb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x7024bc]
xor ecx, ebp
mov dword [ebp - 8], ecx
cmp eax, 3
jne 0x57fc87
mov dword [ebp - 0x14], 0x57fd20
lea eax, [ebp - 0x14]
push 0
push eax
push 0x57fb40
push 0x705a40
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x57fc99
cmp dword [0x705a44], 0
jne 0x57fc87
push dword [0x705a48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57fc87
mov esi, eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
push 0x705a4c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x705a58]
mov dword [ebp - 0xc], eax
movsd xmm0, qword [0x705a50]
movsd qword [ebp - 0x14], xmm0
push 0x705a4c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x57fc60
push dword [esi]
call eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x57fc6f
push dword [esi + 4]
call eax
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x57fc7e
push dword [esi + 8]
call eax
add esp, 4
push esi
call fcn.00516700
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0064180a
add esp, 0x10
pop esi
pop ebp
ret 0xc
call fcn.00656a75
int3

Function at 0x57fca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x57fd20
lea eax, [ebp - 0x14]
push 0
push eax
push 0x57fb40
push 0x705a40
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x57fd1a
xor esi, esi
cmp dword [0x705a44], 0
jne 0x57fd06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x705a48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x57fd06
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00656a75
int3
Function at 0x57fd40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x57fd20
lea eax, [ebp - 0x14]
push 0
push eax
push 0x57fb40
push 0x705a40
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x57fe33
mov ebx, dword [ebp + 0x10]
cmp dword [0x705a44], 0
je 0x57fd90
push dword [ebp + 0xc]
call ebx
add esp, 4
xor esi, esi
jmp 0x57fddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [0x705a48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x57fdf0
mov edi, dword [ebp + 8]
push 0x705a4c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [edi*4 + 0x705a50], ebx
push 0x705a4c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
call fcn.005166d0
add esp, 4
test eax, eax
je 0x57fd84
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
push eax
push dword [0x705a48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x57fdb1
push esi
call fcn.00516700
add esp, 4
jmp 0x57fd84
call fcn.00656a75
int3
Function at 0x5a0c78
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x7024bc]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor edi, edi
mov ebx, 3
test al, al
je 0x5a0cdd
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov ebx, 0x80003
cmp eax, 6
jb 0x5a0cdd
lea edi, [ebp - 0x1c]
mov dword [edi], 0xc
mov dword [esp], 0
call fcn.005a0d23
mov dword [edi + 4], eax
mov dword [edi + 8], 1
cmp byte [esi + 0xb], 0
jns 0x5a0ce5
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x6c7c60]
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]
sub esp, 0x20
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5a0f38
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x5a0ff9
and eax, 0xfeff
cmp eax, 6
je 0x5a0ff9
mov eax, dword [0x705c0c]
mov ecx, dword [0x705840]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5a1019
push 0x10000000
push 0
push esi
call dword [0x705c08]
mov esi, eax
test eax, eax
jne 0x5a0ff2
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5a0ff2
call fcn.0049a360
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x21
push str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
call fcn.0049a500
lea eax, [ebp - 0xb4]
push 0x1b
push 0x6c7e9d
push eax
call fcn.0040280c
add esp, 0xc
mov ecx, edi
call fcn.0049a5b0
test esi, esi
setne bl
jmp 0x5a1002
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x705c0c
call fcn.00641847
add esp, 4
cmp dword [0x705c0c], 0xffffffff
jne 0x5a0f97
push 1
push str.::InitializeCriticalSectionEx
push 0x68a6fc
call fcn.005a157c
add esp, 0xc
mov dword [0x705c08], eax
push 0x705c0c
call fcn.006418bd
add esp, 4
jmp 0x5a0f97

Function at 0x5a1060
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 0x5a97b0
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 [0x7024bc]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x5a9853
mov esi, ecx
mov dword [esp + 0x10], 0
mov byte [esp + 0x13], 9
mov dword [esp + 0xc], 0x65647261
mov dword [esp + 8], 0x63736964
mov word [esp + 0x10], 0x64
push 0x40
call fcn.0064173e
add esp, 4
mov ebx, eax
lea eax, [esp + 8]
mov edi, esp
mov ecx, esi
push eax
push edi
call fcn.005a9720
mov ecx, ebx
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x10]
push eax
call fcn.005a9870
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x5a983d
mov ecx, edi
call fcn.005a98c0
push edi
call fcn.006417be
add esp, 4
cmp byte [esp + 0x13], 0
jns 0x5a9850
push dword [esp + 8]
call fcn.006417be
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.0064180a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5ab5b7
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x5ab5d9
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x5ab6bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5ab614
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005ab6d3
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ab6ba
call fcn.0049a360
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x25e
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0049a500
lea eax, [ebp - 0xb4]
push 0x10
push str.CreateDirectory
push eax
call fcn.0040280c
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5ab668
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ab68d
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5ab6af
push dword [ebp - 0xc8]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0049a5b0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ab6d3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x5ab6f5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ab7c4
mov bl, 1
test al, 0x10
jne 0x5ab86c
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ab86a
lea ecx, [ebp - 0xbc]
push 2
push 0x24d
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.004999e0
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0040280c
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5ab75d
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ab782
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.0040280c
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5ab7b4
push dword [ebp - 0xc8]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00499dc0
jmp 0x5ab86a
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ab86a
call fcn.0049a360
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x249
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0049a500
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0040280c
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5ab818
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ab83d
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5ab85f
push dword [ebp - 0xc8]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0049a5b0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5accb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x30], xmm0
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x5acd0e
mov dword [ebp - 0x34], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.005af328
test al, al
jne 0x5accfb
add esi, 0x58
cmp ebx, esi
jne 0x5acce6
mov esi, ebx
mov eax, dword [ebp - 0x34]
cmp esi, dword [eax + 0x20]
je 0x5acd0e
cmp byte [esi + 0x1b], 0
jns 0x5acd13
mov eax, dword [esi + 0x10]
jmp 0x5acd16
xor edi, edi
inc edi
jmp 0x5acd39
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 0x5acd39
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x5ae0c1
cmp byte [ecx + 0x1b], 0
jns 0x5ae0cf
mov ecx, dword [ecx + 0x10]
jmp 0x5ae0d2
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
jmp 0x5ae0ec
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 0x5d7210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
call fcn.00562fb0
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], 0x6caad0
mov dword [esi + 0xc], 0
lea eax, [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
movaps xmm0, xmmword [0x6ca930]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x5d72a9
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
add eax, 1
cmp eax, 2
jb 0x5d728d
call fcn.00499510
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.004bbc10
mov dword [esi + 0xc], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x5d729d
mov dword [esi + 0xc], edi
call fcn.00499510
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d9930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ecx + 4]
jmp 0x5d9946
mov esi, dword [esi + 0x8c]
test esi, esi
je 0x5d997b
xor edi, edi
xchg dword [esi], edi
test edi, edi
je 0x5d9940
nop word cs:[eax + eax]
nop dword [eax]
bsf ecx, edi
mov ebx, 1
shl ebx, cl
mov eax, dword [esi + ecx*4 + 8]
push eax
call dword [eax + 4]
add esp, 4
xor edi, ebx
jne 0x5d9960
jmp 0x5d9940
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5dc190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x78], eax
test byte [0x701b74], 9
je 0x5dc211
mov esi, ecx
mov eax, dword [ecx + 8]
mov edi, dword [eax + 4]
call fcn.00442c30
cmp edi, eax
jne 0x5dc211
lea edi, [esi + 0x10]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x5dc224
mov eax, dword [esi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x38], eax
mov ebx, dword [esi + 0x70]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
test byte [0x701b74], 0x19
jne 0x5dc22d
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0064180a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.004b9690
jmp 0x5dc1d7
mov eax, dword [esp + 0x38]
sub eax, ebx
mov ebx, dword [esp + 0x44]
add ebx, dword [esp + 0x40]
add ebx, dword [esp + 0x3c]
sar eax, 3
imul eax, eax, 0xba2e8ba3
add ebx, eax
mov edi, dword [esi]
call fcn.00442c30
mov esi, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.004bd5e0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov word [esp + 0x50], 0x301
mov dword [esp + 0x54], 0x676bb1
mov eax, ebx
sar eax, 0x1f
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0x701b74
mov dword [esp], 0x43
call fcn.004c2c50
mov al, byte [esp + 0x50]
test al, al
je 0x5dc211
xor esi, esi
jmp 0x5dc2ff
add esi, 1
movzx ecx, al
cmp esi, ecx
jae 0x5dc211
cmp byte [esp + esi + 0x51], 8
jne 0x5dc2f1
mov ecx, dword [esp + esi*8 + 0x60]
test ecx, ecx
je 0x5dc2f1
mov eax, dword [ecx]
mov dword [esp], 1
call dword [eax]
sub esp, 4
movzx eax, byte [esp + 0x50]
jmp 0x5dc2f1
Function at 0x5ecd3e
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 [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5ecd61
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ecd8a
mov ebx, eax
bt eax, 0xa
jae 0x5ecd7f
cmp byte [ebp + 0xc], 0
je 0x5ece30
and ebx, 0x10
shr ebx, 4
jmp 0x5ece32
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ece30
call fcn.0049a360
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x81
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0049a500
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0040280c
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5ecdde
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push eax
push edi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ece03
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push esi
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5ece25
push dword [ebp - 0xc8]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0049a5b0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ece49
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5ece6c
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x5ecfd4
cmp byte [ebp + 0x10], 0
je 0x5ecf3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5ecf3e
push 1
push edi
call fcn.005ecd3e
add esp, 8
test al, al
jne 0x5ecfd4
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ecfd2
lea ecx, [ebp - 0xc8]
push 2
push 0x5c
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.004999e0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5ecee0
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea esi, [ebp - 0xc0]
lea ebx, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ecf02
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.0040280c
add esp, 0xc
push 0x10
push str._not_a_directory
push eax
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x5ecf2e
push dword [ebp - 0x1c]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xc8]
call fcn.00499dc0
jmp 0x5ecfd2
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ecfd2
call fcn.0049a360
lea ecx, [ebp - 0xc8]
push eax
push 2
push 0x61
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0049a500
lea eax, [ebp - 0xc0]
push 0x10
push str.CreateDirectory
push eax
call fcn.0040280c
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5ecf8f
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ecfab
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x5ecfc7
push dword [ebp - 0x1c]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xc8]
call fcn.0049a5b0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ecfeb
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 [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5ed00e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ed033
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
jmp 0x5ed0e2
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ed0d6
call fcn.0049a360
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x74
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0049a500
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0040280c
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5ed084
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push eax
push edi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ed0a9
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push esi
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5ed0cb
push dword [ebp - 0xc8]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0049a5b0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
xor eax, eax
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5ed0ed
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 [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x5ed110
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ed143
and eax, 0x410
cmp eax, 0x410
jne 0x5ed143
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005ed21d
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x5ed14d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x5ed206
push 2
call fcn.00499940
add esp, 4
test al, al
je 0x5ed204
call fcn.0049a360
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0049a500
lea eax, [ebp - 0xb4]
push 0xb
push str.DeleteFile
push eax
call fcn.0040280c
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x5ed1b2
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.004a9bb0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5ed1d7
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.0040280c
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x5ed1f9
push dword [ebp - 0xc8]
call fcn.006417be
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.0049a5b0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret