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

Disassembly:
pushal
call 0x93025e
pop ebp
sub ebp, 6
sub ebp, 0x530258
jmp 0x9302bc
jmp 0x9302c5
mov eax, 0x530258
add eax, ebp
add eax, 0x93
mov ecx, 0x637
mov edx, 0x297f1557
xor byte [eax], dl
inc eax
dec ecx
jne 0x9302dc
jmp 0x9302ef
cmp eax, 0x47573f17
push edi
push edi
aas
push edi
wait
jnp 0x930352
xchg edi, eax
pop es
test al, 0xc2
das
push ss
push ds
push edi
pop es
fcomp qword [edx + 0x576bdedc]
push edi
push edi
salc
xchg esi, eax
scasd eax, dword es:[edi]
push edi
push edi
push edi
push esp
lcall 0xed57, 0x575751ef
jg 0x930374
push edi
push edi
mov al, byte [0xdc9f54b5]
salc
pop ebx
push edi
push edi
push edi
push esp
xchg edx, eax
pop es
aas
fsub qword [eax + 0x5e]
push edi
aas
wait
popfd
push ds
push edi
push esi
jnp 0x9303ac
aas
push edi
push edi
push edi
push edi
mov edi, 0x57575752
mov esi, 0x5757577d
add bl, dl
cmp esi, dword [ebx + 0x57]
invalid
push edi
fadd st(2), st(0)
pop ebx
push edi
push edi
push edi
invalid
jae 0x9303c9
push edi
push edi
push edi
aas
fsub qword [eax + 0x5e]
push edi
aas
wait
popfd
push ds
push edi
push esi
jnp 0x9303f9
push es
mov edi, 0x57575752
mov esi, 0x5757551c
add al, byte [ebx]
or ch, byte [eax + 0x22a85b22]
pop edi
mov edi, 0x57575729
fsub st(2), st(0)
pop edi
push edi
push edi
push edi
salc
cmpsb byte [esi], byte es:[edi]
add eax, esi
sar byte [ebx], 0xd6
cmpsb byte [esi], byte es:[edi]
add eax, esi
sar byte [ebx], 0x64
sahf
salc
movsd dword es:[edi], dword [esi]
shl dword [edi + eax], cl
xor esi, edx
movsd dword es:[edi], dword [esi]
shl dword [edi + eax], cl
xor dword [ebp + eax*4 - 0x2c], esp
mov edi, 0xd3581f52
sbb dword [edi + 0x57], edx
push edi
push edi
pop eax
fistp word [edi]
push edi
push edi
push edi
xor esp, ebx
dec ebx
outsb dx, byte [esi]
xlatb
lodsb al, byte [esi]
mov edi, 0x574dd358
push edi
push edi
xlatb
lodsb al, byte [esi]
mov esi, 0x5746d358
push edi
push edi
xor esi, edx
lodsb al, byte [esi]
test al, 0x72
pop eax
rol dword [edx + 0x57], cl
push edi
push edi
push ss
mov esi, 0xa8a8a89b
jle 0x930415
sbb ebp, dword [esi + 0x56]
outsb dx, byte [esi]
push esi
aam 0x96
push edx
aam 0xbf
push ebx
mov esi, 0xa8a8a8ea
jle 0x93040c
outsb dx, byte [esi]
push ebp
aam 0x96
xchg esi, eax
push ecx
aam 0xbd
push ebx
aam 0xbf
push edx
mov esi, 0xa8a8a8fc
or dl, byte [ebp - 0x23fda8a5]
cld
test al, 0xa8
test al, 0xa
xchg ebp, eax
pop ebx
push edi
add bl, ah
mov ebx, 0xdc020001
and bl, byte [ebx - 0x24]
sub bl, byte [edi - 0x55]
in eax, 0xd7
fst qword [ecx - 0x2a]
xchg ecx, eax
push esi
push edi
push edi
push edi
fist word [eax - 0x2a]
nop
push esi
push edi
push edi
push edi
in al, dx
push ebp
push edi
push edi
push edi
push ebp
test dword [eax - 0x2e], ebx
push edx
push edi
push edi
push edi
fld qword [ecx + 0x11]
inc ebp
test dword [eax - 0x2c], ebx
invalid
Function at 0x10434b5c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10434b66
pushal
call 0x10434b6c
pop ebp
sub ebp, 0x10
sub ebp, 0x434b5c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10434b90
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10434b99
mov eax, 0x434b5c
add eax, ebp
add eax, 0x63
mov ecx, 0x60b
mov edx, 0xf649c1ff
xor byte [eax], dl
inc eax
dec ecx
jne 0x10434bb0
jmp 0x10434bc3
je 0x10434bf7
je 0x10434c3d
ret
cmp byte [edi], ch
retf
sti
cmp eax, 0x7374fff3
invalid
Function at 0x340728e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x340728f6
pop dword [ebp - 0x40]
mov eax, 0x92a6d06b
add eax, 0xa160588b
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xfa3fd8f7
add dword [ebp - 0x50], 0x54126c54
mov dword [ebp - 0x4c], 0x908435f6
sub dword [ebp - 0x4c], 0x5e50e9b1
mov dword [ebp - 0x48], 0x879f53c6
add dword [ebp - 0x48], 0xc4acf068
mov dword [ebp - 0x44], 0xe21d57aa
sub dword [ebp - 0x44], 0xe21d57aa
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xeb012aa1
add dword [ebp - 0x50], 0x89713eb5
mov dword [ebp - 0x4c], 0x143e619e
sub dword [ebp - 0x4c], 0xd2d20029
mov dword [ebp - 0x48], 0xabe11c8f
add dword [ebp - 0x48], 0xb78e4fdd
mov dword [ebp - 0x44], 0xe52ac0d4
sub dword [ebp - 0x44], 0xe52ac0d4
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x17b86759
sub eax, 0xe3b55599
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x49d10
push 0
call eax
mov ecx, 0xde8495c9
sub ecx, 0xde843c70
xor esi, esi
add esi, eax
mov edx, 0x3409b800
add edx, dword [ebp - 0x40]
mov ebx, 0x748727dd
sub dword [ebp - 0x24], ebx
mov edi, dword [edx]
sub dword [ebp - 0x20], ecx
xor edi, ebx
sub dword [ebp - 0x38], esi
mov dword [esi], edi
add esi, 0x1daabd08
add esi, 0xe25542fc
add edx, 0x3841bffe
add edx, 0xc7be4006
loop 0x34072a09
add eax, 0x7892d92
add eax, 0xf8782aa5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x34030000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x3407b622
Capabilities:
Set registry value

Disassembly:
call fcn.34044726
test eax, eax
jl 0x3407b630
jmp fcn.3407ad34
ret

Function at 0x3407f0f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3403d054]
jne 0x3407fcb3
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x34086a80], eax
mov dword [0x34086a7c], ecx
mov dword [0x34086a78], edx
mov dword [0x34086a74], ebx
mov dword [0x34086a70], esi
mov dword [0x34086a6c], edi
mov word [0x34086a98], ss
mov word [0x34086a8c], cs
mov word [0x34086a68], ds
mov word [0x34086a64], es
mov word [0x34086a60], fs
mov word [0x34086a5c], gs
pushfd
pop dword [0x34086a90]
mov eax, dword [ebp]
mov dword [0x34086a84], eax
mov eax, dword [ebp + 4]
mov dword [0x34086a88], eax
lea eax, [ebp + 8]
mov dword [0x34086a94], eax
mov eax, dword [ebp - 0x320]
mov dword [0x340869d0], 0x10001
mov eax, dword [0x34086a88]
mov dword [0x34086984], eax
mov dword [0x34086978], 0xc0000409
mov dword [0x3408697c], 1
mov eax, dword [0x3403d054]
mov dword [ebp - 0x328], eax
mov eax, dword [0x34086850]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x340869c8], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3403d3b4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x340869c8], 0
jne 0x3407fda3
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x10008220
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 0x100083e1
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x58]
mov ecx, 3
cmp eax, dword [ebx + 0x5c]
jb 0x100082b4
cmp dword [ebx + 0x58], 8
jae 0x1000825f
lea eax, [ecx + 5]
jmp 0x10008279
mov eax, dword [ebx + 0x58]
mul ecx
test edx, edx
ja 0x100083a8
jb 0x10008277
cmp eax, 0xffffffff
ja 0x100083a8
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 [0x101182f8]
call esi
add esp, 0x14
test eax, eax
je 0x100083b3
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 0x1000838b
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 0x10008247
test byte [ebx + 0x60], 1
jne 0x100083e1
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 0x10008341
mov edx, ebx
lea ecx, [esp + 0x10]
call fcn.10007820
test eax, eax
js 0x1000834a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 3
call fcn.10040930
add esp, 4
test eax, eax
js 0x1000834a
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov ecx, edx
lock cmpxchg dword [esi], ecx
mov esi, fcn.1003ed80
test edx, edx
je 0x1000834f
mov esi, fcn.1003edb0
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x10008361
mov ecx, ebx
call fcn.10008170
test eax, eax
js 0x1000838b
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x100083e1
push dword [ebx + 0x44]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
add esp, 8
test eax, eax
jne 0x100083e1
mov edx, dword [ebx + 0x3c]
mov ecx, ebx
call fcn.10008170
test eax, eax
jns 0x100083e1
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.1002b0b0
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 [0x101182f8]
call esi
mov dword [ebx + 0x5c], 0
add esp, 4
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
jmp 0x1000838b
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 0x10031100
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2028
call fcn.100f5020
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.10052fb0
test eax, eax
js 0x100312c6
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 0x10031299
cmp eax, 3
je 0x10031299
test eax, eax
je 0x10031180
push str.failed_to_get_security_information
push 2
call fcn.10028180
add esp, 8
or edi, 0xffffffff
jmp 0x1003129e
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x100311a5
push str.programdata_configuration_file_owner_is_unknown
push 3
call fcn.10028180
add esp, 8
or edi, 0xffffffff
jmp 0x1003129e
push 0x1a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031295
push 0x16
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031295
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 0x10031259
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 0x10031259
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 [0x101182f8]
call esi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100312c6
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 0x10031281
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
xor esi, esi
push str.programdata_configuration_file_owner_is_not_valid
push 3
call fcn.10028180
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 [0x101182f8]
call esi
add esp, 4
jmp 0x1003129e
push dword [esi]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10031259
xor edi, edi
jmp 0x1003126b
xor edi, edi
jmp 0x1003129e
mov edi, 0xfffffffd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100312ad
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.100f4277
add esp, 0x2028
ret
mov ecx, dword [esp + 0x202c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100f4277
add esp, 0x2028
ret
Function at 0x1003a650
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x2018
call fcn.100f5020
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.10052fb0
test eax, eax
js 0x1003a6b8
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003a6b8
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x1003a6d1
push ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003a6d1
push esi
push 0x1013ebec
push str.failed_to__s_hidden_bit_for__s
push 2
call fcn.10028180
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.100f4277
add esp, 0x2018
ret
mov ecx, dword [esp + 0x2018]
xor eax, eax
pop esi
xor ecx, esp
call fcn.100f4277
add esp, 0x2018
ret
Function at 0x1003f170
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 0x1003f1a6
mov dword [ebx], 0x1015ddcd
mov ecx, 0x1015ddcd
mov dword [ebx + 4], ebp
cmp dword [ebx + 4], ebp
jbe 0x1003f1ae
mov byte [ecx], 0
lea ecx, [esp + 0x10]
call fcn.1008bbd0
test eax, eax
js 0x1003f28d
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 0x1003f225
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 [0x101182f8]
call esi
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1003f28d
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 0x1003f225
push edi
mov edx, ebp
mov ecx, ebx
call fcn.1008b9d0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1003f259
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003f251
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1003f251
push dword [esp + 0x18]
push str.could_not_read_environment_variable__s
push 2
call fcn.10028180
add esp, 0xc
jmp 0x1003f259
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 [0x101182f8]
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 [0x101182f8]
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 0x1003f4e0
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 0x1003f50d
test al, 1
jne 0x1003f4f7
xor eax, eax
pop esi
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1003f50d
mov eax, 0xffffffe0
pop esi
ret
call fcn.1003f2c0
or eax, 0xffffffff
pop esi
ret

Function at 0x1003f520
Capabilities:
Create directory

Disassembly:
mov eax, 0x2010
call fcn.100f5020
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x200c], eax
mov edx, ecx
lea ecx, [esp]
call fcn.10052fb0
test eax, eax
jns 0x1003f55e
or eax, 0xffffffff
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.100f4277
add esp, 0x2010
ret
lea eax, [esp]
push eax
call fcn.10101367
mov ecx, dword [esp + 0x2010]
add esp, 4
xor ecx, esp
call fcn.100f4277
add esp, 0x2010
ret
Function at 0x1003f580
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 0x1003f621
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x1003f5db
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003f5db
mov eax, dword [esp + 8]
and eax, 0x410
cmp eax, 0x410
jne 0x1003f5db
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1003f621
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1003f60b
cmp eax, 5
je 0x1003f60b
call fcn.1003f2c0
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f4277
add esp, 0x28
ret
pop edi
mov eax, 0xffffffe0
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f4277
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100f4277
add esp, 0x28
ret

Function at 0x1003f720
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 0x1003f77d
test esi, esi
jne 0x1003f75d
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f4277
add esp, 0x28
ret
push edi
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1003a6f0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f4277
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1003f795
call fcn.100fe80a
mov dword [eax], 2
jmp 0x1003f7a0
call fcn.100fe80a
mov dword [eax], 0xd
call fcn.100fe80a
cmp dword [eax], 2
jne 0x1003f818
cmp byte [esp + 0x34], 0
je 0x1003f818
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003f7b6
sub esi, ecx
sar esi, 1
sub esi, 1
je 0x1003f818
nop word [eax + eax]
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x1003f7f7
cmp eax, 0x5c
je 0x1003f7f7
sub esi, 1
jne 0x1003f7d0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100f4277
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 0x1003f7c5
test al, 0x10
jne 0x1003f818
call fcn.100fe80a
mov dword [eax], 0x14
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100f4277
add esp, 0x28
ret
Function at 0x1003f960
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x2028
call fcn.100f5020
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, 0x1015ddcd
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov bl, 1
mov al, byte [edi]
cmp al, 0x41
jl 0x1003f9a2
cmp al, 0x5a
jle 0x1003f9aa
cmp al, 0x61
jl 0x1003f9d8
cmp al, 0x7a
jg 0x1003f9d8
cmp byte [edi + 1], 0x3a
jne 0x1003f9d8
mov al, byte [edi + 2]
cmp al, 0x5c
je 0x1003f9bb
cmp al, 0x2f
jne 0x1003f9d8
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.10052fb0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x1003fa2e
lea ecx, [esp + 0x10]
call fcn.1002f670
test eax, eax
js 0x1003fa2a
push edi
push dword [esp + 0x14]
mov dl, 0x2f
lea ecx, [esp + 0x18]
call fcn.1002a390
add esp, 8
test eax, eax
jne 0x1003fa05
lea ecx, [esp + 0x10]
call fcn.10030220
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.10052fb0
test eax, eax
js 0x1003fa2e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x1003fa2e
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jbe 0x1003fa55
test esi, esi
je 0x1003fa55
cmp esi, 0x1015ddcc
je 0x1003fa55
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
mov ecx, dword [esp + 0x2030]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100f4277
add esp, 0x2028
ret
Function at 0x1003fdb0
Capabilities:
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2068
call fcn.100f5020
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x2064], eax
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], 0
mov edx, ecx
lea ecx, [esp + 0x58]
call fcn.10052fb0
test eax, eax
js 0x1003fe22
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
test al, 1
je 0x1003fe39
and eax, 0xfffffffe
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003fe39
push str.failed_to_set_attributes
push 2
call fcn.10028180
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10156f38]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], 0xc0000000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 3
mov dword [esp + 0x40], 0x80
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.1003fca0
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jns 0x1003fe99
or edi, 0xffffffff
jmp 0x1003ffab
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x14], xmm0
test edi, edi
jne 0x1003fedc
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x1003ff76
movups xmm0, xmmword [edi]
push 0
push 0x989680
movd ecx, xmm0
psrldq xmm0, 4
movd eax, xmm0
add ecx, 0xb6109100
adc eax, 2
push eax
push ecx
call fcn.100f47a0
movups xmm0, xmmword [edi]
mov esi, eax
mov ecx, edx
mov edx, 0xa
psrldq xmm0, 8
movd eax, xmm0
movups xmm0, xmmword [edi + 0x10]
push 0
imul edx
push 0x989680
add esi, eax
mov dword [esp + 0x24], esi
adc ecx, edx
mov dword [esp + 0x28], ecx
movd ecx, xmm0
psrldq xmm0, 4
movd eax, xmm0
add ecx, 0xb6109100
adc eax, 2
push eax
push ecx
call fcn.100f47a0
movups xmm0, xmmword [edi + 0x10]
mov esi, eax
mov ecx, edx
mov edx, 0xa
psrldq xmm0, 8
movd eax, xmm0
imul edx
add esi, eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
adc ecx, edx
mov dword [esp + 0x18], ecx
push esi
call fcn.1010175b
add esp, 4
cmp eax, 0xffffffff
jne 0x1003ff88
or edi, eax
jmp 0x1003ffa2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb edi, edi
neg edi
dec edi
push esi
call fcn.10105c23
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0xc]
je 0x1003ffd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x206c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret