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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x41ae37
test eax, eax
je 0x41ae37
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x41ae45
mov ecx, dword [0x5677c4]
test ecx, ecx
jne 0x41ae81
cmp dword [0x5677bc], 0
je 0x41ae31
mov esi, dword [0x5677c0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x41ae8b
test esi, esi
je 0x41ae31
mov ecx, dword [0x5677bc]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x41ae31
call dword [section..00cfg]
call ecx
jmp 0x41ae45
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41ae69
Function at 0x426cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x426ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x426d02
lea eax, [ebx + 1]
cmp eax, 2
jb 0x426ce4
mov dword [esi], ebx
call fcn.0046e500
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x426d19
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0046e500
push dword [esi]
call fcn.0046aff0
add esp, 4
mov dword [esi], 0
jmp 0x426cd5
int3

Function at 0x426d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x426d71
call fcn.0046e500
cmp dword [esi], edi
je 0x426d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x426dd2
cmp ebx, 2
jb 0x426d93
mov dword [esi], edi
mov edi, eax
call fcn.0046e500
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jae 0x426dbb
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0046e500
push dword [edi]
call fcn.0046aff0
add esp, 4
mov dword [edi], 0
jmp 0x426daf
mov dword [ebp - 0x10], eax
call fcn.0046e500
push dword [esi]
call fcn.0046aff0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x426d83
Function at 0x427760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 8], ecx
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x58], eax
xor edi, edi
dec edi
lea ebx, [esp + 0x20]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x10]
push 0x97
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push esi
call fcn.0046e4d0
add esp, 0x10
mov ecx, ebx
push 0
push esi
mov esi, dword [ebp + 0xc]
call fcn.00472710
test esi, esi
js 0x427810
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004745e0
test al, al
jne 0x427830
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push esi
push edi
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00474680
lea ecx, [esp + 0x20]
call fcn.00472790
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004a927c
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x10]
push 0
push esi
push dword [esp + 0x10]
push str.File::WriteAtCurrentPos
call fcn.004f1b10
jmp 0x4277e3

Function at 0x427850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
dec eax
lea ebx, [esp + 0x20]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xac
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.0046e4d0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.00472710
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], esi
call fcn.004745e0
test al, al
jne 0x427910
lea ebx, [esp + 8]
xor eax, eax
dec eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00474680
lea ecx, [esp + 0x20]
call fcn.00472790
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004a927c
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.004f1b10
jmp 0x4278c2
Function at 0x427930
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x78], eax
xor eax, eax
dec eax
lea edi, [esp + 0x40]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xb9
push str....._base_files_file_win.cc
push str.SetLength
push esi
call fcn.0046e4d0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
xor edi, edi
dec edi
push ebx
push esi
call fcn.00472710
mov dword [esi + 4], edi
mov dword [esi], ebx
call fcn.004745e0
test al, al
jne 0x427a8c
lea eax, [esp + 0x28]
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x427a63
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x427a63
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x427a63
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.00474680
lea ecx, [esp + 0x40]
call fcn.00472790
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.004f1b10
jmp 0x4279a9
Function at 0x427bd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
dec eax
lea edi, [esp + 0x20]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x171
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.0046e4d0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00472710
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor edx, edx
inc edx
test bl, 2
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov esi, 2
cmove esi, edx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x427dfa
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov edx, ebx
rol edx, 0x1a
and edx, 0x80000100
or edx, ecx
bt ebx, 0x12
mov dword [esp + 0xc], eax
jb 0x427dcf
mov eax, ebx
mov ecx, ebx
shr ecx, 4
and ecx, 0x10000
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
and ebx, 0x400
mov dword [esp + 8], ebx
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov ebx, eax
shl ebx, 0xd
and ebx, 0x4000000
or ebx, edi
mov esi, eax
shl esi, 8
and esi, 0xa000000
or esi, ebx
mov eax, dword [ebp + 8]
xor edx, 3
cmp byte [eax + 0xb], 0
mov edi, eax
jns 0x427d06
mov edi, dword [eax]
xor ebx, ebx
push ebx
push esi
push dword [esp + 0x14]
push ebx
push edx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov ebx, dword [esp + 4]
cmp dword [ebx], eax
je 0x427d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jae 0x427de0
mov eax, edi
inc eax
cmp eax, 2
jb 0x427d45
mov dword [ebx], edi
call fcn.0046e500
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
inc edi
cmp edi, 2
mov ecx, dword [ebp + 0xc]
jb 0x427dae
mov eax, dword [esp + 8]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
test cl, 4
jne 0x427d9a
test cl, 0xa
je 0x427d76
mov byte [ebx + 0x18], 1
bt ecx, 0x15
jb 0x427dc2
lea ecx, [esp + 0x20]
call fcn.00472790
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004a927c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xb7
setne byte [ebx + 0x18]
jmp 0x427d76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427ab0
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x427d7c
push dword [ebp + 8]
call fcn.00428bc0
add esp, 4
jmp 0x427d7c
bt ebx, 0x15
jb 0x427e17
or edx, 0x20000000
jmp 0x427c97
call fcn.0046e500
push dword [ebx]
call fcn.0046aff0
add esp, 4
mov dword [ebx], 0
jmp 0x427d36
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 4]
mov dword [eax + 0x14], 0xffffffff
call fcn.004f1650
jmp 0x427d7c
int3
Function at 0x427f00
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.00427f10

Function at 0x428170
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.00427f10

Function at 0x428180
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x48], eax
xor eax, eax
dec eax
lea esi, [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x209
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.0046e4d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00472710
cmp byte [edi + 0xb], 0
jns 0x4281e5
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
dec ecx
cmp eax, ecx
setne bl
mov ecx, esi
call fcn.00472790
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x428210
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 0xc], edx
mov edi, ecx
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
dec eax
lea ebx, [esp + 0x20]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x10]
push 0x212
push str....._base_files_file_util_win.cc
push str.PathHasAccess
push esi
call fcn.0046e4d0
add esp, 0x10
mov ecx, ebx
push 0
push esi
call fcn.00472710
cmp byte [edi + 0xb], 0
jns 0x42827a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
xor ecx, ecx
dec ecx
cmp eax, ecx
je 0x428312
test al, 0x10
mov edx, dword [esp + 0xc]
cmove edx, dword [ebp + 8]
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
push esi
push ecx
push 3
push esi
push 7
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4282d5
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, 0xffffffff
je 0x42830e
call fcn.0046e500
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea eax, [esi + 1]
cmp eax, 2
jb 0x4282f0
call fcn.0046e500
push esi
call fcn.0046aff0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00472790
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4282ce
xor ebx, ebx
jmp 0x4282f0
Function at 0x428320
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x48], eax
xor eax, eax
dec eax
lea esi, [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x231
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.0046e4d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00472710
cmp byte [edi + 0xb], 0
jns 0x428385
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
xor eax, eax
dec eax
cmp ebx, eax
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.00472790
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4283c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004acae0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x428443
push ebx
call fcn.004c1ee1
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.0046e7f0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0042c6f0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0046e920
mov ecx, ebx
call fcn.0046e900
mov ecx, edi
call fcn.0046e900
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x428470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.004acae0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x541b20]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4284ec
cmp word [ebp - 0x214], 0
je 0x4284ec
push edi
call fcn.004c1ee1
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a927c
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.0046e6e0
push edi
call fcn.004283c0
add esp, 4
mov ecx, esi
test al, al
jne 0x428521
push 3
push 0x541b98
call fcn.0046e7f0
jmp 0x428527
push edi
call fcn.0046e7c0
lea ecx, [ebp - 0x220]
call fcn.0046e900
jmp 0x4284d6
Function at 0x428540
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x98], eax
xor edi, edi
dec edi
lea esi, [esp + 0x20]
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x60]
push 0x2b3
push str....._base_files_file_util_win.cc
push str.GetSecureSystemTemp
push ebx
call fcn.0046e4d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00472710
cmp dword [ebp + 8], 0
je 0x42876a
lea esi, [esp + 4]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
call fcn.0046e6e0
push esi
push 0x65
call fcn.00429dc0
add esp, 8
test al, al
je 0x42865b
lea esi, [esp + 4]
mov ecx, esi
push 0xa
push str.SystemTemp
push ebx
call fcn.0042c640
mov ecx, esi
push ebx
call fcn.0046e920
mov ecx, ebx
call fcn.0046e900
lea ebx, [esp + 0x60]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0x209
push str....._base_files_file_util_win.cc
push str.PathExists
push edi
call fcn.0046e4d0
add esp, 0x10
mov ecx, ebx
push 0
push edi
call fcn.00472710
cmp byte [esi + 0xb], 0
jns 0x428640
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, ebx
call fcn.00472790
xor edi, edi
dec edi
cmp esi, edi
jne 0x428715
lea ecx, [esp + 4]
call fcn.0046e900
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
lea ebx, [esp + 4]
mov ecx, ebx
call fcn.0046e6e0
push ebx
push 0x67
call fcn.00429dc0
add esp, 8
test al, al
je 0x428708
lea esi, [esp + 0x60]
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x10]
push 0x209
push str....._base_files_file_util_win.cc
push str.PathExists
push edi
call fcn.0046e4d0
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.00472710
cmp byte [esp + 0xf], 0
jns 0x4286d7
mov ebx, dword [esp + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov ecx, esi
call fcn.00472790
xor eax, eax
dec eax
cmp ebx, eax
je 0x428708
lea ecx, [esp + 4]
mov edx, 2
push 0x40000000
call fcn.00428210
add esp, 4
test al, al
jne 0x428733
lea ecx, [esp + 4]
call fcn.0046e900
xor ebx, ebx
jmp 0x428749
lea ecx, [esp + 4]
mov edx, 2
push 0x40000000
call fcn.00428210
add esp, 4
test al, al
je 0x42865b
mov ecx, dword [ebp + 8]
lea esi, [esp + 4]
push esi
call fcn.0042bea0
mov ecx, esi
call fcn.0046e900
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.00472790
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x428770
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x48], eax
xor esi, esi
dec esi
lea edi, [esp + 0x10]
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], esi
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov eax, esp
push 0x2e9
push str....._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push eax
call fcn.0046e4d0
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 4]
push eax
call fcn.00472710
cmp byte [ebx + 0xb], 0
mov edi, ebx
jns 0x4287de
mov eax, dword [ebp + 8]
mov edi, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x428811
mov bl, 1
test al, 0x10
je 0x4288d2
lea ecx, [esp + 0x10]
call fcn.00472790
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], esi
mov dword [esp + 4], esi
mov dword [esp + 8], esi
mov ecx, ebx
mov eax, esp
push eax
call fcn.0046f070
movzx eax, byte [ebx + 0xb]
test al, al
js 0x428835
and eax, 0x7f
mov ecx, ebx
jmp 0x42883a
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
test eax, eax
js 0x42894e
test ecx, ecx
jne 0x42884e
test eax, eax
jne 0x42893d
movzx edx, byte [esp + 0xb]
mov ebx, edx
and ebx, 0x7f
test dl, dl
cmovs ebx, dword [esp + 4]
mov edx, dword [esp]
mov esi, esp
cmovns edx, esi
test ebx, ebx
js 0x42894e
test edx, edx
jne 0x42887b
test ebx, ebx
jne 0x42893d
cmp ebx, eax
je 0x4288f0
push dword [ebp + 0xc]
lea eax, [esp + 4]
push eax
call fcn.00428770
add esp, 8
test al, al
je 0x428925
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x4288b2
mov ecx, esp
call fcn.0046e900
jmp 0x4287f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x42892c
push dword [ebp + 8]
call fcn.00428320
add esp, 4
test al, al
jne 0x4288a6
jmp 0x42892c
cmp dword [ebp + 0xc], 0
je 0x4288e1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4287f3
test ebx, ebx
je 0x428909
xor esi, esi
movzx ebx, word [edx + esi*2]
cmp bx, word [ecx + esi*2]
jne 0x42887f
inc esi
cmp eax, esi
jne 0x4288f6
mov eax, 0xfffffffc
mov esi, 2
cmp dword [ebp + 0xc], 0
je 0x42891e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4288a6
cmp dword [ebp + 0xc], 0
je 0x42891e
push esi
call fcn.00427ab0
add esp, 4
jmp 0x428919
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
jmp 0x42895d
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.004d6920
int3
Function at 0x428ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x258], eax
xor eax, eax
dec eax
lea esi, [esp + 0x220]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x41c
push str....._base_files_file_util_win.cc
push 0x541c03
push ebx
call fcn.0046e4d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00472710
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.004acae0
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x428b90
push ebx
call fcn.004c1ee1
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.0046e7f0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0042c6f0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0046e920
mov ecx, ebx
call fcn.0046e900
mov ecx, edi
call fcn.0046e900
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.00472790
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret