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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edi, dword [ebp + 0xc]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x40], eax
test byte [0x599140], 0x19
jne 0x4ec387
cmp dword [edi + 0x34], 0
je 0x4ec2a2
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00528e13
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [0x5aaea8]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ec427
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x4ec2fe
mov ecx, dword [0x5aaea0]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aaea4]
jne 0x4ec2fe
mov eax, dword [eax + ecx*8]
test eax, eax
je 0x4ec2fe
mov ecx, dword [eax + 8]
mov dword [edi + 0x48], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x44], eax
mov eax, dword [0x5aae88]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ec479
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x4ec28d
mov ecx, dword [0x5aae80]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aae84]
jne 0x4ec28d
mov eax, dword [eax + ecx*8]
test eax, eax
je 0x4ec28d
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x34], ecx
movsd xmm0, qword [eax + 0x34]
mov ecx, dword [eax + 0x3c]
mov dword [edi + 0x40], ecx
movsd qword [edi + 0x38], xmm0
mov cl, 1
cmp byte [eax + 0x50], 0
jne 0x4ec37f
cmp dword [eax + 0x40], 0
setne cl
mov byte [edi + 0x50], cl
jmp 0x4ec28d
mov esi, ecx
mov ebx, dword [edi + 0x4c]
xor esi, dword [0x59bd90]
xor ebx, dword [0x59bd94]
mov dword [esp + 0x38], 0x483980
mov dword [esp + 0x3c], 0x5845e4
mov dword [esp], 8
call fcn.005283f4
mov dword [eax + 4], ebx
mov dword [eax], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x10], xmm0
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x57f540
mov dword [esp + 4], 0x599140
mov dword [esp], 0x49
call fcn.00483a70
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec287
mov esi, dword [esp + 0x30]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
jmp 0x4ec287
mov dword [esp], 0x5aaea8
call fcn.00528497
cmp dword [0x5aaea8], 0xffffffff
jne 0x4ec2c3
mov dword [0x5aaea4], 0
mov dword [0x5aaea0], 0xffffffff
mov dword [esp], 0
mov ecx, 0x5aaea0
call fcn.004624b0
sub esp, 4
mov dword [esp], 0x5aaea8
call fcn.0052850d
jmp 0x4ec2c3
mov dword [esp], 0x5aae88
call fcn.00528497
cmp dword [0x5aae88], 0xffffffff
jne 0x4ec31f
mov dword [0x5aae84], 0
mov dword [0x5aae80], 0xffffffff
mov dword [esp], 0
mov ecx, 0x5aae80
call fcn.004624b0
sub esp, 4
mov dword [esp], 0x5aae88
call fcn.0052850d
jmp 0x4ec31f
Function at 0x4ec4d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ebp + 8]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0xd017d00d
mov dword [ebp - 0x14], 0x1d178119
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2c], eax
movups xmm0, xmmword [edi + 0x34]
movups xmmword [ebp - 0x28], xmm0
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042a7c0
add esp, 4
mov eax, dword [0x5aae88]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ec62f
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
and eax, 0xfffffffc
je 0x4ec55d
mov ecx, dword [0x5aae80]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aae84]
jne 0x4ec55d
mov ebx, dword [eax + ecx*8]
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ec612
mov ecx, dword [0x5aae80]
mov dword [eax + ecx*8], edi
mov ecx, dword [0x5aae84]
mov edx, dword [0x5aae80]
mov dword [eax + edx*8 + 4], ecx
mov esi, dword [edi]
mov dword [edi], 0
mov ecx, dword [esi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
test esi, esi
je 0x4ec5ba
lock dec dword [esi]
jne 0x4ec5ba
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ec624
mov ecx, dword [0x5aae80]
mov dword [eax + ecx*8], ebx
mov ecx, dword [0x5aae84]
mov edx, dword [0x5aae80]
mov dword [eax + edx*8 + 4], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x30]
push eax
call fcn.0042a7c0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 4
test edi, edi
je 0x4ec58b
call fcn.004625e0
jmp 0x4ec572
test ebx, ebx
je 0x4ec5e4
call fcn.004625e0
jmp 0x4ec5cb
push 0x5aae88
call fcn.00528497
add esp, 4
cmp dword [0x5aae88], 0xffffffff
jne 0x4ec535
mov dword [0x5aae84], 0
mov dword [0x5aae80], 0xffffffff
mov ecx, 0x5aae80
push 0
call fcn.004624b0
push 0x5aae88
call fcn.0052850d
add esp, 4
jmp 0x4ec535
Function at 0x4ecbb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 8], eax
mov byte [ecx], 0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x4ecbf0
push edi
call fcn.0042f0b8
add esp, 4
jmp 0x4ecbfc
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov ebx, dword [ebp + 0x10]
mov dword [esi + 4], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov byte [esi + 0x2c], 0
xorps xmm0, xmm0
movups xmmword [esi + 8], xmm0
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x4ecc46
push edi
call fcn.0042f0b8
add esp, 4
jmp 0x4ecc52
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [esi + 0x30], edi
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x4ecc76
push ebx
call fcn.0042f0b8
add esp, 4
jmp 0x4ecc82
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [esi + 0x34], ebx
mov eax, dword [0x5aae98]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ecd9d
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x4eccce
mov ecx, dword [0x5aae90]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aae94]
jne 0x4eccce
mov edi, dword [eax + ecx*8]
mov eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4eccf0
push eax
call fcn.0042f1aa
add esp, 4
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x4ecd11
push edi
call fcn.0042f0b8
add esp, 4
jmp 0x4ecd1d
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [esi + 0x1c], edi
test byte [0x599068], 9
jne 0x4ecd6e
mov byte [esi + 0x18], 0
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4ecd92
mov ecx, dword [0x5aae90]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x5aae94]
mov edx, dword [0x5aae90]
mov dword [eax + edx*8 + 4], ecx
mov ecx, dword [esp + 8]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov byte [esi + 0x18], 1
mov ecx, dword [0x599b40]
call dword [section..00cfg]
mov eax, esp
push eax
call ecx
add esp, 4
movsd xmm0, qword [esp]
movsd qword [esi + 8], xmm0
jmp 0x4ecd2d
test esi, esi
je 0x4ecd57
call fcn.004625e0
jmp 0x4ecd3e
push 0x5aae98
call fcn.00528497
add esp, 4
cmp dword [0x5aae98], 0xffffffff
jne 0x4ecca6
mov dword [0x5aae94], 0
mov dword [0x5aae90], 0xffffffff
mov ecx, 0x5aae90
push 0
call fcn.004624b0
push 0x5aae98
call fcn.0052850d
add esp, 4
jmp 0x4ecca6
Function at 0x4edcd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5aaeb8]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4eddc9
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4edd1f
mov ecx, dword [0x5aaeb0]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aaeb4]
jne 0x4edd1f
cmp dword [eax + ecx*8], 0
jne 0x4edd90
push 4
call fcn.005283f4
add esp, 4
mov esi, eax
mov dword [eax], 0
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x4edd59
mov ecx, dword [0x5aaeb0]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aaeb4]
jne 0x4edd59
mov edi, dword [eax + ecx*8]
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4eddbe
mov ecx, dword [0x5aaeb0]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x5aaeb4]
mov edx, dword [0x5aaeb0]
mov dword [eax + edx*8 + 4], ecx
test edi, edi
je 0x4edd90
push edi
call fcn.00528424
add esp, 4
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
xor eax, eax
and ecx, 0xfffffffc
je 0x4eddba
mov edx, dword [0x5aaeb0]
mov esi, dword [ecx + edx*8 + 4]
cmp esi, dword [0x5aaeb4]
jne 0x4eddba
mov eax, dword [ecx + edx*8]
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x4edd83
call fcn.004625e0
jmp 0x4edd6a
push 0x5aaeb8
call fcn.00528497
add esp, 4
cmp dword [0x5aaeb8], 0xffffffff
jne 0x4edcf6
mov dword [0x5aaeb4], 0
mov dword [0x5aaeb0], 0xffffffff
mov ecx, 0x5aaeb0
push 0x463520
call fcn.004624b0
push 0x5aaeb8
call fcn.0052850d
add esp, 4
jmp 0x4edcf6
Function at 0x4ee0d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
cmp dword [ecx + 8], 0
jne 0x4ee194
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 8], eax
mov eax, dword [0x5abb78]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ee198
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0xffffffff
and eax, 0xfffffffc
je 0x4ee13c
mov edx, dword [0x5abb70]
mov edi, dword [eax + edx*8 + 4]
cmp edi, dword [0x5abb74]
jne 0x4ee13c
mov eax, dword [eax + edx*8]
test eax, eax
je 0x4ee13c
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
mov eax, dword [0x5abb68]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ee1e4
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0xffffffff
and eax, 0xfffffffc
je 0x4ee191
mov edx, dword [0x5abb60]
mov edi, dword [eax + edx*8 + 4]
cmp edi, dword [0x5abb64]
jne 0x4ee191
mov eax, dword [eax + edx*8]
test eax, eax
je 0x4ee191
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
pop esi
pop edi
pop ebp
ret
push 0x5abb78
call fcn.00528497
add esp, 4
cmp dword [0x5abb78], 0xffffffff
jne 0x4ee10b
mov dword [0x5abb74], 0
mov dword [0x5abb70], 0xffffffff
mov ecx, 0x5abb70
push 0
call fcn.004624b0
push 0x5abb78
call fcn.0052850d
add esp, 4
jmp 0x4ee10b
push 0x5abb68
call fcn.00528497
add esp, 4
cmp dword [0x5abb68], 0xffffffff
jne 0x4ee160
mov dword [0x5abb64], 0
mov dword [0x5abb60], 0xffffffff
mov ecx, 0x5abb60
push 0
call fcn.004624b0
push 0x5abb68
call fcn.0052850d
add esp, 4
jmp 0x4ee160
Function at 0x4f1232
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 [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4f1255
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f1281
mov ebx, eax
cmp byte [ebp + 0xc], 0
jne 0x4f1276
mov eax, ebx
and eax, 0x400
jne 0x4f132d
and ebx, 0x10
shr ebx, 4
jmp 0x4f132f
cmp dword [0x59d910], 2
jg 0x4f132d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x82
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0042d698
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4f12d1
mov eax, dword [edi + 4]
mov edi, dword [edi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push edi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4f1300
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4f1322
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f1346
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4f1369
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4f14dc
cmp byte [ebp + 0x10], 0
je 0x4f1440
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4f1440
push 1
push edi
call fcn.004f1232
add esp, 8
test al, al
jne 0x4f14dc
cmp dword [0x59d910], 2
jg 0x4f14da
lea ecx, [ebp - 0xc4]
push 2
push 0x5d
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00470c60
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4f13d8
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea esi, [ebp - 0xbc]
xor ecx, ecx
lea ebx, [ebp - 0x1c]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push edi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4f1404
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.0042d698
add esp, 0xc
push 0x10
push str._not_a_directory
push eax
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4f1430
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xc4]
call fcn.00471070
jmp 0x4f14da
cmp dword [0x59d910], 2
jg 0x4f14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xc4]
push eax
push 2
push 0x62
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00471a00
lea eax, [ebp - 0xbc]
push 0x10
push str.CreateDirectory
push eax
call fcn.0042d698
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4f148d
mov eax, dword [edi + 4]
mov edi, dword [edi]
xor ecx, ecx
lea ebx, [ebp - 0x1c]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push edi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4f14b3
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4f14cf
push dword [ebp - 0x1c]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xc4]
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f14f3
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 [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4f1516
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f152f
test eax, 0x410
sete bl
jmp 0x4f15da
cmp dword [0x59d910], 2
jg 0x4f15d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x75
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0042d698
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4f157c
mov eax, dword [edi + 4]
mov edi, dword [edi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push edi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4f15ab
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4f15cd
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f15f1
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 [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4f1614
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f1647
and eax, 0x410
cmp eax, 0x410
jne 0x4f1647
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004f1727
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4f1651
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x4f1710
cmp dword [0x59d910], 2
jg 0x4f170e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x95
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.0042d698
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4f16b2
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
push esi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4f16e1
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4f1703
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f1727
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4f1749
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x4f180c
cmp dword [0x59d910], 2
jg 0x4f180c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x30
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00471a00
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.0042d698
add esp, 0xc
movzx edx, byte [edi + 0xb]
test dl, dl
mov dword [ebp - 0xc8], eax
jns 0x4f17ab
mov edx, dword [edi + 4]
mov edi, dword [edi]
xor ecx, ecx
lea ebx, [ebp - 0xc4]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push edx
push edi
call fcn.004648a0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4f17da
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push dword [ebp - 0xc8]
call fcn.0042d698
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4f1801
push dword [ebp - 0xc4]
call fcn.00528424
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00471b70
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4f1de8
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0x10
push ecx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4f1e1b
movzx eax, word [esi + 6]
and eax, 0xfff
or eax, 0x4000
mov word [esi + 6], ax
mov al, byte [esi + 8]
and al, 0x3f
or al, 0x80
mov byte [esi + 8], al
mov al, 1
pop esi
pop ebp
ret
int3

Function at 0x4f1fc4
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 [0x597010]
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 0x4f200d
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x4f2010
int3
xor esi, esi
dec esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
Function at 0x4f2022
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x597010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, 0x7fffffff
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
push 0
push eax
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f209a
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileType]
mov eax, ebx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x4f20ac
mov ebx, eax
push eax
mov edi, ecx
call ecx
cmp eax, 3
jne 0x4f20c5
mov dword [ebp - 0x14], 0xffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, edi
jne 0x4f2067
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x4f20b1
cmp ebx, 0xffffffff
je 0x4f20ca
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
jmp 0x4f20b1
int3

Function at 0x4f266c
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 [0x597010]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.004f257d
add esp, 0x10
or edx, eax
jne 0x4f26eb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x4f26eb
cmp dword [0x59d910], 2
jg 0x4f26e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.00471a00
lea eax, [ebp - 0xac]
push 0xc
push 0x58c92e
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
call fcn.00471b70
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
Function at 0x4f8a68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x4f8ae0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4f8aa4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00528e13
add esp, 8
pop esi
pop ebp
ret
lea esi, [ebp - 0xc]
push 0x1b
push str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
push esi
call fcn.0047af90
add esp, 0xc
mov eax, dword [esi]
add eax, 8
push 0xc
push 0x58ac34
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
call fcn.0047b000
jmp 0x4f8a94