joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40551b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x425ef0]
push edi
push 6
call fcn.00407b8b
xor ebx, ebx
cmp eax, ebx
je 0x405546
push 0x42c000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.00404453
jmp 0x405590
mov edi, 0x4228c8
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x42c000], 0x7830
call fcn.004077f0
cmp byte [0x4228c8], bl
jne 0x405585
push ebx
push edi
push 0x40931a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004077f0
push edi
push 0x42c000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405740
mov eax, dword [0x425ef8]
mov ebp, 0x42b400
and eax, 0x20
push ebp
mov dword [0x425f40], eax
mov dword [0x425f5c], 0x10000
call fcn.004074cf
test eax, eax
jne 0x405640
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x405640
mov edx, dword [esi + 0x44]
mov eax, dword [0x425f18]
mov edi, 0x424e60
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.004077f0
mov al, byte [0x424e60]
cmp al, bl
je 0x405640
cmp al, 0x22
jne 0x4055ff
mov edi, 0x424e61
push 0x22
push edi
call fcn.00407419
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405633
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405633
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40562d
test al, 0x10
jne 0x405633
push edi
call fcn.00407435
push edi
call fcn.004073ee
push eax
push ebp
call fcn.00407867
push ebp
call fcn.004074cf
test eax, eax
jne 0x405656
push dword [esi + 0x104]
push ebp
call fcn.00407889
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x425ee0]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x4256a8], eax
call fcn.0040545b
push ebx
call fcn.004012fc
test eax, eax
je 0x405689
push 2
pop eax
jmp 0x40573b
call fcn.00405740
cmp dword [0x425f60], ebx
jne 0x405710
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20
call esi
test eax, eax
jne 0x4056ae
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
mov esi, 0x425660
mov ebp, str.RichEdit20A
push esi
push ebp
push ebx
call edi
test eax, eax
jne 0x4056dd
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x425684], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x4256a0]
push ebx
add eax, 0x69
push 0x405802
movzx eax, ax
push ebx
push eax
push dword [0x425ee0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404196
mov eax, esi
jmp 0x40573b
push ebx
call fcn.00406d6b
test eax, eax
je 0x405732
cmp dword [0x42568c], ebx
jne 0x405681
push 2
call fcn.004012fc
jmp 0x405681
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40715b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4248d0], 0x44
push eax
xor eax, eax
push 0x4248d0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407196
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x407220
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004074cf
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407254
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x425f48], eax
jmp 0x4073e8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407272
test eax, eax
je 0x407393
test byte [ebp + 0xc], 2
je 0x407393
mov esi, 0x4238d0
push edi
push esi
call fcn.00407867
test ebx, ebx
je 0x40728f
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x407295
push edi
call fcn.00407435
cmp byte [edi], 0
jne 0x4072a3
cmp byte [0x4238d0], 0x5c
jne 0x4072ae
push 0x40b010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407389
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00407419
cmp byte [eax], 0
je 0x4072f4
cmp byte [ebp - 0x18], 0
je 0x4072f4
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40730a
mov al, byte [esi + 1]
test al, al
je 0x407368
cmp al, 0x2e
jne 0x40730a
cmp byte [esi + 2], 0
je 0x407368
push esi
push ebx
call fcn.00407867
test byte [ebp - 0x148], 0x10
je 0x40732f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407368
push dword [ebp + 0xc]
push edi
call fcn.00407220
jmp 0x407368
push edi
call fcn.004075c1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407360
test byte [ebp + 0xc], 4
je 0x407358
push edi
push 0xfffffffffffffff1
call fcn.00406c99
push 0
push edi
call fcn.00407657
jmp 0x407368
inc dword [0x425f48]
jmp 0x407368
push edi
push 0xfffffffffffffff2
call fcn.00406c99
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4072d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407393
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4073e8
cmp dword [ebp - 8], esi
jne 0x4073a8
inc dword [0x425f48]
jmp 0x4073e8
push edi
call fcn.00407b64
test eax, eax
je 0x4073e8
push edi
call fcn.004073ee
push edi
call fcn.004075c1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4073e0
test byte [ebp + 0xc], 4
je 0x4073a0
push edi
push 0xfffffffffffffff1
call fcn.00406c99
push esi
push edi
call fcn.00407657
jmp 0x4073e8
push edi
push 0xffffffffffffffe5
call fcn.00406c99
pop edi
pop esi
leave
ret 8
Function at 0x4074cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x423cd0
push esi
call fcn.00407867
push esi
call fcn.00407482
mov edi, eax
test edi, edi
jne 0x4074f0
xor eax, eax
jmp 0x407542
push edi
call fcn.00407acb
test byte [0x425ef8], 0x80
je 0x407509
mov al, byte [edi]
test al, al
je 0x4074ec
cmp al, 0x5c
je 0x4074ec
sub edi, esi
jmp 0x407521
call fcn.00407b64
test eax, eax
je 0x40751b
test byte [eax], 0x10
je 0x4074ec
push esi
call fcn.00407435
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40750d
call fcn.004073ee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4075dd
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4075e0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40760f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x407653
test edi, edi
jne 0x40761a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40764d
Function at 0x407657
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00407b8b
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40767b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4077b4
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x424a58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x424a58
je 0x4076bf
push 1
push 0
push esi
call fcn.004075e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4077ba
cmp eax, edi
jg 0x4077ba
mov esi, 0x4244d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4077ba
cmp eax, edi
jg 0x4077ba
push esi
push ebp
push str._s_s_r_n
push 0x4240d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425ef0]
add esp, 0x10
push dword [eax + 0x114]
push esi
call fcn.00407889
push 4
push 0xc0000000
push esi
call fcn.004075e0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4077b4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4077ad
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4077ad
cmp edi, dword [esp + 0x18]
jne 0x4077ad
push str._Rename__r_n
push esi
call fcn.00407547
test eax, eax
jne 0x4077c1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00407867
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4240d0
push eax
call fcn.00407593
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x425f50]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40b370
push eax
call fcn.00407547
test eax, eax
je 0x407778
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4077e8
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4077dd
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40777a
Function at 0x4077f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407861
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407850
cmp dword [ebp + 0x14], 1
je 0x407852
cmp dword [ebp + 0x14], 2
je 0x407852
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4031dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x448008], 0x8088405
inc edx
mov dword [ebx + 0x448008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406e68
Capabilities:
Create process on windows

Disassembly:
mov cl, byte [0x44c7ec]
mov eax, dword [0x448798]
test cl, cl
jne 0x406e9d
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
ret
call fcn.00406e24
mov eax, dword [0x448798]
push eax
call sub.KERNEL32.DLL_WinExec
test eax, eax
je 0x406e97
ret
mov eax, dword [0x44c7f4]
ret
push eax
call sub.KERNEL32.DLL_WinExec
test eax, eax
je 0x406e82
ret

Function at 0x4082b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408302
test eax, edx
je 0x408305
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4082c5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4082eb
add ecx, 4
js 0x4082db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4082e8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408311
test edx, edx
jne 0x4082b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x40acb4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40ae16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d70
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xe]
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x10]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x12]
mov word [ebp - 0xe], ax
lea eax, [ebp - 4]
mov edx, 0x40ae2c
call fcn.00404e08
push 0x100
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.00405200
push eax
lea eax, [ebp - 0x14]
push eax
push 4
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
push eax
call sub.KERNEL32.DLL_FileTimeToDosDateTime
test eax, eax
je 0x40adf5
mov eax, ebx
lea edx, [ebp - 0x114]
mov ecx, 0x100
call fcn.00404fe0
dec esi
jne 0x40adf5
mov eax, dword [0x44c8c4]
sub eax, 4
je 0x40ad88
sub eax, 0xd
jne 0x40adf5
push ebx
mov eax, dword [ebx]
mov edx, 1
call fcn.0040d33c
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.00405268
jmp 0x40adf5
cmp dword [0x44c8c8], 1
jne 0x40adf5
mov eax, dword [ebx]
mov dword [ebp - 0x118], eax
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x40ada8
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
mov edx, esi
call fcn.0040d19c
cmp eax, 4
jne 0x40adf5
mov eax, dword [ebx]
mov edx, 3
call fcn.0040d2b8
mov esi, eax
lea eax, [ebp - 0x114]
add esi, eax
dec esi
lea eax, [ebp - 0x11c]
mov edx, esi
call fcn.00404f68
mov eax, dword [ebp - 0x11c]
mov edx, 2
call fcn.0040d33c
mov ecx, eax
mov eax, ebx
mov edx, esi
call fcn.00404e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae1d
lea eax, [ebp - 0x11c]
call fcn.00404d70
lea eax, [ebp - 4]
call fcn.00404d70
ret
Function at 0x40ae30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40af1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d70
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xe]
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x10]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x12]
mov word [ebp - 0xe], ax
cmp esi, 2
jg 0x40ae8e
lea eax, [ebp - 4]
mov edx, 0x40af34
call fcn.00404e08
jmp 0x40ae9b
lea eax, [ebp - 4]
mov edx, 0x40af40
call fcn.00404e08
push 0x100
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.00405200
push eax
lea eax, [ebp - 0x14]
push eax
push 4
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
push eax
call sub.KERNEL32.DLL_FileTimeToDosDateTime
test eax, eax
je 0x40af08
mov eax, ebx
lea edx, [ebp - 0x114]
mov ecx, 0x100
call fcn.00404fe0
dec esi
jne 0x40af08
mov eax, dword [ebx]
cmp byte [eax], 0x30
jne 0x40af08
mov eax, dword [ebx]
mov dword [ebp - 0x118], eax
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x40aef8
sub esi, 4
mov esi, dword [esi]
push ebx
mov ecx, esi
dec ecx
mov eax, dword [ebx]
mov edx, 2
call fcn.00405268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af25
lea eax, [ebp - 4]
call fcn.00404d70
ret

Function at 0x40c198
Capabilities:
Get disk size

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
push edi
xor eax, eax
push ebp
push 0x40c2ab
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov dword [ebp - 4], eax
mov ebx, 1
mov esi, 0x44c828
mov edi, 0x44c858
push ebp
push 0xb
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x448880
mov edx, ebx
dec edx
lea eax, [ebx + 0x44]
dec eax
call fcn.0040c15c
pop ecx
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404dc4
push ebp
push 0xb
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4488b0
mov edx, ebx
dec edx
lea eax, [ebx + 0x38]
dec eax
call fcn.0040c15c
pop ecx
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00404dc4
inc ebx
add edi, 4
add esi, 4
cmp ebx, 0xd
jne 0x40c1cb
mov ebx, 1
mov esi, 0x44c888
mov edi, 0x44c8a4
lea eax, [ebx + 5]
mov ecx, 7
cdq
idiv ecx
mov dword [ebp - 8], edx
push ebp
push 6
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4488e0
mov edx, ebx
dec edx
mov eax, dword [ebp - 8]
add eax, 0x31
call fcn.0040c15c
pop ecx
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404dc4
push ebp
push 6
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4488fc
mov edx, ebx
dec edx
mov eax, dword [ebp - 8]
add eax, 0x2a
call fcn.0040c15c
pop ecx
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.00404dc4
inc ebx
add edi, 4
add esi, 4
cmp ebx, 8
jne 0x40c22c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2b2
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404d94
ret
Function at 0x40c370
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0
push esi
xor eax, eax
push ebp
push 0x40c407
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov ecx, 0x40c41c
mov edx, 0x100b
call fcn.0040c0e4
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.004088e0
mov esi, eax
mov eax, esi
add eax, 0xfffffffd
sub eax, 3
jae 0x40c3f1
push 4
push esi
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
push eax
push 0x40c2bc
call sub.KERNEL32.DLL_lstrlenA
mov edx, 7
mov eax, 0x44c8ec
mov dword [eax], 0xffffffff
add eax, 4
dec edx
jne 0x40c3d2
push 3
push esi
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
push eax
push 0x40c2f8
call sub.KERNEL32.DLL_lstrlenA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c40e
lea eax, [ebp - 4]
call fcn.00404d70
ret
Function at 0x40c420
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c5f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
mov eax, edi
call fcn.00404d70
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov ecx, 0x40c608
mov edx, 0x1009
call fcn.0040c0e4
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.004088e0
add eax, 0xfffffffd
sub eax, 3
jb 0x40c5c6
mov eax, dword [0x44c8c4]
sub eax, 4
je 0x40c492
add eax, 0xfffffff3
sub eax, 2
jb 0x40c492
xor eax, eax
jmp 0x40c494
mov al, 1
test al, al
je 0x40c4cf
jmp 0x40c4bf
movzx eax, byte [esi + ebx - 1]
sub al, 0x47
je 0x40c4be
sub al, 0x20
je 0x40c4be
lea eax, [ebp - 0xc]
movzx edx, byte [esi + ebx - 1]
call fcn.00404f58
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.0040503c
inc ebx
mov eax, esi
call fcn.00405030
cmp ebx, eax
jle 0x40c49a
jmp 0x40c5d5
mov eax, edi
mov edx, esi
call fcn.00404dc4
jmp 0x40c5d5
movzx eax, byte [esi + ebx - 1]
movzx eax, al
bt dword [0x448808], eax
jae 0x40c51c
mov edx, ebx
mov eax, esi
call fcn.0040d3d4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, esi
call fcn.00405268
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.0040503c
add ebx, dword [ebp - 4]
jmp 0x40c5c6
mov edx, 0x40c60c
lea eax, [esi + ebx - 1]
mov ecx, 2
call fcn.0040919c
test eax, eax
jne 0x40c545
mov eax, edi
mov edx, 0x40c618
call fcn.0040503c
inc ebx
jmp 0x40c5c5
mov edx, 0x40c61c
lea eax, [esi + ebx - 1]
mov ecx, 4
call fcn.0040919c
test eax, eax
jne 0x40c56d
mov eax, edi
mov edx, 0x40c62c
call fcn.0040503c
add ebx, 3
jmp 0x40c5c5
mov edx, 0x40c634
lea eax, [esi + ebx - 1]
mov ecx, 2
call fcn.0040919c
test eax, eax
jne 0x40c593
mov eax, edi
mov edx, 0x40c640
call fcn.0040503c
inc ebx
jmp 0x40c5c5
movzx eax, byte [esi + ebx - 1]
sub al, 0x59
je 0x40c5a0
sub al, 0x20
jne 0x40c5ae
mov eax, edi
mov edx, 0x40c64c
call fcn.0040503c
jmp 0x40c5c5
lea eax, [ebp - 0x14]
movzx edx, byte [esi + ebx - 1]
call fcn.00404f58
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0040503c
inc ebx
mov eax, esi
call fcn.00405030
cmp ebx, eax
jle 0x40c4dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5f7
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404d94
ret
Function at 0x40c7e4
Capabilities:
Read file on windows
Set file attributes

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c65c
mov eax, dword [0x449c88]
cmp byte [eax], 0
je 0x40c860
mov eax, dword [0x449a18]
call fcn.004035bc
call fcn.00403020
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.KERNEL32.DLL_ReadFile
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004090ec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetConsoleCP
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c8a8
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetConsoleCP
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
jmp 0x40c896
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
mov eax, dword [0x4499d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44c7f0]
call fcn.00406284
push eax
call sub.KERNEL32.DLL_SetEvent
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.KERNEL32.DLL_SetFileAttributesA
add esp, 0x444
ret

Function at 0x40d07c
Capabilities:
Get file attributes

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetFileAttributesA
test eax, eax
je 0x40d0e3
mov eax, dword [esp + 0x10]
mov dword [0x4487c0], eax
mov eax, dword [esp + 4]
mov dword [0x4487c4], eax
mov eax, dword [esp + 8]
mov dword [0x4487c8], eax
cmp dword [0x4487c0], 1
jne 0x40d0c7
mov eax, dword [esp + 0xc]
and eax, 0xffff
mov dword [0x4487cc], eax
jmp 0x40d0d0
mov eax, dword [esp + 0xc]
mov dword [0x4487cc], eax
mov eax, 0x4487d0
lea edx, [esp + 0x14]
mov ecx, 0x80
call fcn.00404fe0
add esp, 0x94
ret

Function at 0x40d6d0
Capabilities:
Clear file content
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, 0x44c8c0
mov dword [esi], 0x409
mov dword [esi + 4], 9
mov dword [esi + 8], 1
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x40d6fd
mov dword [esi], eax
test ax, ax
je 0x40d718
mov edx, eax
and dx, 0x3ff
movzx edx, dx
mov dword [esi + 4], edx
movzx eax, ax
shr eax, 0xa
mov dword [esi + 8], eax
push esi
mov esi, 0x40d774
mov edi, 0x448808
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
cmp dword [0x4487c4], 4
jle 0x40d743
cmp dword [0x4487c0], 2
jne 0x40d743
mov byte [esi + 0xd], 1
jmp 0x40d752
push 0x4a
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
setne al
mov byte [esi + 0xd], al
push 0x2a
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
setne bl
mov byte [esi + 0xc], bl
test bl, bl
je 0x40d76c
push ebp
call fcn.0040d674
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret