joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53d6d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5c29e0], 0
jne 0x53d713
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x53d705
push 0x5989c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5c29dc], eax
mov byte [0x5c29e0], 1
jmp 0x53d718
mov eax, dword [0x5c29dc]
mov byte [0x5c29e0], 1
jmp 0x53d718
mov eax, dword [0x5c29dc]
test eax, eax
je 0x53d72c
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
test al, al
je 0x53d72c
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret

Function at 0x53e2b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.starting_background_worker_thread
push 0xffffffffffffffff
call fcn.00535300
mov esi, dword [ebp + 8]
add esp, 8
mov eax, 1
lea edi, [esi + 0x40]
xchg dword [edi], eax
mov ecx, 1
lea eax, [esi + 0x3c]
lock xadd dword [eax], ecx
push 0
push 0
push esi
push 0x53e5e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x53e30e
xor ecx, ecx
xchg dword [edi], ecx
push esi
call fcn.0053dd00
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x53ea20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x53ea37
pop edi
pop ebp
ret
push esi
push edi
call fcn.00529210
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x53ea62
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x540eb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57353a
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x2c], 0
cmp dword [esi + 0x14], 8
jb 0x540ef0
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x540f04
mov al, 1
jmp 0x540fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x540fb3
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x540f24
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0055aaa0
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x266
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::CreateDirectoryIfNecessary_const_class_base::FilePath__
lea ecx, [ebp - 0xdc]
call fcn.00559b90
push str.CreateDirectory
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 3
call fcn.0042a880
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x540f91
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0053f440
add esp, 0xc
lea ecx, [ebp - 0xdc]
call fcn.00559e70
lea ecx, [ebp - 0x28]
call fcn.00409f80
xor al, al
jmp 0x540fbc
push esi
call fcn.005411d0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
Function at 0x541000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5735ba
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
mov dword [ebp - 0x44], 0
call fcn.005402d0
cmp dword [ebp - 0x48], 0
mov dword [ebp - 4], 0
jne 0x541061
mov esi, 3
jmp 0x5411a6
lea ecx, [ebp - 0x28]
call fcn.00558690
mov eax, dword [ebp - 0x48]
mov edi, dword [eax + 0x3c]
lea ecx, [eax + 0x38]
mov esi, dword [ecx]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], eax
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x38], xmm0
cmp esi, edi
je 0x5410a9
nop dword [eax]
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0054f8f0
test al, al
jne 0x5410a6
add esi, 0x70
cmp esi, edi
jne 0x541090
mov eax, dword [ebp - 0x44]
cmp esi, dword [eax + 0x3c]
jne 0x5410b8
mov esi, 1
jmp 0x54119e
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.005586e0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005433f0
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x34], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x541191
sub esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0055aaa0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x370
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.enum_crashpad::CrashReportDatabase::OperationStatus___thiscall_crashpad::CrashReportDatabaseWin::DeleteReport_const_struct_crashpad::UUID__
lea ecx, [ebp - 0x108]
call fcn.00559b90
push str.DeleteFile
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x44], 3
call fcn.0042a880
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x54116c
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0053f440
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.00559e70
lea ecx, [ebp - 0x40]
call fcn.00409f80
mov esi, 2
jmp 0x54119e
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
call fcn.0054cc10
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.005586d0
lea ecx, [ebp - 0x48]
call fcn.0053fe10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret 4
Function at 0x5411d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57365f
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x44], 0
cmp dword [esi + 0x14], 8
jb 0x541210
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5412c1
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x54122f
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0055aaa0
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x251
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0x19c]
call fcn.00559b90
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], 3
call fcn.0042a880
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x54129c
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0053f440
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00559e70
lea ecx, [ebp - 0x28]
call fcn.00409f80
xor al, al
jmp 0x54136e
test al, 0x10
jne 0x54136c
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x5412d8
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0055aaa0
add esp, 0xc
mov esi, eax
push 2
push 0x255
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], 4
call fcn.00559920
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x44], 0xc
call fcn.0042a880
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x54133f
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0053f440
push str.:_not_a_directory
push eax
call fcn.0042a880
add esp, 0x14
lea ecx, [ebp - 0xec]
call fcn.00559c90
lea ecx, [ebp - 0x40]
call fcn.00409f80
xor al, al
jmp 0x54136e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
Function at 0x541390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
push esi
mov esi, dword [ecx + 0x38]
cmp esi, ebx
je 0x5413f0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x68], eax
jne 0x5413e8
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x5413b7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5413e5
test al, 0x10
jne 0x5413e5
mov eax, dword [edi + 4]
push esi
cmp eax, dword [edi + 8]
je 0x5413dd
mov ecx, eax
call fcn.0053faf0
add dword [edi + 4], 0x68
jmp 0x5413e5
push eax
mov ecx, edi
call fcn.0053eff0
mov eax, dword [ebp + 8]
add esi, 0x70
cmp esi, ebx
jne 0x5413a7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebx + 0xc]
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 0x3c]
mov esi, dword [eax + 0x38]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
cmp esi, edi
je 0x54145a
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0054f8f0
test al, al
jne 0x54145a
add esi, 0x70
cmp esi, edi
jne 0x541444
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x3c]
jne 0x541469
mov eax, 1
jmp 0x54148d
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x541474
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x541462
shr eax, 3
and eax, 2
jne 0x54148d
mov ecx, dword [ebp - 0x28]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00563360
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x5414b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov edx, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push esi
mov esi, dword [edx + 0x38]
push edi
movups xmm0, xmmword [eax]
mov edi, dword [edx + 0x3c]
mov dword [ebp - 0x24], edx
movups xmmword [ebp - 0x20], xmm0
cmp esi, edi
je 0x54150d
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0054f8f0
test al, al
jne 0x54150a
add esi, 0x70
cmp esi, edi
jne 0x5414f4
mov edx, dword [ebp - 0x24]
cmp esi, dword [edx + 0x3c]
jne 0x541519
mov eax, 1
jmp 0x541569
mov ecx, dword [esi + 0x68]
cmp ecx, dword [ebx + 0xc]
jne 0x54154d
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x54152c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x541542
mov edx, dword [ebp - 0x24]
mov eax, 1
jmp 0x54155c
mov edx, dword [ebp - 0x24]
shr eax, 3
and eax, 2
jmp 0x54155c
mov eax, 1
mov edi, 4
cmp ecx, eax
cmove eax, edi
test eax, eax
jne 0x541569
mov ecx, dword [ebp - 0x28]
mov byte [edx + 0x34], 1
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00563360
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x54c100
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575135
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x74], edi
call fcn.0054fbf0
mov eax, dword [esi]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov ecx, str.attachments
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54c175
sub ecx, edx
sar ecx, 1
push ecx
push str.attachments
lea ecx, [ebp - 0x28]
call fcn.0041d2f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00558770
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
push edi
mov ecx, eax
call fcn.00558770
lea ecx, [ebp - 0x58]
call fcn.005586d0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x54c1f3
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x54c1e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54c23b
push ecx
push edx
call fcn.00563352
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.005586d0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x54c24b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x54c241
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x54c241
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret 8
Function at 0x54c270
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575175
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
mov esi, dword [ebp + 8]
push edx
mov dword [ebp - 0x44], esi
mov eax, dword [eax + 0x30]
call eax
mov edi, eax
mov ecx, str.attachments
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54c2d1
sub ecx, edx
sar ecx, 1
push ecx
push str.attachments
lea ecx, [ebp - 0x28]
call fcn.0041d2f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push esi
mov ecx, edi
call fcn.00558770
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x54c33a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x54c330
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x54c330
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.005586d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret 4
Function at 0x54eb20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575c3d
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x54ebca
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xf1
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadutil_file_file_io_win.cc
push str.__int64___cdecl_crashpad::LoggingSeekFile_void____int64_int_
lea ecx, [ebp - 0xcc]
call fcn.00559b90
push 0x59ae20
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 4
call fcn.0042a880
add esp, 8
lea ecx, [ebp - 0xcc]
call fcn.00559e70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
jne 0x54ec28
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54ec39
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xfb
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadutil_file_file_io_win.cc
push str.bool___cdecl_crashpad::LoggingTruncateFile_void__
lea ecx, [ebp - 0x17c]
call fcn.00559b90
push 0x59ae34
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 1
call fcn.0042a880
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.00559e70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x54ed10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575cb0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov ecx, bind
push eax
mov eax, dword [ebp + 0x10]
cmp eax, ecx
cmova eax, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x54ed6e
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], 0xffffffff
mov dword [ebp + 0x10], 0xffffffff
jne 0x54edb7
push str.bytes_written___static_cast_DWORD___1_
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0054e230
add esp, 0xc
test eax, eax
je 0x54edb7
push eax
push 0x65
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadutil_file_file_io_win.cc
push str.long___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned_int_
lea ecx, [ebp - 0xb8]
call fcn.00559a10
lea ecx, [ebp - 0xb8]
call fcn.00559c90
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x54eee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, bind
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
push 0
cmova edi, eax
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54ef85
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 4], 0xffffffff
nop
cmp dword [ebp + 0x10], 0xffffffff
jne 0x54ef62
push str.bytes_read___static_cast_DWORD___1_
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0054e230
add esp, 0xc
test eax, eax
je 0x54ef62
push eax
push 0x7e
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadutil_file_file_io_win.cc
push str.long___cdecl_crashpad::ReadFile_void__void__unsigned_int_
lea ecx, [ebp - 0xac]
call fcn.00559a10
lea ecx, [ebp - 0xac]
call fcn.00559c90
cmp dword [ebp + 0x10], 0
jne 0x54ef99
push esi
call ebx
cmp eax, 3
jne 0x54ef99
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x54ef20
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x550550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576126
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x64], 0
cmp dword [esi + 0x14], 8
jb 0x550590
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x55063c
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x5505af
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0055aaa0
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 2
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x75
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea ecx, [ebp - 0x114]
call fcn.00559b90
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x64], 6
call fcn.0042a880
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x550619
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0053f440
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00559e70
lea ecx, [ebp - 0x28]
call fcn.00409f80
jmp 0x5506c1
test eax, 0x410
jne 0x5506c1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x55064d
mov eax, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
add esp, 8
test eax, eax
jne 0x550667
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
jmp 0x5506c5
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xac
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadutil_file_filesystem_win.cc
push str.unsigned___int64___cdecl_crashpad::GetFileSize_const_class_base::FilePath__
lea ecx, [ebp - 0x1c4]
call fcn.00559b90
push str.stat
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x64], 1
call fcn.0042a880
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x5506ad
mov esi, dword [esi]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
lea ecx, [ebp - 0x1c4]
call fcn.00559e70
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret