joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4325aa
call fcn.0041f9b6
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00408b8d
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x406729
call fcn.00408b8d
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40673a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x406747
or eax, 0xffffffff
jmp 0x4068a3
mov ecx, esi
call fcn.0040620e
mov dword [ebp - 0x14], eax
call fcn.0040b1a7
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4067c5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4067c5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4067c5
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00403c6b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4067c5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4067c5
mov ecx, ebx
call fcn.0040eaf6
test eax, eax
je 0x4067c5
push 0
mov ecx, ebx
call fcn.0040eb11
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040cb39
push dword [ebp - 0x14]
call fcn.0040b0ff
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004064e6
xor edi, edi
cmp eax, edi
je 0x406822
test byte [esi + 0x3c], 0x10
je 0x40680c
push 4
pop edi
mov ecx, esi
call fcn.0040ea07
test ax, 0x100
je 0x406802
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040ac95
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x406822
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040ecbb
or dword [ebp - 4], 0xffffffff
jmp 0x40684d
cmp dword [ebp - 0x28], edi
je 0x40685b
push 1
mov ecx, ebx
call fcn.0040eb11
cmp dword [ebp - 0x2c], edi
je 0x40686b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x406884
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x406884
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00406248
cmp dword [esi + 0x58], edi
je 0x4068a0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041fa5b
ret
Function at 0x407940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x407986
call fcn.00408b8d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x407986
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4079c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4079b2
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4079b2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4079c6
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40dc56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40dc99
call fcn.00408b8d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40dc99
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40dcb4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d80d
test ebx, ebx
mov esi, eax
je 0x40dcb2
test edi, edi
je 0x40dcb2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f9c1
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 0x40f9ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40fa0d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f92b
jmp 0x40fa0d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40fa0d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f92b
test edi, edi
mov eax, edi
jne 0x40f9f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x445500]
test ecx, ecx
je 0x40fad0
jmp 0x40f9c0
ret 8

Function at 0x41efd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44251c]
jne 0x41efda
repz ret
jmp fcn.00425835
Function at 0x423e13
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x442808]
je 0x423e2e
inc edi
cmp edi, 0x17
jb 0x423e1f
cmp edi, 0x17
jae 0x423fae
push ebp
push 3
call fcn.0042bb3b
cmp eax, 1
pop ecx
je 0x423f7a
push 3
call fcn.0042bb3b
test eax, eax
pop ecx
jne 0x423e62
cmp dword [0x442530], 1
je 0x423f7a
cmp ebx, 0xfc
je 0x423fad
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4459c8
push ebp
call fcn.0042021b
add esp, 0xc
test eax, eax
je 0x423e98
push esi
push esi
push esi
push esi
push esi
call fcn.00424022
add esp, 0x14
push 0x104
mov esi, 0x4459e1
push esi
push 0
mov byte [0x445ae5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423edc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042021b
add esp, 0xc
test eax, eax
je 0x423edc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00424022
add esp, 0x14
push esi
call fcn.0041fac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x423f21
push esi
call fcn.0041fac0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x445cdc
push 0x437d0c
sub ecx, eax
push ecx
push eax
call fcn.00421ce5
add esp, 0x14
test eax, eax
je 0x423f21
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00424022
add esp, 0x14
jmp 0x423f23
xor esi, esi
push 0x437d08
push ebx
push ebp
call fcn.004203c1
add esp, 0xc
test eax, eax
je 0x423f43
push esi
push esi
push esi
push esi
push esi
call fcn.00424022
add esp, 0x14
push dword [edi*8 + 0x44280c]
push ebx
push ebp
call fcn.004203c1
add esp, 0xc
test eax, eax
je 0x423f65
push esi
push esi
push esi
push esi
push esi
call fcn.00424022
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042b97e
add esp, 0xc
jmp 0x423fad
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x423fad
cmp ebp, 0xffffffff
je 0x423fad
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44280c]
push dword [esi]
call fcn.0041fac0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42b97e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424bdf
xor ebx, ebx
cmp dword [0x446298], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42ba54
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42bb34
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438748
push edi
call esi
cmp eax, ebx
je 0x42bb34
push eax
call fcn.00424b71
mov dword [esp], 0x438738
push edi
mov dword [0x446298], eax
call esi
push eax
call fcn.00424b71
mov dword [esp], 0x438724
push edi
mov dword [0x44629c], eax
call esi
push eax
call fcn.00424b71
mov dword [0x4462a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041fccb
test eax, eax
pop ecx
pop ecx
je 0x42ba22
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424022
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42ba54
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424b71
cmp eax, ebx
pop ecx
mov dword [0x4462a8], eax
je 0x42ba54
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424b71
pop ecx
mov dword [0x4462a4], eax
mov eax, dword [0x4462a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42bad9
cmp dword [0x4462a8], ecx
je 0x42bad9
push eax
call fcn.00424be8
push dword [0x4462a8]
mov esi, eax
call fcn.00424be8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42bad9
cmp edi, ebx
je 0x42bad9
call esi
cmp eax, ebx
je 0x42baa6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42baa6
test byte [ebp - 0x18], 1
jne 0x42bad9
lea eax, [ebp - 0x10]
push eax
call fcn.0041fd02
test eax, eax
pop ecx
je 0x42bac1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424022
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42bad0
or dword [ebp + 0x10], 0x200000
jmp 0x42bb14
or dword [ebp + 0x10], 0x40000
jmp 0x42bb14
mov eax, dword [0x44629c]
cmp eax, dword [ebp - 8]
je 0x42bb14
push eax
call fcn.00424be8
cmp eax, ebx
pop ecx
je 0x42bb14
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42bb14
mov eax, dword [0x4462a0]
cmp eax, dword [ebp - 8]
je 0x42bb14
push eax
call fcn.00424be8
cmp eax, ebx
pop ecx
je 0x42bb14
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446298]
call fcn.00424be8
cmp eax, ebx
pop ecx
je 0x42bb34
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42bb36
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431d14
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44251c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00431ca9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004202c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x431d63
cmp dword [ebp - 0x1c], 5
jb 0x431d7b
jmp 0x431d77
cmp dword [ebp - 0x10], 1
jne 0x431d7b
cmp dword [ebp - 0x1c], 4
ja 0x431d77
jne 0x431d7b
cmp dword [ebp - 0x18], 0
jbe 0x431d7b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x439920
call fcn.00431b9a
test eax, eax
jge 0x431d9c
mov byte [0x4439cc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041efd0
add ebp, 0x78
leave
ret
Function at 0x401980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x401a41
call fcn.00401a48
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x401a3f
test esi, 3
je 0x4019c3
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4019ac
mov edx, ecx
shr ecx, 3
je 0x401a25
lea ebx, [ebx]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4019d0
mov ecx, edx
and ecx, 7
je 0x401a3f
lea esp, [esp]
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x401a30
not eax
pop ecx
pop edx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401a5c
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call fcn.00408f91
test eax, eax
pop ecx
je 0x401a9f
push esi
push edi
xor edx, edx
mov esi, eax
push 8
mov ecx, edx
pop edi
test cl, 1
je 0x401a85
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x401a87
shr ecx, 1
dec edi
jne 0x401a76
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jl 0x401a71
pop edi
mov dword [0x419994], eax
pop esi
ret
Function at 0x403545
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
mov dword [ebp + 0xc], ebx
je 0x4035c8
mov eax, dword [0x426654]
mov edi, 0x2000
test eax, eax
jg 0x403595
push edi
push dword [0x42664c]
push dword [0x426670]
call fcn.00410b55
add esp, 0xc
mov dword [0x426654], eax
test eax, eax
je 0x4035d0
jl 0x4035d7
mov ecx, dword [0x42664c]
add dword [0x426678], edi
mov dword [0x426650], ecx
cmp ebx, eax
mov esi, ebx
jb 0x40359d
mov esi, eax
push esi
push dword [0x426650]
push dword [ebp + 8]
call fcn.00409410
mov eax, dword [0x426654]
add dword [ebp + 8], esi
add dword [0x426650], esi
add esp, 0xc
sub eax, esi
sub ebx, esi
mov dword [0x426654], eax
jne 0x40355f
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, ebx
jmp 0x4035cb
mov esi, str.error:__zipfile_read_error_n
push 0x401
push esi
call fcn.00409390
pop ecx
push eax
push esi
push 0x419e80
call dword [0x426880]
add esp, 0x10
xor eax, eax
jmp 0x4035cb

Function at 0x4035fc
Capabilities:
Read file on windows
Terminate process

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x426708], edi
jne 0x403649
cmp dword [0x419f20], edi
jg 0x403618
dec dword [0x419f20]
jmp 0x403643
cmp dword [0x426654], edi
jg 0x40368d
mov esi, 0x2000
push esi
push dword [0x42664c]
push dword [0x426670]
call fcn.00410b55
add esp, 0xc
cmp eax, edi
mov dword [0x426654], eax
jne 0x40364e
mov dword [0x426654], edi
or eax, 0xffffffff
jmp 0x4036a1
jge 0x403678
mov esi, str.error:__zipfile_read_error_n
push 0x401
push esi
call fcn.00409390
pop ecx
push eax
push esi
push 0x419e80
call dword [0x426880]
add esp, 0x10
push 3
call fcn.00409815
mov eax, dword [0x42664c]
add dword [0x426678], esi
mov dword [0x426650], eax
call fcn.00403501
mov eax, dword [0x426650]
dec dword [0x426654]
movzx eax, byte [eax]
inc dword [0x426650]
pop edi
pop esi
ret

Function at 0x4036a4
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x42667c]
mov ecx, dword [esp + 4]
add ecx, eax
push esi
mov eax, ecx
mov esi, 0x2000
cdq
idiv esi
mov eax, ecx
mov esi, edx
sub eax, esi
test ecx, ecx
jge 0x4036f8
push 1
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push dword [0x42666c]
mov esi, 0x41a644
push str.error___s_:__attempt_to_seek_before_beginning_of_zipfile_n_s
push esi
call fcn.00408690
add esp, 0x10
push eax
push esi
push 0x419e80
call dword [0x426880]
add esp, 0x10
push 3
jmp 0x403737
cmp eax, dword [0x426678]
je 0x403748
push 0
push eax
push dword [0x426670]
call fcn.0040e9ab
push 0x2000
mov dword [0x426678], eax
push dword [0x42664c]
push dword [0x426670]
call fcn.00410b55
add esp, 0x18
mov dword [0x426654], eax
test eax, eax
jg 0x40373a
push 0x33
pop eax
pop esi
ret
sub eax, esi
mov dword [0x426654], eax
mov eax, dword [0x42664c]
jmp 0x40375d
mov ecx, dword [0x426650]
mov eax, dword [0x42664c]
sub ecx, eax
sub ecx, esi
add dword [0x426654], ecx
add eax, esi
pop esi
mov dword [0x426650], eax
xor eax, eax
ret
Function at 0x40653f
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x426730]
call fcn.0040a2fb
xor esi, esi
pop ecx
cmp dword [0x419e90], esi
jne 0x40672f
lea eax, [esp + 0x28]
push ebp
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004068be
add esp, 0xc
mov ebp, 0x426748
mov ebx, eax
push esi
push 0x80
push 3
push esi
push 2
push 0x40000000
push ebp
call dword [sym.imp.ish_CreateFileA]
mov dword [esp + 0x10], eax
mov eax, dword [0x41a640]
mov esi, 0x41a644
mov edi, 0x419e80
mov eax, dword [eax + 0x14]
test al, 0x5f
je 0x4065e1
and eax, 0x7f
push eax
push ebp
call dword [sym.imp.ish_SetFileAttributesA]
test eax, eax
jne 0x4065e1
push 1
call dword [sym.imp.ish_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.00408690
add esp, 0xc
push eax
push esi
push edi
call dword [0x426880]
add esp, 0x10
mov eax, dword [0x426680]
test eax, eax
je 0x406698
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
movzx ecx, word [0x4266a0]
push ecx
push eax
call fcn.00406835
add esp, 0x10
test eax, eax
je 0x406698
push dword [esp + 0x14]
mov eax, dword [0x41a640]
push dword [esp + 0x1c]
push dword [eax + 0x14]
push ebp
call fcn.00406736
add esp, 0x10
cmp eax, 0x4f
jne 0x406698
cmp dword [0x419eb4], 0
je 0x40666e
push 1
push 0x41e644
push ebp
call fcn.0040333b
push eax
push 0x41608c
push esi
call fcn.00408690
add esp, 0x14
push eax
push esi
push edi
call dword [0x426880]
add esp, 0x10
cmp dword [0x419eb4], 0
mov eax, 0x416080
jne 0x406673
mov eax, 0x419990
push 1
push eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff5
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.00408690
add esp, 0x10
push eax
push esi
push edi
call dword [0x426880]
add esp, 0x10
cmp dword [esp + 0x10], 0xffffffff
pop ebp
jne 0x4066c5
push 1
call dword [sym.imp.ish_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.00408690
add esp, 0xc
push eax
push esi
push edi
call dword [0x426880]
add esp, 0x10
jmp 0x40672f
test ebx, ebx
je 0x406725
mov eax, ebx
lea ecx, [esp + 0x18]
and al, 1
neg al
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x20]
push eax
mov eax, ebx
and al, 2
neg al
sbb eax, eax
and bl, 4
and eax, ecx
neg bl
push eax
lea eax, [esp + 0x30]
sbb ebx, ebx
and ebx, eax
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ish_SetFileTime]
test eax, eax
jne 0x406725
push eax
call dword [sym.imp.ish_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.00408690
add esp, 0xc
push eax
push esi
push edi
call dword [0x426880]
add esp, 0x10
push dword [esp + 0xc]
call dword [sym.imp.ish_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x406db0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push 0x41629c
push esi
call fcn.00408780
add esp, 0xc
test eax, eax
je 0x406de6
push 2
push 0x416298
push esi
call fcn.00408780
add esp, 0xc
test eax, eax
jne 0x406df9
mov al, byte [esi + 2]
test al, al
je 0x406df9
cmp al, 0x2f
je 0x406df9
cmp al, 0x5c
jne 0x406eb7
cmp dword [0x416930], 1
jle 0x406e14
movzx eax, byte [esi]
push 0x103
push eax
call fcn.0040a06a
pop ecx
pop ecx
jmp 0x406e26
movzx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, 0x103
test eax, eax
mov edi, 0x104
je 0x406e35
cmp byte [esi + 1], 0x3a
je 0x406e52
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push esi
call dword [sym.imp.ish_GetFullPathNameA]
test eax, eax
je 0x406eb7
lea esi, [ebp - 0x214]
push 2
mov dword [ebp + 8], esi
push esi
mov esi, 0x4268ac
push esi
call fcn.00408780
add esp, 0xc
test eax, eax
je 0x406f31
push 2
push dword [ebp + 8]
push esi
call fcn.0040a580
add esp, 0xc
lea eax, [ebp - 0x110]
and byte [0x4268af], 0
mov byte [0x4268ae], 0x2f
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push edi
push eax
push esi
call dword [sym.imp.ish_GetVolumeInformationA]
test eax, eax
jne 0x406ebb
and byte [0x4268ac], al
xor eax, eax
jmp 0x406f34
push 0xc
pop eax
cmp eax, dword [ebp - 4]
push 4
push str.VFAT
sbb eax, eax
inc eax
mov dword [0x4268b0], eax
lea eax, [ebp - 0x110]
push eax
call fcn.00411d16
pop ecx
push eax
call fcn.00408780
add esp, 0xc
test eax, eax
je 0x406f27
push 4
lea eax, [ebp - 0x110]
push str.HPFS
push eax
call fcn.00408780
add esp, 0xc
test eax, eax
je 0x406f27
push 3
lea eax, [ebp - 0x110]
push 0x416284
push eax
call fcn.00408780
add esp, 0xc
test eax, eax
je 0x406f27
and dword [0x4268b4], 0
jmp 0x406f31
mov dword [0x4268b4], 1
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x407c4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
and byte [ebp + 0xb], 0
add al, 0x40
mov byte [ebp + 9], 0x3a
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 0xa], 0x2f
call dword [sym.imp.ish_GetDriveTypeA]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x407ddd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00411e6c
pop ecx
pop ecx
test eax, eax
push edi
jne 0x407eea
call fcn.00406ab9
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ish_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407f2d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ish_GetFileTime]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.ish_CloseHandle]
cmp dword [ebp + 0xc], ebx
je 0x407f2d
cmp dword [ebp + 8], ebx
lea edi, [esi + 0x1c]
lea eax, [ebp - 0x18]
push edi
push eax
jne 0x407ea8
call fcn.00407f34
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
jne 0x407e76
cmp dword [ebp - 4], ebx
jne 0x407e76
mov eax, dword [edi]
mov dword [esi + 0x18], eax
jmp 0x407e85
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00407f34
pop ecx
pop ecx
cmp dword [ebp - 0x10], ebx
jne 0x407e99
cmp dword [ebp - 0xc], ebx
jne 0x407e99
mov eax, dword [edi]
mov dword [esi + 0x20], eax
jmp 0x407f2d
add esi, 0x20
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00407f34
jmp 0x407ee6
call fcn.00407fa5
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
jne 0x407ec0
cmp dword [ebp - 4], ebx
jne 0x407ec0
mov eax, dword [edi]
mov dword [esi + 0x18], eax
jmp 0x407ecf
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00407fa5
pop ecx
pop ecx
cmp dword [ebp - 0x10], ebx
jne 0x407ed9
cmp dword [ebp - 0xc], ebx
je 0x407e8f
add esi, 0x20
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00407fa5
pop ecx
pop ecx
jmp 0x407f2d
call dword [sym.imp.ish_GetFileAttributesA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x407f2f
test bl, 0x10
je 0x407f2f
push 0x24
push 0
push esi
call fcn.0040a0e0
push 0x210000
call fcn.00403d03
not bl
and ebx, 1
add esp, 0x10
or bl, 0x82
mov dword [esi + 0x1c], eax
shl ebx, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov word [esi + 6], bx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret