joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
call fcn.00406b49

Function at 0x4155d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x41b3c0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x415641
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00449050
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x4e70c4
call fcn.004499c0
mov esi, eax
mov edi, dword [ebp - 0x30]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x415693
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x24]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call edi
movzx eax, byte [ebp - 0x25]
test al, al
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmovs esi, edx
test esi, esi
je 0x415769
test al, al
lea esi, [ebp - 0x30]
cmovs esi, ecx
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], 0
je 0x415739
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
movzx esi, al
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x415742
lea edx, [ecx + 1]
mov edi, dword [ebp - 0x20]
mov dword [edi + 0x18], edx
mov byte [ecx], al
xor edi, edi
cmp esi, 0xffffffff
je 0x415710
mov edi, dword [ebp - 0x20]
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp - 0x24]
inc ebx
test al, al
lea esi, [ebp - 0x30]
cmovs esi, ecx
movzx edi, al
cmovs edi, edx
add edi, esi
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jne 0x4156e2
jmp 0x415769
mov dword [ebp - 0x20], 0
jmp 0x41571c
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov edi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push esi
call edi
mov esi, eax
jmp 0x415706
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x415781
push ecx
call fcn.0046acdd
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x415637
Function at 0x41d1a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [0x4e7788]
test ebx, ebx
jne 0x41d218
push 0x24
call fcn.0046acad
add esp, 4
mov esi, eax
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax], edi
push 0xc
call fcn.0046acad
add esp, 4
mov dword [esi + 8], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x10], ecx
mov dword [eax + 8], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [esi + 0xc], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], 1
mov dword [0x4e7788], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x41d222
mov edi, eax
push eax
call fcn.00483176
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.0041d230
test ebx, ebx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x420af0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x30]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x18]
push 0x4c
push str..._.._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.004568b0
add esp, 0x10
mov ecx, esi
mov esi, ebx
push 0
push edi
call fcn.004568f0
mov dword [esp + 0x14], 0xffffffff
cmp byte [ebx + 0xb], 0
jns 0x420b5d
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x420cb4
mov ebx, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
test ebx, ebx
js 0x420ce8
push ebx
call fcn.0046acad
add esp, 4
mov edi, eax
push ebx
push 0
push eax
call fcn.0046e590
add esp, 0xc
push edi
push ebx
push dword [esp + 0x1c]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x420cd0
lea eax, [esp + 0x2c]
mov dword [eax], 0
lea ecx, [esp + 0x28]
mov dword [ecx], 0xffffffff
push ecx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420cd0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
test eax, eax
je 0x420cd0
add ebx, edi
push 0x1c
call fcn.0046acad
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x4ea044]
xor edx, edx
bt ecx, eax
mov eax, dword [esp + 0xc]
movzx ecx, word [eax]
mov word [esp + 0x12], cx
movzx eax, word [eax + 2]
mov word [esp + 0xc], ax
mov dword [esi], fcn.00421070
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
jae 0x420cbf
push edi
call fcn.00450630
add esp, 4
mov dword [esi + 0x10], edi
movzx eax, word [esp + 0x12]
mov word [esi + 0x14], ax
movzx eax, word [esp + 0xc]
mov word [esi + 0x16], ax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0x4d3c4e
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420cf1
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea ecx, [esp + 0x30]
call fcn.00456950
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0046b8b5
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x420c95
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x4f2044], 1
jmp 0x420c4b
mov eax, dword [ebp + 8]
mov dword [eax], 0
test edi, edi
je 0x420c95
push edi
call fcn.0046acdd
add esp, 4
jmp 0x420c95
lea ecx, [esp + 0x18]
call fcn.00494190
int3
Function at 0x420d90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov ebx, ecx
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
mov dword [ebp - 0x230], eax
movzx edi, word [ecx + 0x16]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
mov word [ebp - 0x222], ax
movzx eax, word [ebx + 0x16]
mov dword [ebp - 0x228], eax
movzx eax, word [ebx + 0x14]
mov dword [ebp - 0x22c], eax
call esi
mov word [ebp - 0x224], ax
lea esi, [ebp - 0x218]
push 0x208
push 0xff
push esi
call fcn.0046e590
add esp, 0xc
mov eax, 0x104
push dword [ebp + 8]
push edi
push dword [ebp - 0x230]
push str.StringFileInfo_04x_04x_ls
push eax
push eax
push esi
call fcn.00421010
add esp, 0x1c
lea eax, [ebp - 0x21c]
mov dword [eax], 0
lea ecx, [ebp - 0x220]
mov dword [ecx], 0xffffffff
push ecx
push eax
mov edi, esi
push esi
mov esi, ebx
push dword [ebx + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420e7f
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x420e7f
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x420e7f
mov ecx, dword [ebp + 0xc]
dec edx
push edx
push eax
call fcn.0044f5c0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret 8
push 0x208
push 0xff
mov ebx, edi
push edi
call fcn.0046e590
add esp, 0xc
movzx eax, word [ebp - 0x222]
push dword [ebp + 8]
push dword [ebp - 0x228]
push eax
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
push edi
call fcn.00421010
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420f01
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x420f01
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x420e59
push 0x208
push 0xff
mov ebx, edi
push edi
call fcn.0046e590
add esp, 0xc
mov eax, 0x104
push dword [ebp + 8]
push 0x4e4
push dword [ebp - 0x22c]
push str.StringFileInfo_04x_04x_ls
push eax
push eax
push edi
call fcn.00421010
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420f80
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x420f80
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x420e59
push 0x208
push 0xff
push edi
call fcn.0046e590
add esp, 0xc
movzx eax, word [ebp - 0x224]
push dword [ebp + 8]
push 0x4e4
push eax
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
push edi
call fcn.00421010
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420fff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x420fff
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x420e59
xor ebx, ebx
jmp 0x420e66
Function at 0x4211c0
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
pop ebp
jmp fcn.004211d0

Function at 0x421430
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x470
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [esp + 0x468], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x420]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x218]
push 0x17c
push str..._.._base_files_file_util_win.cc
push 0x4d3cb7
push eax
call fcn.004568b0
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x218]
push 0
push esi
call fcn.004568f0
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.0046e590
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x4214c0
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.00450f00
add esp, 0xc
push esi
call fcn.00445b90
add esp, 4
lea esi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.0046e590
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4214fc
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.00450f00
add esp, 0xc
push esi
call fcn.00445b90
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x42151f
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x421529
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x4d3c60]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x42159e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042be50
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x421564
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x42156f
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x4215a0
test eax, eax
jne 0x4215a0
cmp dword [esp + 0xc], 0xfffffffc
jne 0x421594
call fcn.004b0ad0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x4215a0
mov bl, 1
lea ecx, [esp + 0x420]
call fcn.00456950
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4215d0
Capabilities:
Check if file exists
Get file attributes

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 [0x4e2024]
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 ebx, esp
push 0x1af
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.004568b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004568f0
cmp byte [edi + 0xb], 0
jns 0x421631
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.00456950
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

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

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 [0x4e2024]
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 ebx, esp
push 0x1d7
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.004568b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004568f0
cmp byte [edi + 0xb], 0
jns 0x4216c1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.00456950
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x421700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.0046e590
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x421788
push ebx
call fcn.00483176
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.0044bdb0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0041f0d0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0044be90
mov ecx, ebx
call fcn.0044be70
mov ecx, edi
call fcn.0044be70
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4217b0
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 [0x4e2024]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.0046e590
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x4d3c70]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42182c
cmp word [ebp - 0x214], 0
je 0x42182c
push edi
call fcn.00483176
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.0044bdb0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0046b8b5
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.0044bd20
push edi
call fcn.00421700
add esp, 4
mov ecx, esi
test al, al
je 0x42185b
push edi
call fcn.0044bd80
jmp 0x421867
push 3
push 0x4d3ce0
call fcn.0044bdb0
lea ecx, [ebp - 0x220]
call fcn.0044be70
jmp 0x421816
Function at 0x421b50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x60]
push 0x264
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.004568b0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004568f0
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x421bbb
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421bf5
mov bl, 1
test al, 0x10
je 0x421cfa
lea ecx, [esp + 0x20]
call fcn.00456950
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea edi, [esp + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.0044c450
movzx ecx, byte [edi + 0xb]
mov eax, ecx
test cl, cl
jns 0x421c1a
mov eax, dword [esp + 8]
mov dword [esp], eax
movzx eax, byte [esi + 0xb]
mov edx, eax
test al, al
jns 0x421c2a
mov edx, dword [esi + 4]
mov edi, dword [esp]
cmp edi, edx
je 0x421d15
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.00421b50
add esp, 8
test al, al
je 0x421d65
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x421c6a
lea ecx, [esp + 4]
call fcn.0044be70
jmp 0x421bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x421ce7
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x10]
push 0x1d7
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push eax
call fcn.004568b0
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.004568f0
cmp byte [esi + 0xb], 0
jns 0x421cc7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.00456950
cmp esi, 0xffffffff
je 0x421ce7
and esi, 0x10
jne 0x421c5c
cmp dword [ebp + 0xc], 0
je 0x421d5c
push dword [esp]
call fcn.0042be50
add esp, 4
jmp 0x421d57
test edi, edi
je 0x421d06
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x421bd4
test edi, edi
je 0x421d45
lea edi, [esp + 4]
test cl, cl
jns 0x421d25
mov edi, dword [esp + 4]
mov ecx, esi
test al, al
jns 0x421d2d
mov ecx, dword [esi]
xor edx, edx
movzx eax, word [edi + edx*2]
cmp ax, word [ecx + edx*2]
mov eax, dword [esp]
jne 0x421c35
inc edx
cmp eax, edx
jne 0x421d2f
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x421d5c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x421c5c
Function at 0x421d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x391
push str..._.._base_files_file_util_win.cc
push 0x4d3d2d
push ebx
call fcn.004568b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004568f0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.0046e590
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x421e41
push ebx
call fcn.00483176
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.0044bdb0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0041f0d0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0044be90
mov ecx, ebx
call fcn.0044be70
mov ecx, edi
call fcn.0044be70
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.00456950
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x421e70
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.0046e590
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.0042cac0
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.0042cc60
movzx eax, byte [edi + 0xb]
test al, al
jns 0x421edd
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
je 0x422009
lea ebx, [ebp - 0x4f4]
xor edi, edi
push 0x250
push 0xff
push ebx
call fcn.0046e590
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0042cbe0
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x42203e
mov ecx, ebx
call fcn.0042ca90
test al, al
jne 0x421fad
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x421f40
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x421fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.004104b0
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0042cc60
lea ecx, [ebp - 0x500]
push ebx
call fcn.0044be90
mov ecx, ebx
call fcn.0044be70
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x421f9d
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
jne 0x421eef
jmp 0x422009
xor esi, esi
jmp 0x421f61
xor esi, esi
cmp byte [ebp + 8], 0
lea ecx, [ebp - 0x500]
je 0x421f61
mov edx, dword [ebp - 0x504]
push 1
call fcn.00421e70
add esp, 4
test eax, eax
jne 0x42209a
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
js 0x422036
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x421f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x421f61
lea ecx, [ebp - 0x500]
call fcn.0044be70
lea ecx, [ebp - 0x2a4]
call fcn.0042cb70
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x500]
jmp 0x421fe2
cmp byte [ebp + 8], 0
je 0x422058
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x42207f
mov ecx, dword [ebp - 0x500]
jmp 0x422085
lea ecx, [ebp - 0x4f4]
call fcn.0042ca90
test al, al
je 0x422092
lea ecx, [ebp - 0x4f4]
call fcn.0042ca90
test al, al
je 0x421f2b
jmp 0x421fa9
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x421f1c
mov eax, dword [ebp - 0x4f4]
jmp 0x422044
mov esi, eax
jmp 0x421f61