joyce8/EMBER2024-capa huggingface dataset:
Function at 0x562070
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], edx
mov edi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x30]
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x20]
push 0x7b
push str..._.._base_files_file_util_win.cc
push str.DoCopyFile
push esi
call fcn.004e0f50
add esp, 0x10
mov ecx, ebx
mov ebx, edi
push 0
push esi
call fcn.004e70c0
mov ecx, edi
call fcn.004e0c80
test al, al
jne 0x5620ea
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004e0c80
test al, al
je 0x56210a
xor ebx, ebx
lea ecx, [esp + 0x30]
call fcn.004e7120
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x562115
mov eax, dword [ebx + 4]
cmp eax, 0x103
ja 0x5620ea
movzx eax, byte [edi + 0xb]
test al, al
jns 0x562127
mov eax, dword [edi + 4]
cmp eax, 0x103
ja 0x5620ea
mov dword [esp + 8], ebx
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x10]
push 0x88
push str..._.._base_files_file_util_win.cc
push str.DoCopyFile
push esi
call fcn.004e0f50
add esp, 0x10
mov ecx, ebx
push 0x614ec8
push esi
mov esi, edi
call fcn.00487770
cmp byte [edi + 0xb], 0
jns 0x562171
mov esi, dword [esi]
mov ecx, dword [esp + 8]
mov al, byte [ebp + 8]
movzx eax, al
cmp byte [ecx + 0xb], 0
jns 0x562183
mov ecx, dword [ecx]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x5621c6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x5621b2
mov eax, edi
and eax, 1
je 0x5621b2
mov eax, edi
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bl
lea ecx, [esp + 0x20]
call fcn.004878a0
jmp 0x5620ec
xor ebx, ebx
jmp 0x5621b8
Function at 0x562a30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x562aa2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x562aa6
cmp byte [ebp + 0xc], 0
je 0x562a82
cmp byte [esi + 4], 0
je 0x562af7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
push edi
call fcn.00466940
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x562a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x562acc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x562ad0
xor ebx, ebx
jmp 0x562a8c
mov eax, dword [esi]
jmp 0x562ab8
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x562afe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x562a82
mov edi, dword [ebp - 0x14]
jmp 0x562a82
mov eax, dword [esi]
jmp 0x562a76
mov eax, dword [esi]
jmp 0x562ae3

Function at 0x5635a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
mov dword [eax], ebx
mov ecx, 0x20019
or ecx, dword [esi + 4]
push eax
push ecx
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x5635ee
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x14]
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x5635d8
mov edi, 0x91
cmp dword [ebp - 0x18], 0
jne 0x5635d8
push 0
push dword [esi + 4]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x5635d8
Function at 0x569920
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x208
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x210]
push 0x200
push 0xff
push edi
call fcn.005072d0
add esp, 0xc
lea esi, [ebp - 0x214]
mov dword [esi], 0x100
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
sete cl
mov eax, dword [esi]
test eax, eax
sete bl
or bl, cl
jne 0x569999
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0044a9c0
mov ecx, esi
push 0x2e
push 1
call fcn.0044aeb0
mov eax, dword [ebp - 0x214]
dec eax
mov ecx, esi
push eax
push edi
call fcn.004de0e0
xor bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x208
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x56f580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor eax, eax
mov ecx, 0xedb88320
mov esi, eax
shr esi, 1
mov edx, eax
and edx, 1
neg edx
and edx, ecx
xor edx, esi
mov edi, edx
shr edi, 1
bt eax, 1
mov esi, 0
sbb esi, esi
and esi, ecx
xor esi, edi
mov edi, esi
shr edi, 1
bt edx, 1
mov edx, 0
sbb edx, edx
and edx, ecx
xor edx, edi
mov edi, edx
shr edi, 1
bt esi, 1
mov esi, 0
sbb esi, esi
and esi, ecx
xor esi, edi
mov ebx, esi
shr ebx, 1
bt edx, 1
mov edi, 0
sbb edi, edi
and edi, ecx
xor edi, ebx
mov ebx, edi
shr ebx, 1
bt esi, 1
mov edx, 0
sbb edx, edx
and edx, ecx
xor edx, ebx
bt edi, 1
mov esi, 0
sbb esi, esi
and esi, ecx
mov edi, edx
shr edi, 2
shr esi, 1
xor esi, edi
bt edx, 1
mov edx, 0
sbb edx, edx
and edx, ecx
xor edx, esi
mov dword [eax*4 + 0x616b40], edx
inc eax
cmp eax, 0x100
jne 0x56f58d
mov eax, 0xffffe400
mov ecx, dword [eax + 0x618740]
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x616b40]
mov dword [eax + 0x618b40], ecx
add eax, 4
jne 0x56f638
mov eax, 0x585570
mov dword [0x618b40], eax
mov dword [0x616b3c], eax
mov dword [0x618b44], 0x585620
call fcn.00585830
test eax, eax
jne 0x56f682
mov dword [0x616b3c], 0x585620
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5736d0
Capabilities:
Create process on windows

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 [0x603024]
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 eax, esp
push 0x175
push str..._.._base_win_shortcut.cc
push 0x5edcf8
push eax
call fcn.004e0f50
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 4]
push eax
call fcn.004e70c0
cmp byte [edi + 0xb], 0
jns 0x573736
mov edi, dword [edi]
push ebx
push ebx
push ebx
push edi
push str.taskbarpin
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
setge bl
mov ecx, esi
call fcn.004e7120
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x573770
Capabilities:
Create process on windows

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 [0x603024]
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 eax, esp
push 0x17e
push str..._.._base_win_shortcut.cc
push str.UnpinShortcutFromTaskbar
push eax
call fcn.004e0f50
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 4]
push eax
call fcn.004e70c0
cmp byte [edi + 0xb], 0
jns 0x5737d6
mov edi, dword [edi]
push ebx
push ebx
push ebx
push edi
push str.taskbarunpin
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
setge bl
mov ecx, esi
call fcn.004e7120
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5807b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, 5
pop ebp
jmp fcn.005807d0

Function at 0x5807d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov ebx, edx
mov edi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.005072d0
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
xor eax, eax
push esi
push eax
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x58084b
push esi
call fcn.00520e34
add esp, 4
mov edx, esi
lea esi, [ebp - 0x224]
mov ecx, esi
push eax
push edx
call fcn.004dfa40
mov ecx, ebx
push esi
call fcn.004dfb20
mov ecx, esi
call fcn.004dfb00
test edi, edi
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5808d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, 0xd
pop ebp
jmp fcn.005807d0
Function at 0x5808f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, 0x27
pop ebp
jmp fcn.005807d0

Function at 0x580910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, 0xe
pop ebp
jmp fcn.005807d0

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x5813a2
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.00580d00
test al, al
jne 0x58138f
add esi, 0x58
cmp esi, ebx
jne 0x58137a
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x5813a2
cmp byte [esi + 0x1b], 0
jns 0x5813b9
mov eax, dword [esi + 0x10]
jmp 0x5813bc
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
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 0x5813a5
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x5813a5

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp edi, ebx
je 0x58156d
mov dword [ebp - 0x24], ecx
lea esi, [ebp - 0x20]
mov ecx, edi
push esi
call fcn.00580d00
test al, al
jne 0x58154f
add edi, 0x58
cmp edi, ebx
jne 0x58153a
mov edi, ebx
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x24]
cmp edi, dword [esi + 0x2c]
je 0x581570
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 8]
jne 0x581584
cmp byte [edi + 0x1b], 0
jns 0x581592
mov eax, dword [edi + 0x10]
jmp 0x581595
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp eax, 1
sete cl
lea ebx, [ecx + ecx*2]
inc ebx
jmp 0x581570
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x581570
shr eax, 3
and eax, 2
mov ebx, eax
jne 0x581570
mov byte [esi + 0x24], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor ebx, ebx
jmp 0x581570
Function at 0x58e5e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ecx + 0xc]
lea eax, [ecx + 0x10]
push 0x228
push 0
push eax
call fcn.005072d0
add esp, 0xc
mov dword [esi + 0xc], 0x22c
cmp byte [esi + 8], 0
je 0x58e61c
push edi
push dword [esi + 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
pop esi
pop edi
pop ebp
ret
mov byte [esi + 8], 1
push edi
push dword [esi + 4]
call sub.KERNEL32.dll_Process32FirstW
jmp 0x58e613

Function at 0x591000
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 [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x591023
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x591048
mov ebx, eax
cmp byte [ebp + 0xc], 0
jne 0x591040
mov eax, ebx
and eax, 0x400
jne 0x591056
and ebx, 0x10
shr ebx, 4
jmp 0x591058
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x59106f
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0055df20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x82
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0055e050
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.005364d0
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5910b1
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5910d6
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x5910f8
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0055e0b0
jmp 0x591056
Function at 0x591110
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 [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x591133
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x591159
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x591170
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x591209
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x591182
xor ebx, ebx
jmp 0x591142
call fcn.0055df20
lea ecx, [ebp - 0xc4]
push eax
push 2
push 0x62
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0055e050
lea eax, [ebp - 0xbc]
push 0x10
push str.CreateDirectory
push eax
call fcn.005364d0
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x5911c1
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5911dd
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x5911f9
push dword [ebp - 0x1c]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xc4]
call fcn.0055e0b0
jmp 0x59117e
push 1
push edi
call fcn.00591000
add esp, 8
test al, al
jne 0x591142
push 2
call fcn.004e0f90
add esp, 4
test al, al
je 0x59117e
lea ecx, [ebp - 0xc4]
push 2
push 0x5d
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0045d3f0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x59124f
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea esi, [ebp - 0xbc]
lea ebx, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x591271
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.005364d0
add esp, 0xc
push 0x10
push str._not_a_directory
push eax
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x59129d
push dword [ebp - 0x1c]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xc4]
call fcn.0045d7d0
jmp 0x59117e
Function at 0x5912b0
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 [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5912d3
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5912fe
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x591310
xor ebx, ebx
jmp 0x5912e7
call fcn.0055df20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x75
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0055e050
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.005364d0
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x59134f
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x591374
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x591396
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0055e0b0
jmp 0x59130c

Function at 0x5913b0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x5913d3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5913eb
and eax, 0x410
cmp eax, 0x410
je 0x59142b
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x5913f5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
je 0x591419
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x591446
xor ebx, ebx
jmp 0x591402
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005914e0
call fcn.0055df20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x95
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0055e050
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.005364d0
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x591488
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5914ad
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x5914cf
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0055e0b0
jmp 0x591427
Function at 0x5914e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x591502
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x59151d
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x591539
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0055df20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x30
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.0055e050
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.005364d0
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xc8], eax
jns 0x59157c
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push ecx
push edi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5915a1
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push dword [ebp - 0xc8]
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x5915c8
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0055e0b0
jmp 0x59151d
Function at 0x5a1840
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005913b0

Function at 0x5a7060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
cmp edx, 0x40
jb 0x5a70ad
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0x4d
jne 0x5a70ad
cmp byte [ecx + 1], 0x5a
jne 0x5a70ad
mov esi, dword [ecx + 0x3c]
mov edi, edx
sub edi, esi
xor eax, eax
cmp edi, 0x18
jb 0x5a70af
cmp esi, edx
jae 0x5a70af
cmp esi, 0x40
jb 0x5a70af
mov edi, esi
and edi, 7
jne 0x5a70af
cmp byte [ecx + esi], 0x50
jne 0x5a70ad
cmp byte [ecx + esi + 1], 0x45
jne 0x5a70ad
cmp byte [ecx + esi + 2], 0
je 0x5a70b3
xor eax, eax
pop esi
pop edi
pop ebp
ret
cmp byte [ecx + esi + 3], 0
jne 0x5a70ad
add esi, 0x18
xor eax, eax
sub edx, esi
jbe 0x5a70af
cmp edx, 2
jb 0x5a70af
movzx eax, word [ebp + 0x10]
cmp word [ecx + esi], ax
sete al
jmp 0x5a70af
Function at 0x5ac380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x14]
mov dword [esi], eax
lea edi, [ebp - 0x18]
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [eax], 4
push eax
push edi
push esi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x5ac3ca
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5ac470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0xdc], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xb0]
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x5ac4c5
push 1
call fcn.004e0f90
add esp, 4
test al, al
jne 0x5ac4f0
mov eax, dword [esp + 0xc4]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [esp + 0xdc]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
lea esi, [esp + 0xc]
mov ecx, esi
push 1
push 0x10a
push str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
call fcn.0045d3f0
lea eax, [esp + 0x14]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.005364d0
add esp, 0xc
mov ecx, esi
call fcn.0045d7d0
jmp 0x5ac4c5