joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d300
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x530f98]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea ebx, [ebp - 0x20]
push 3
push ecx
push eax
push ebx
call fcn.00438960
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42d4fb
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x42d37a
push 0x4e8ac2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42d389
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x42d385
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
jmp 0x42d38b
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test eax, eax
je 0x42d491
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
cmp eax, 0x15555556
jae 0x42d51b
shl eax, 2
mov dword [ebp - 0x30], eax
lea esi, [eax + eax*2]
push esi
call fcn.004af396
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
add eax, esi
mov dword [ebp - 0x18], eax
xor eax, eax
mov esi, dword [ebp - 0x24]
jmp 0x42d425
mov byte [edi + 0xb], bl
mov eax, edi
test ebx, ebx
je 0x42d411
mov ecx, ebx
add ecx, ebx
push ecx
push dword [ebp - 0x34]
push eax
mov esi, eax
call fcn.004b80c0
mov eax, esi
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov word [eax + ebx*2], 0
add edi, 0xc
mov eax, dword [ebp - 0x38]
add eax, 4
cmp dword [ebp - 0x30], eax
je 0x42d488
mov dword [ebp - 0x38], eax
mov eax, dword [esi + eax]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x34], eax
push eax
call fcn.004d03ae
add esp, 4
cmp eax, 0x7ffffff0
jae 0x42d50f
mov ebx, eax
cmp eax, 5
jb 0x42d3f0
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x42d516
lea eax, [esi + esi]
push eax
call fcn.004af396
add esp, 4
mov dword [edi], eax
or esi, 0x80000000
mov dword [edi + 8], esi
mov dword [edi + 4], ebx
jmp 0x42d3f9
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.0042cf70
mov dword [edi], 0
mov dword [edi + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42d4bb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x42d4fb
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x42d4d6
mov eax, esi
jmp 0x42d4ef
mov eax, edi
cmp esi, edi
je 0x42d4ec
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
jns 0x42d4d0
push dword [eax - 0xc]
call fcn.004af3c6
add esp, 4
jmp 0x42d4d0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
call fcn.004af3c6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, edi
call fcn.00428aec
call fcn.004c9a66
lea ecx, [ebp - 0x20]
call fcn.0042ab0c
int3
Function at 0x42e870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x1c], edx
movzx ecx, byte [0x532d94]
xor ecx, 3
xor eax, eax
mov dword [esp + 0x10], ecx
mov ebx, dword [eax*8 + 0x4e8a50]
mov dword [esp + 0x14], eax
mov eax, dword [eax*8 + 0x4e8a4c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2b], bl
lea ecx, [ebx + ebx]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b80c0
add esp, 0xc
mov word [esp + ebx*2 + 0x20], 0
movzx eax, byte [esp + 0x2b]
test al, al
mov ecx, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0xc], ecx
cmovs edx, ecx
cmp edx, dword [esp + 8]
jbe 0x42e910
test al, al
js 0x42e950
mov ecx, dword [esp + 0x10]
jmp 0x42e966
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
test edx, edx
je 0x42e97a
test al, al
lea esi, [esp + 0x20]
cmovs esi, dword [esp + 4]
xor ebx, ebx
nop dword [eax]
movzx ecx, word [edi + ebx*2]
cmp cx, word [esi + ebx*2]
jne 0x42e906
add ebx, 1
cmp edx, ebx
jne 0x42e930
jmp 0x42e97a
push dword [esp + 0x20]
call fcn.004af3c6
add esp, 4
movzx ecx, byte [0x532d94]
xor ecx, 3
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, ecx
jb 0x42e8a1
jmp 0x42ea06
test al, al
js 0x42e988
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x42e99e
push dword [esp + 4]
call fcn.004af3c6
add esp, 4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
xor ebx, ebx
test ecx, ecx
je 0x42ea0c
cmp ecx, dword [esp + 8]
je 0x42ea0c
lea eax, [esp + 0x18]
push 0
push 0x4e8b04
push eax
mov ebx, ecx
call fcn.00436f50
mov edx, ebx
add esp, 0xc
sub eax, ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
cmovb edx, ecx
sub ecx, edx
cmp ecx, eax
cmovae ecx, eax
cmp ecx, esi
jne 0x42ea06
test esi, esi
je 0x42ea0a
add edx, edx
add edx, dword [esp + 0x18]
xor eax, eax
nop word cs:[eax + eax]
nop
movzx ecx, word [edx + eax*2]
cmp cx, word [edi + eax*2]
sete bl
jne 0x42ea0c
add eax, 1
cmp esi, eax
jne 0x42e9f0
jmp 0x42ea0c
xor ebx, ebx
jmp 0x42ea0c
mov bl, 1
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0042d530
mov ecx, eax
push str.enable_logging
call fcn.0042d9e0
test al, al
je 0x432497
mov bl, 1
cmp dword [0x532db0], 0
jne 0x432499
mov esi, dword [0x532da0]
test esi, esi
jne 0x43238a
push 0xc
call fcn.004af396
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
push edi
call fcn.004d03ae
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4324b0
cmp eax, 5
jae 0x4322f4
mov byte [esi + 0xb], al
mov ecx, esi
test eax, eax
jne 0x432328
jmp 0x43234b
lea edi, [eax + 8]
and edi, 0xfffffff8
mov dword [ebp - 0x21c], eax
js 0x4324b7
lea eax, [edi + edi]
push eax
call fcn.004af396
add esp, 4
mov ecx, eax
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
mov eax, dword [ebp - 0x21c]
mov dword [esi + 4], eax
mov dword [ebp - 0x21c], ecx
mov edi, eax
add eax, eax
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.004b80c0
mov ecx, dword [ebp - 0x21c]
mov eax, edi
add esp, 0xc
mov word [ecx + eax*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x43235c
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0042a5bc
cmp eax, 0xffffffff
je 0x432378
add eax, 1
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.0042a19a
mov ecx, esi
push 0x4e8c6c
call fcn.00429ed8
mov dword [0x532da0], esi
test byte [0x530140], 1
je 0x432499
cmp byte [esi + 0xb], 0
jns 0x43239f
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4e8be0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x532db0], eax
add eax, 1
cmp eax, 1
ja 0x432499
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x432497
cmp eax, 0x104
ja 0x432497
mov ecx, dword [0x532da0]
push esi
call fcn.0042a05c
mov ecx, dword [0x532da0]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x432424
mov edx, ecx
jmp 0x432429
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x432441
push 0x4e3ea4
call fcn.00429ed8
mov ecx, dword [0x532da0]
push 0x4e8c6c
call fcn.00429ed8
mov eax, dword [0x532da0]
cmp byte [eax + 0xb], 0
jns 0x432458
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x4e8be0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x532db0], eax
add eax, 1
cmp eax, 1
ja 0x432499
mov dword [0x532db0], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00428aec
call fcn.004c9a66
int3
Function at 0x43e250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x58], eax
lea edi, [esp + 8]
push 0x69
push str..._.._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.0043ac40
cmp byte [ebx + 0xb], 0
jns 0x43e297
mov ebx, dword [ebx]
mov edi, dword [ebp + 8]
lea eax, [esp + 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x43e3c8
mov esi, eax
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
test eax, eax
js 0x43e3ec
push esi
call fcn.004af396
add esp, 4
mov ebx, eax
mov dword [esp + 8], eax
mov edi, esi
add edi, eax
mov dword [esp + 0x10], edi
push esi
push 0
push eax
call fcn.004b8bc0
add esp, 0xc
mov dword [esp + 0xc], edi
push ebx
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
xor edi, edi
test eax, eax
je 0x43e3aa
mov eax, dword [esp + 8]
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x50]
lea ebx, [esp + 0x54]
push ecx
push ebx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e3aa
mov esi, dword [esp + 0x54]
test esi, esi
je 0x43e3aa
push 0x1c
call fcn.004af396
add esp, 4
mov edi, eax
mov eax, dword [esi]
mov dword [edi], 0x4e9100
mov ecx, dword [esp + 8]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0xc]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov dword [esp + 0x54], 0
lea eax, [esp + 0x50]
push eax
push ebx
push 0x4e92f6
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e3f5
mov eax, dword [esp + 0x54]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x43e3ce
mov dword [esp + 0xc], eax
push eax
call fcn.004af3c6
add esp, 4
jmp 0x43e3ce
mov dword [edi], 0
lea ecx, [esp + 0x18]
call fcn.0043ad60
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004af401
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.0042ab0c
int3
Function at 0x43e5e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov esi, ecx
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
mov dword [ebp - 0x230], eax
movzx ebx, word [ecx + 0x16]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
mov word [ebp - 0x224], ax
movzx eax, word [esi + 0x16]
mov dword [ebp - 0x22c], eax
movzx eax, word [esi + 0x14]
mov dword [ebp - 0x228], eax
call edi
mov word [ebp - 0x222], ax
lea edi, [ebp - 0x218]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x230]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0041002a
add esp, 0x1c
mov dword [ebp - 0x21c], 0
lea ebx, [ebp - 0x220]
lea eax, [ebp - 0x21c]
push ebx
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e697
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e697
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43e7ab
movzx eax, word [ebp - 0x224]
push dword [ebp + 8]
push dword [ebp - 0x22c]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0041002a
add esp, 0x1c
mov dword [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e6f7
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e6f7
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43e7ab
push dword [ebp + 8]
push 0x4e4
push dword [ebp - 0x228]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0041002a
add esp, 0x1c
mov dword [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e750
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e750
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43e7ab
movzx eax, word [ebp - 0x222]
push dword [ebp + 8]
push 0x4e4
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0041002a
add esp, 0x1c
mov dword [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e7d3
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e7d3
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x43e7d3
mov ecx, dword [ebp + 0xc]
add edx, 0xffffffff
push edx
push eax
call fcn.004299d0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
jmp 0x43e7ba
Function at 0x43ecc0
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]
mov edx, 1
pop ebp
jmp fcn.0043e960

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x1c9
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.00432210
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0043ac40
cmp byte [edi + 0xb], 0
jns 0x43ed2a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.0043ad60
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x1db
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.00432210
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0043ac40
cmp byte [edi + 0xb], 0
jns 0x43edaa
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.0043ad60
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43ede0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x43ee78
cmp word [ebp - 0x21a], 0
je 0x43ee42
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
lea eax, [ecx + 1]
cmp word [ebp + ecx*2 - 0x218], 0
mov ecx, eax
jne 0x43ee30
jmp 0x43ee44
xor eax, eax
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.00430400
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.004313b0
mov ecx, dword [ebp + 8]
push edi
call fcn.00430500
mov ecx, edi
call fcn.004304c0
mov ecx, ebx
call fcn.004304c0
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43eea0
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 [0x530f98]
xor eax, ebp
mov dword [ebp - 0xc], eax
sub esp, 0x14
lea edi, [ebp - 0x214]
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x4e9300]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43ef09
cmp word [ebp - 0x214], 0
je 0x43ef09
xor eax, eax
nop
cmp word [ebp + eax*2 - 0x212], 0
lea eax, [eax + 1]
jne 0x43eef0
mov ecx, esi
push eax
push edi
call fcn.00430400
jmp 0x43ef44
lea edi, [ebp - 0x220]
mov ecx, edi
call fcn.004303a0
push edi
call fcn.0043ede0
add esp, 4
mov ecx, esi
test al, al
je 0x43ef2d
push edi
call fcn.004303d0
jmp 0x43ef39
push 3
push 0x4e9362
call fcn.00430400
lea ecx, [ebp - 0x220]
call fcn.004304c0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004af401
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
Function at 0x43ef60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x98], eax
lea edi, [esp + 0x60]
push 0x265
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push edi
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.0043ac40
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x43efb2
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43efe4
mov bl, 1
test al, 0x10
jne 0x43f115
test edi, edi
je 0x43efd5
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x43f115
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00430cf0
movzx edx, byte [esp + 0x17]
mov eax, edx
test dl, dl
jns 0x43efff
mov eax, dword [esp + 0x10]
movzx ecx, byte [esi + 0xb]
test cl, cl
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
js 0x43f01b
mov edx, esi
cmp eax, ecx
jne 0x43f065
test eax, eax
jne 0x43f026
jmp 0x43f051
cmp eax, dword [esi + 4]
jne 0x43f065
mov edx, dword [esi]
test eax, eax
je 0x43f051
lea edi, [esp + 0xc]
cmp byte [esp + 8], 0
jns 0x43f035
mov edi, dword [esp + 0xc]
xor ecx, ecx
nop word [eax + eax]
movzx ebx, word [edi + ecx*2]
cmp bx, word [edx + ecx*2]
jne 0x43f065
add ecx, 1
cmp eax, ecx
jne 0x43f040
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43f05e
mov dword [eax], 0xfffffffc
push 2
jmp 0x43f104
mov edi, dword [ebp + 0xc]
push edi
lea eax, [esp + 0x10]
push eax
call fcn.0043ef60
add esp, 8
test al, al
je 0x43f10a
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x43f10c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
cmp eax, 0xb7
jne 0x43f0f0
lea edi, [esp + 0x50]
push 0x1db
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push edi
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push edi
call fcn.0043ac40
cmp byte [esi + 0xb], 0
jns 0x43f0d1
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.0043ad60
cmp esi, 0xffffffff
mov edi, dword [ebp + 0xc]
je 0x43f0f0
and esi, 0x10
jne 0x43f10c
test edi, edi
mov esi, dword [esp + 4]
je 0x43f103
push esi
call fcn.0044dca0
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [esp + 0xc]
call fcn.004304c0
lea ecx, [esp + 0x18]
call fcn.0043ad60
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x258], eax
lea edi, [esp + 0x50]
push 0x3e5
push str..._.._base_files_file_util_win.cc
push 0x4e93a0
push edi
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.0043ac40
mov word [esp + 0x50], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x103
ja 0x43f1ef
cmp word [esp + 0x50], 0
je 0x43f1bf
xor ecx, ecx
nop
lea eax, [ecx + 1]
cmp word [esp + ecx*2 + 0x52], 0
mov ecx, eax
jne 0x43f1b0
jmp 0x43f1c1
xor eax, eax
mov ebx, esp
mov ecx, ebx
push eax
push edi
call fcn.00430400
lea edi, [esp + 0xc]
mov ecx, ebx
push edi
call fcn.004313b0
mov ecx, dword [ebp + 8]
push edi
call fcn.00430500
mov ecx, edi
call fcn.004304c0
mov ecx, ebx
call fcn.004304c0
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x18]
call fcn.0043ad60
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43f220
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x3f5
push str..._.._base_files_file_util_win.cc
push 0x4e93b5
push ebx
call fcn.00432210
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0043ac40
cmp byte [edi + 0xb], 0
jns 0x43f26a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.0043ad60
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f2c0
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, 0xfffffff8
sub esp, 0x58
mov esi, edx
mov edi, ecx
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x50], eax
lea ebx, [esp + 8]
push 0xb2
push str..._.._base_files_file_util_win.cc
push str.DoCopyFile
push ebx
call fcn.00432210
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.0043ac40
mov ecx, edi
call fcn.004313e0
test al, al
jne 0x43f319
mov ecx, esi
call fcn.004313e0
test al, al
je 0x43f339
xor ebx, ebx
lea ecx, [esp + 0x18]
call fcn.0043ad60
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [edi + 0xb], 0
jns 0x43f348
cmp dword [edi + 4], 0x103
ja 0x43f319
cmp byte [esi + 0xb], 0
jns 0x43f357
cmp dword [esi + 4], 0x103
ja 0x43f319
push 0xbf
push str..._.._base_files_file_util_win.cc
push str.DoCopyFile
push ebx
call fcn.00432210
add esp, 0x10
mov ecx, esp
push ebx
call fcn.00457b40
mov eax, dword [0x532e64]
test al, 1
je 0x43f3db
mov al, byte [ebp + 8]
cmp byte [esi + 0xb], 0
jns 0x43f38b
mov esi, dword [esi]
movzx eax, al
cmp byte [edi + 0xb], 0
jns 0x43f396
mov edi, dword [edi]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43f3cd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x43f3c5
mov eax, edi
and eax, 1
je 0x43f3c5
mov eax, edi
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bl
jmp 0x43f3cf
xor ebx, ebx
mov ecx, esp
call fcn.00457d10
jmp 0x43f31b
or eax, 1
mov dword [0x532e64], eax
mov ecx, esp
call fcn.00457c50
jmp 0x43f380