joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f429
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x412012
call fcn.0040f8eb
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x228], esi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x22c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x413658
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f4b6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
je 0x40f510
push 0x4153d0
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call esi
mov eax, edi
jmp 0x40f59b
push ebx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
mov edi, 0x414d30
push edi
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_const__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x21d], al
mov byte [ebp - 4], 2
call esi
cmp byte [ebp - 0x21d], 0
je 0x40f565
push edi
lea ecx, [ebp - 0x21c]
call dword [0x41307c]
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call esi
mov eax, dword [ebp - 0x22c]
call fcn.0040f935
ret

Function at 0x40f867
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419168]
jne 0x40f871
repz ret
jmp fcn.0040fe9e
Function at 0x419b16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425018]
jne 0x419b20
repz ret
jmp fcn.0041a018

Function at 0x85a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x85a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85a06a
add dl, dl
jne 0x85a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85a0dc
xor eax, eax
add dl, dl
jne 0x85a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85a17d
add dl, dl
jne 0x85a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85a075
mov eax, 1
add dl, dl
jne 0x85a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85a0e1
sub eax, ebx
mov ebx, 1
jne 0x85a128
mov ecx, 1
add dl, dl
jne 0x85a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85a136
cmp eax, 0x7d00
jae 0x85a16d
cmp eax, 0x500
jb 0x85a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85a075
cmp eax, 0x7f
ja 0x85a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x85a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x86e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0086e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x86e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86e06a
add dl, dl
jne 0x86e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86e0dc
xor eax, eax
add dl, dl
jne 0x86e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86e17d
add dl, dl
jne 0x86e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x86e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x86e075
mov eax, 1
add dl, dl
jne 0x86e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x86e0e1
sub eax, ebx
mov ebx, 1
jne 0x86e128
mov ecx, 1
add dl, dl
jne 0x86e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x86e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x86e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x86e136
cmp eax, 0x7d00
jae 0x86e16d
cmp eax, 0x500
jb 0x86e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x86e075
cmp eax, 0x7f
ja 0x86e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x86e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x86e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a004]
jne 0x40100a
repz ret
jmp fcn.00401858

Function at 0x408aa5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406172
and dword [ebp - 4], 0
cmp dword [0x46011c], 0
mov ebx, eax
jne 0x408b56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c07
push eax
call fcn.00406100
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46011c], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x460120], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x460124], eax
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x46012c], eax
test eax, eax
je 0x408b56
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x460128], eax
mov eax, dword [0x460128]
cmp eax, ebx
je 0x408bae
cmp dword [0x46012c], ebx
je 0x408bae
push eax
call fcn.0040617b
push dword [0x46012c]
mov esi, eax
call fcn.0040617b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bae
test edi, edi
je 0x408bae
call esi
test eax, eax
je 0x408ba5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408ba5
test byte [ebp - 0xc], 1
jne 0x408bae
or dword [ebp + 0x10], 0x200000
jmp 0x408be7
mov eax, dword [0x460120]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408be7
mov eax, dword [0x460124]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46011c]
call fcn.0040617b
pop ecx
test eax, eax
je 0x408c07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x58], 0
mov dword [esp + 0x18], ecx
jne 0x10008521
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x58]
mov ecx, 3
cmp eax, dword [ebx + 0x5c]
jb 0x100083f4
cmp dword [ebx + 0x58], 8
jae 0x1000839f
lea eax, [ecx + 5]
jmp 0x100083b9
mov eax, dword [ebx + 0x58]
mul ecx
test edx, edx
ja 0x100084e8
jb 0x100083b7
cmp eax, 0xffffffff
ja 0x100084e8
shr eax, 1
push 0x3b
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_array.h
push 0xc
push eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x54]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 0x14
test eax, eax
je 0x100084f3
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x5c], eax
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x54]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [ebx + 0x58], eax
test ecx, ecx
je 0x100084cb
mov eax, dword [esi + 0x101a8130]
mov dword [ecx], eax
mov eax, dword [esi + 0x101a8138]
add esi, 0xc
mov dword [ecx + 8], eax
mov dword [esp + 0x14], esi
cmp esi, 0x18
jb 0x10008387
test byte [ebx + 0x60], 1
jne 0x10008521
lea esi, [ebx + 0x78]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov edx, eax
mov dword [esp + 0x14], edx
cmp edx, 0xffffffff
jne 0x10008481
mov edx, ebx
lea ecx, [esp + 0x10]
call fcn.10007960
test eax, eax
js 0x1000848a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 3
call fcn.10040a30
add esp, 4
test eax, eax
js 0x1000848a
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov ecx, edx
lock cmpxchg dword [esi], ecx
mov esi, fcn.1003ee80
test edx, edx
je 0x1000848f
mov esi, fcn.1003eeb0
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x100084a1
mov ecx, ebx
call fcn.100082b0
test eax, eax
js 0x100084cb
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x10008521
push dword [ebx + 0x44]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 8
test eax, eax
jne 0x10008521
mov edx, dword [ebx + 0x3c]
mov ecx, ebx
call fcn.100082b0
test eax, eax
jns 0x10008521
mov ecx, dword [esp + 0x18]
xor al, al
mov dword [ecx], str..git
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1002b1b0
mov dword [eax], str.Out_of_memory
mov eax, dword [ebx + 0x54]
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
mov dword [ebx + 0x5c], 0
add esp, 4
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
jmp 0x100084cb
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x54]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x58]
pop ebx
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10031200
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2028
call fcn.101309d0
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x2024], eax
push esi
mov edx, ecx
mov dword [esp + 0x10], 0
push edi
lea ecx, [esp + 0x18]
xor esi, esi
call fcn.10053090
test eax, eax
js 0x100313c6
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
push 5
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, 2
je 0x10031399
cmp eax, 3
je 0x10031399
test eax, eax
je 0x10031280
push str.failed_to_get_security_information
push 2
call fcn.10028290
add esp, 8
or edi, 0xffffffff
jmp 0x1003139e
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x100312a5
push str.programdata_configuration_file_owner_is_unknown
push 3
call fcn.10028290
add esp, 8
or edi, 0xffffffff
jmp 0x1003139e
push 0x1a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031395
push 0x16
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031395
lea eax, [esp + 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10031359
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10031359
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
mov ecx, esi
push 0x726
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_fs_path.c
push dword [esp + 0x14]
call dword [0x1015f3cc]
call esi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100313c6
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10031381
push esi
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
add esp, 4
xor esi, esi
push str.programdata_configuration_file_owner_is_not_valid
push 3
call fcn.10028290
add esp, 8
or edi, 0xffffffff
push esi
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
add esp, 4
jmp 0x1003139e
push dword [esi]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10031359
xor edi, edi
jmp 0x1003136b
xor edi, edi
jmp 0x1003139e
mov edi, 0xfffffffd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100313ad
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x2024]
xor ecx, esp
call fcn.1012fb43
add esp, 0x2028
ret
mov ecx, dword [esp + 0x202c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.1012fb43
add esp, 0x2028
ret
Function at 0x1003a740
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x2018
call fcn.101309d0
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x2014], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov edx, esi
call fcn.10053090
test eax, eax
js 0x1003a7a8
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003a7a8
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x1003a7c1
push ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003a7c1
push esi
push 0x1018a35c
push str.failed_to__s_hidden_bit_for__s
push 2
call fcn.10028290
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.1012fb43
add esp, 0x2018
ret
mov ecx, dword [esp + 0x2018]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1012fb43
add esp, 0x2018
ret
Function at 0x1003f270
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push ebp
xor ebp, ebp
mov dword [esp + 8], 0
push esi
mov ecx, dword [ebx]
mov dword [esp + 0x10], 0xffffffff
mov dword [ebx + 8], ebp
push edi
test ecx, ecx
jne 0x1003f2a6
mov dword [ebx], 0x101b01ed
mov ecx, 0x101b01ed
mov dword [ebx + 4], ebp
cmp dword [ebx + 4], ebp
jbe 0x1003f2ae
mov byte [ecx], 0
lea ecx, [esp + 0x10]
call fcn.1008bcf0
test eax, eax
js 0x1003f38d
mov esi, dword [esp + 0x10]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x1003f325
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
lea eax, [edi + edi]
push 0x2ee
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcutil.c
push eax
mov ecx, esi
call dword [0x1015f3cc]
call esi
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1003f38d
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x1003f325
push edi
mov edx, ebp
mov ecx, ebx
call fcn.1008baf0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1003f359
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003f351
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1003f351
push dword [esp + 0x18]
push str.could_not_read_environment_variable__s
push 2
call fcn.10028290
add esp, 0xc
jmp 0x1003f359
mov dword [esp + 0x14], 0xfffffffd
push esi
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push ebp
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret

Function at 0x1003f5e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003f60d
test al, 1
jne 0x1003f5f7
xor eax, eax
pop esi
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1003f60d
mov eax, 0xffffffe0
pop esi
ret
call fcn.1003f3c0
or eax, 0xffffffff
pop esi
ret

Function at 0x1003f620
Capabilities:
Create directory

Disassembly:
mov eax, 0x2010
call fcn.101309d0
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x200c], eax
mov edx, ecx
lea ecx, [esp]
call fcn.10053090
test eax, eax
jns 0x1003f65e
or eax, 0xffffffff
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.1012fb43
add esp, 0x2010
ret
lea eax, [esp]
push eax
call fcn.1014142e
mov ecx, dword [esp + 0x2010]
add esp, 4
xor ecx, esp
call fcn.1012fb43
add esp, 0x2010
ret
Function at 0x1003f680
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x28
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1003f721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x1003f6db
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003f6db
mov eax, dword [esp + 8]
and eax, 0x410
cmp eax, 0x410
jne 0x1003f6db
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1003f721
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1003f70b
cmp eax, 5
je 0x1003f70b
call fcn.1003f3c0
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret
pop edi
mov eax, 0xffffffe0
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret

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

Disassembly:
sub esp, 0x28
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
push 0
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003f87d
test esi, esi
jne 0x1003f85d
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret
push edi
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1003a7e0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1003f895
call fcn.1013bc89
mov dword [eax], 2
jmp 0x1003f8a0
call fcn.1013bc89
mov dword [eax], 0xd
call fcn.1013bc89
cmp dword [eax], 2
jne 0x1003f918
cmp byte [esp + 0x34], 0
je 0x1003f918
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003f8b6
sub esi, ecx
sar esi, 1
sub esi, 1
je 0x1003f918
nop word [eax + eax]
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x1003f8f7
cmp eax, 0x5c
je 0x1003f8f7
sub esi, 1
jne 0x1003f8d0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret
xor eax, eax
push edi
mov word [edi + esi*2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003f8c5
test al, 0x10
jne 0x1003f918
call fcn.1013bc89
mov dword [eax], 0x14
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.1012fb43
add esp, 0x28
ret
Function at 0x1003fa60
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x2028
call fcn.101309d0
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov esi, 0x101b01ed
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov bl, 1
mov al, byte [edi]
cmp al, 0x41
jl 0x1003faa2
cmp al, 0x5a
jle 0x1003faaa
cmp al, 0x61
jl 0x1003fad8
cmp al, 0x7a
jg 0x1003fad8
cmp byte [edi + 1], 0x3a
jne 0x1003fad8
mov al, byte [edi + 2]
cmp al, 0x5c
je 0x1003fabb
cmp al, 0x2f
jne 0x1003fad8
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.10053090
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x1003fb2e
lea ecx, [esp + 0x10]
call fcn.1002f770
test eax, eax
js 0x1003fb2a
push edi
push dword [esp + 0x14]
mov dl, 0x2f
lea ecx, [esp + 0x18]
call fcn.1002a4a0
add esp, 8
test eax, eax
jne 0x1003fb05
lea ecx, [esp + 0x10]
call fcn.10030320
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.10053090
test eax, eax
js 0x1003fb2e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x1003fb2e
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jbe 0x1003fb55
test esi, esi
je 0x1003fb55
cmp esi, 0x101b01ec
je 0x1003fb55
push esi
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
add esp, 4
mov ecx, dword [esp + 0x2030]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012fb43
add esp, 0x2028
ret