joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489290
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.00494000
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.0049529f
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48943d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x48943d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.00489450
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00489450
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.00489450
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.00489450
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x48943d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x4a5429
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004af8a6
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a545a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004a546d
pop edi
pop esi
pop ebx
ret 8
Function at 0x4a6a41
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a6a79
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a4a8a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a4a62
jmp 0x4a6a85
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a8331
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a8373
call fcn.004af8a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a8373
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a836a
xor eax, eax
jmp 0x4a837b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a8381
pop edi
pop esi
pop ebx
ret 4

Function at 0x4afdd6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4afe04
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4afe22
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004afd3c
jmp 0x4afe22
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4afe22
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004afd3c
test edi, edi
mov eax, edi
jne 0x4afe0c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x405301
pop dword [ebp - 0x38]
mov eax, 0x45ded1cf
sub eax, 0x459e7ece
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x34ffd5d3
add dword [ebp - 0x48], 0x19526f78
mov dword [ebp - 0x44], 0xb5021451
sub dword [ebp - 0x44], 0x82cec80c
mov dword [ebp - 0x40], 0x41791a91
add dword [ebp - 0x40], 0xad3299d
mov dword [ebp - 0x3c], 0x43788671
add dword [ebp - 0x3c], 0xbc87798f
lea eax, [ebp - 0x48]
push eax
mov eax, 0x3f25bd27
sub eax, 0x3ee4ecd3
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf0f4d00c
sub dword [ebp - 0x48], 0x7c8266b6
mov dword [ebp - 0x44], 0x46a1c778
sub dword [ebp - 0x44], 0x5356603
mov dword [ebp - 0x40], 0xb9b828a1
sub dword [ebp - 0x40], 0x5648bc35
mov dword [ebp - 0x3c], 0x979c545c
sub dword [ebp - 0x3c], 0x979c545c
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3d9f6
push 0
call eax
mov ecx, 0x17d3e824
add ecx, 0xe82c7032
mov ebx, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x38]
mov edi, 0xb6b0bf3f
xor dword [ebp - 0x10], ecx
mov esi, dword [edx]
xor dword [ebp - 0x20], edi
add esi, edi
sub dword [ebp - 8], 0x5cf0422d
mov dword [ebx], esi
xor dword [ebp - 0x20], edi
add ebx, 0xbfe62b2f
add ebx, 0x4019d4d5
add edx, 4
loop 0x405412
add eax, 0xae20c8cf
sub eax, 0xae1f74a4
xor ebx, ebx
add ebx, eax
add eax, 0xe32f0652
sub eax, 0xe32f064d
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0xa24058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa241a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa2407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2406a
add dl, dl
jne 0xa24089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa240dc
xor eax, eax
add dl, dl
jne 0xa24096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2417d
add dl, dl
jne 0xa240a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa240b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa240bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa240c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa240d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa24075
mov eax, 1
add dl, dl
jne 0xa240ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa240f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa240e1
sub eax, ebx
mov ebx, 1
jne 0xa24128
mov ecx, 1
add dl, dl
jne 0xa2410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa24119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa24105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa24075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa2413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa24136
cmp eax, 0x7d00
jae 0xa2416d
cmp eax, 0x500
jb 0xa24168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa24075
cmp eax, 0x7f
ja 0xa24170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa24075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa2419e
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 0xa24075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100082c0
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 0x10008481
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x58]
mov ecx, 3
cmp eax, dword [ebx + 0x5c]
jb 0x10008354
cmp dword [ebx + 0x58], 8
jae 0x100082ff
lea eax, [ecx + 5]
jmp 0x10008319
mov eax, dword [ebx + 0x58]
mul ecx
test edx, edx
ja 0x10008448
jb 0x10008317
cmp eax, 0xffffffff
ja 0x10008448
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 [0x101182fc]
call esi
add esp, 0x14
test eax, eax
je 0x10008453
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 0x1000842b
mov eax, dword [esi + 0x10156ef0]
mov dword [ecx], eax
mov eax, dword [esi + 0x10156ef8]
add esi, 0xc
mov dword [ecx + 8], eax
mov dword [esp + 0x14], esi
cmp esi, 0x18
jb 0x100082e7
test byte [ebx + 0x60], 1
jne 0x10008481
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 0x100083e1
mov edx, ebx
lea ecx, [esp + 0x10]
call fcn.100078b0
test eax, eax
js 0x100083ea
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 3
call fcn.100409e0
add esp, 4
test eax, eax
js 0x100083ea
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov ecx, edx
lock cmpxchg dword [esi], ecx
mov esi, fcn.1003ee30
test edx, edx
je 0x100083ef
mov esi, fcn.1003ee60
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x10008401
mov ecx, ebx
call fcn.10008210
test eax, eax
js 0x1000842b
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x10008481
push dword [ebx + 0x44]
mov ecx, esi
push eax
call dword [0x101182fc]
call esi
add esp, 8
test eax, eax
jne 0x10008481
mov edx, dword [ebx + 0x3c]
mov ecx, ebx
call fcn.10008210
test eax, eax
jns 0x10008481
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.1002b150
mov dword [eax], str.Out_of_memory
mov eax, dword [ebx + 0x54]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182fc]
call esi
mov dword [ebx + 0x5c], 0
add esp, 4
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
jmp 0x1000842b
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 0x100311a0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2028
call fcn.100f5450
mov eax, dword [0x10156440]
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.10053030
test eax, eax
js 0x10031366
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 0x10031339
cmp eax, 3
je 0x10031339
test eax, eax
je 0x10031220
push str.failed_to_get_security_information
push 2
call fcn.10028220
add esp, 8
or edi, 0xffffffff
jmp 0x1003133e
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10031245
push str.programdata_configuration_file_owner_is_unknown
push 3
call fcn.10028220
add esp, 8
or edi, 0xffffffff
jmp 0x1003133e
push 0x1a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031335
push 0x16
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031335
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 0x100312f9
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 0x100312f9
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 [0x101182fc]
call esi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10031366
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 0x10031321
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182fc]
call esi
add esp, 4
xor esi, esi
push str.programdata_configuration_file_owner_is_not_valid
push 3
call fcn.10028220
add esp, 8
or edi, 0xffffffff
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182fc]
call esi
add esp, 4
jmp 0x1003133e
push dword [esi]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100312f9
xor edi, edi
jmp 0x1003130b
xor edi, edi
jmp 0x1003133e
mov edi, 0xfffffffd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003134d
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.100f46b4
add esp, 0x2028
ret
mov ecx, dword [esp + 0x202c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100f46b4
add esp, 0x2028
ret
Function at 0x1003a700
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x2018
call fcn.100f5450
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x2014], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov edx, esi
call fcn.10053030
test eax, eax
js 0x1003a768
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003a768
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x1003a781
push ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003a781
push esi
push 0x1013eddc
push str.failed_to__s_hidden_bit_for__s
push 2
call fcn.10028220
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.100f46b4
add esp, 0x2018
ret
mov ecx, dword [esp + 0x2018]
xor eax, eax
pop esi
xor ecx, esp
call fcn.100f46b4
add esp, 0x2018
ret
Function at 0x1003f220
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 0x1003f256
mov dword [ebx], 0x1015de6d
mov ecx, 0x1015de6d
mov dword [ebx + 4], ebp
cmp dword [ebx + 4], ebp
jbe 0x1003f25e
mov byte [ecx], 0
lea ecx, [esp + 0x10]
call fcn.1008bc40
test eax, eax
js 0x1003f33d
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 0x1003f2d5
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 [0x101182fc]
call esi
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1003f33d
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 0x1003f2d5
push edi
mov edx, ebp
mov ecx, ebx
call fcn.1008ba40
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1003f309
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003f301
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1003f301
push dword [esp + 0x18]
push str.could_not_read_environment_variable__s
push 2
call fcn.10028220
add esp, 0xc
jmp 0x1003f309
mov dword [esp + 0x14], 0xfffffffd
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182fc]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push ebp
call dword [0x101182fc]
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 0x1003f590
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 0x1003f5bd
test al, 1
jne 0x1003f5a7
xor eax, eax
pop esi
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1003f5bd
mov eax, 0xffffffe0
pop esi
ret
call fcn.1003f370
or eax, 0xffffffff
pop esi
ret

Function at 0x1003f5d0
Capabilities:
Create directory

Disassembly:
mov eax, 0x2010
call fcn.100f5450
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x200c], eax
mov edx, ecx
lea ecx, [esp]
call fcn.10053030
test eax, eax
jns 0x1003f60e
or eax, 0xffffffff
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.100f46b4
add esp, 0x2010
ret
lea eax, [esp]
push eax
call fcn.10102797
mov ecx, dword [esp + 0x2010]
add esp, 4
xor ecx, esp
call fcn.100f46b4
add esp, 0x2010
ret
Function at 0x1003f630
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x28
mov eax, dword [0x10156440]
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 0x1003f6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x1003f68b
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003f68b
mov eax, dword [esp + 8]
and eax, 0x410
cmp eax, 0x410
jne 0x1003f68b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1003f6d1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1003f6bb
cmp eax, 5
je 0x1003f6bb
call fcn.1003f370
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f46b4
add esp, 0x28
ret
pop edi
mov eax, 0xffffffe0
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f46b4
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100f46b4
add esp, 0x28
ret

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

Disassembly:
sub esp, 0x28
mov eax, dword [0x10156440]
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 0x1003f82d
test esi, esi
jne 0x1003f80d
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f46b4
add esp, 0x28
ret
push edi
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1003a7a0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f46b4
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1003f845
call fcn.1010029f
mov dword [eax], 2
jmp 0x1003f850
call fcn.1010029f
mov dword [eax], 0xd
call fcn.1010029f
cmp dword [eax], 2
jne 0x1003f8c8
cmp byte [esp + 0x34], 0
je 0x1003f8c8
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003f866
sub esi, ecx
sar esi, 1
sub esi, 1
je 0x1003f8c8
nop word [eax + eax]
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x1003f8a7
cmp eax, 0x5c
je 0x1003f8a7
sub esi, 1
jne 0x1003f880
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f46b4
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 0x1003f875
test al, 0x10
jne 0x1003f8c8
call fcn.1010029f
mov dword [eax], 0x14
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100f46b4
add esp, 0x28
ret
Function at 0x1003fa10
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x2028
call fcn.100f5450
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov esi, 0x1015de6d
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov bl, 1
mov al, byte [edi]
cmp al, 0x41
jl 0x1003fa52
cmp al, 0x5a
jle 0x1003fa5a
cmp al, 0x61
jl 0x1003fa88
cmp al, 0x7a
jg 0x1003fa88
cmp byte [edi + 1], 0x3a
jne 0x1003fa88
mov al, byte [edi + 2]
cmp al, 0x5c
je 0x1003fa6b
cmp al, 0x2f
jne 0x1003fa88
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.10053030
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x1003fade
lea ecx, [esp + 0x10]
call fcn.1002f710
test eax, eax
js 0x1003fada
push edi
push dword [esp + 0x14]
mov dl, 0x2f
lea ecx, [esp + 0x18]
call fcn.1002a440
add esp, 8
test eax, eax
jne 0x1003fab5
lea ecx, [esp + 0x10]
call fcn.100302c0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.10053030
test eax, eax
js 0x1003fade
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x1003fade
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jbe 0x1003fb05
test esi, esi
je 0x1003fb05
cmp esi, 0x1015de6c
je 0x1003fb05
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182fc]
call esi
add esp, 4
mov ecx, dword [esp + 0x2030]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100f46b4
add esp, 0x2028
ret