joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4edf30
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe458
push 0x4f2680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x80
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
push 0x80
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
test eax, eax
je 0x4ee012
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax]
push ecx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4ee012
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebx]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4ee00b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4ee012
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebx]
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebx], eax
test eax, eax
je 0x4ee012
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx]
push edx
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4ee012
jmp 0x4edfa8
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004ee03e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ee090
Capabilities:
Identify system language via api
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push str._s_error__n
push 0x530a80
call fcn.004f37ad
add esp, 0xc
lea ecx, [esp + 4]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edx, dword [esp + 0x14]
and eax, 0xffff
push eax
push edx
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4ee0f9
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push 0
push ecx
push eax
push edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
ret

Function at 0x4ee100
Capabilities:
Manipulate user privileges

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
lea ecx, [esp]
push eax
push ecx
call fcn.004edea0
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp]
test eax, eax
push 1
push edx
je 0x4ee137
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call sub.ADVAPI32.dll_LsaAddAccountRights
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call sub.ADVAPI32.dll_LsaRemoveAccountRights
add esp, 8
ret
Function at 0x4efe90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
sub esp, 0x1d4
lea eax, [esp + 0x44]
push ebx
push esi
push eax
push 0x202
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4eff2f
push 0xa14b
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 8]
push 0x10
push ecx
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4eff28
mov edx, dword [esp + 0x1e0]
push edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push 0x34
push eax
push esi
mov dword [esp + 0x2c], edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
pop edi
jle 0x4eff28
mov ebx, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
pop ebx
add esp, 0x1d4
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f8036
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f7c37
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f8057
test byte [esp + 8], 2
je 0x4f8057
mov dword [0xf55a2c], 0xd
mov dword [0xf55a30], 5
jmp 0x4f8032
xor eax, eax
ret
Function at 0x4f8cf7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x531268
cmp edx, dword [eax]
je 0x4f8d19
add eax, 8
inc ecx
cmp eax, 0x5312f8
jl 0x4f8d0a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x531268]
jne 0x4f8e47
mov eax, dword [0xf5594c]
cmp eax, 1
je 0x4f8e21
test eax, eax
jne 0x4f8d4a
cmp dword [0x530cc4], 1
je 0x4f8e21
cmp edx, 0xfc
je 0x4f8e47
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4f8d81
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004f5b90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004f3b40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4f8dc4
lea eax, [ebp - 0x1a4]
push eax
call fcn.004f3b40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4feb1c
push edi
call fcn.004f27c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004f5b90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004f5ba0
lea eax, [ebp - 0xa0]
push 0x4feafc
push eax
call fcn.004f5ba0
push dword [esi + 0x53126c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004f5ba0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004f9fa3
add esp, 0x2c
pop edi
jmp 0x4f8e47
lea eax, [ebp + 8]
lea esi, [esi + 0x53126c]
push 0
push eax
push dword [esi]
call fcn.004f3b40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 4]
push ebx
push eax
push 0x408238
xor ebx, ebx
push 1
push ebx
push 0x408228
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4010fd
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x408218
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jl 0x4010eb
mov eax, dword [ebp - 4]
push esi
push edi
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, 0x40ab80
test eax, eax
jge 0x40106e
push ebx
push edi
push str.SetPath_
push ebx
call esi
mov eax, dword [ebp - 4]
push 0x40a650
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jge 0x40108a
push ebx
push edi
push str.SetWorkingDirectory_
push ebx
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x4010a4
push ebx
push edi
push str.SetDescription_
push ebx
call esi
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x214]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jge 0x4010e0
push ebx
push edi
push 0x409168
push ebx
call esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], ebx
jl 0x4010fd
mov al, 1
jmp 0x4010ff
xor al, al
pop ebx
leave
ret

Function at 0x401102
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
mov dword [esi], ebx
je 0x401177
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x401177
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
add eax, edi
push ebx
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40116c
cmp dword [ebp - 4], ebx
jne 0x40116e
mov dword [esi], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40117c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011bc
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x401212
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401242
push 0x4091c0
push esi
call fcn.004030b0
push esi
push 0x40a130
call fcn.004030b0
add esp, 0x10
jmp 0x40124f
push esi
push 0x40a130
call fcn.004030b0
pop ecx
pop ecx
push esi
call fcn.004011ca
push dword [esp + 0x10]
push esi
call fcn.004030c0
push dword [esp + 0x1c]
push esi
call fcn.004030c0
add esp, 0x14
pop esi
ret

Function at 0x40126e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
lea eax, [ebp - 0x104]
push edi
push eax
push dword [ebp + 8]
call sub.LZ32.dll_GetExpandedNameA
lea eax, [ebp - 0x214]
push 0x10
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
test esi, esi
jge 0x4012ab
push 0x10
push 0x4091d4
push dword [ebp + 8]
jmp 0x4012d7
lea eax, [ebp - 0x18c]
push 0x1000
push eax
lea eax, [ebp - 0x104]
push eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x4012e5
push 0x10
lea eax, [ebp - 0x104]
push 0x4091c4
push eax
push dword [0x409e20]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012f8
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
pop edi
pop esi
leave
ret

Function at 0x4012fc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4013aa
mov esi, dword [ebp + 0xc]
mov eax, esi
sub eax, edi
je 0x4013aa
add edi, 0x18
push ebx
push edi
mov ebx, edi
call fcn.004031a0
lea edi, [edi + eax + 1]
push ebx
lea eax, [ebp - 0x104]
push 0x40a234
push eax
call fcn.004011ec
lea eax, [ebp - 0x104]
push eax
call fcn.004031a0
add esp, 0x14
cmp byte [ebp + eax - 0x105], 0x5f
pop ebx
jne 0x401389
sub esi, edi
lea eax, [ebp - 0x104]
push esi
push edi
push eax
call fcn.0040117c
lea eax, [ebp - 0x104]
push eax
call fcn.0040126e
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4013aa
cmp byte [ebp + 0x14], 0
jne 0x401396
sub esi, edi
sub esi, 7
jmp 0x401399
sub esi, edi
dec esi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0040117c
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x401461
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov al, byte [0x40ab80]
push esi
push edi
push 0x40
mov byte [ebp - 0x154], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x40a548
push esi
stosb byte es:[edi], al
call fcn.004031a0
xor edi, edi
pop ecx
cmp eax, edi
je 0x40157c
lea eax, [eax + 0x40a544]
push str..exe
push eax
call fcn.00403220
pop ecx
pop ecx
test eax, eax
push esi
jne 0x4014bc
push 0x40924c
jmp 0x4014c1
push 0x409224
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28c]
push 0x44
push 0x409210
push eax
push dword [0x409e20]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40157c
push esi
lea eax, [ebp - 0x154]
push 0x40a650
push eax
call fcn.004011ec
add esp, 0xc
lea eax, [ebp - 0x154]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push 1
mov dword [ebp - 0x3c], 0x3c
pop esi
mov dword [ebp - 0x38], 0x40
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x409208
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401578
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x50]
push 0x409204
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x40
push eax
push 0x4091ec
push dword [0x409e20]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40157f
mov eax, esi
jmp 0x40157f
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x401583
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push 0x409280
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015c3
xor eax, eax
jmp 0x40160e
test byte [ebp - 0x244], 0x17
jne 0x4015f2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.004011ec
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4015c3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
pop esi
leave
ret
Function at 0x401902
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dl, byte [0x40ab80]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call fcn.004032b0
lea eax, [ebp - 0x208]
lea esi, [ebp - 0x208]
push eax
lea edi, [ebp - 0x104]
call fcn.004031a0
add esp, 0x10
mov ebx, eax
test ebx, ebx
jle 0x401acf
mov al, byte [esi]
cmp al, 0x5c
je 0x40198a
test ebx, ebx
je 0x401992
mov byte [edi], al
inc esi
inc edi
dec ebx
jmp 0x401979
test ebx, ebx
jl 0x401ac5
mov al, byte [esi]
inc esi
mov byte [edi], al
and byte [edi + 1], 0
inc edi
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x104]
push eax
push 0x4092e4
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092e0
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092dc
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092d8
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092d4
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092d0
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092cc
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092c8
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092c4
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
lea eax, [ebp - 0x104]
push eax
push 0x4092c0
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401ac5
cmp dword [ebp + 8], 0x50
je 0x401ac5
cmp dword [ebp + 8], 0xb7
jne 0x401acb
dec ebx
jmp 0x401971
xor al, al
jmp 0x401ad1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c48
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push 0x409280
push dword [ebp + 8]
lea eax, [ebp - 0x258]
push eax
call fcn.004011ec
add esp, 0xc
lea eax, [ebp - 0x150]
fldz
push eax
lea eax, [ebp - 0x258]
fstp qword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
jne 0x401c90
fld qword [0x408208]
jmp 0x401ccb
test byte [ebp - 0x150], 0x10
jne 0x401caf
mov eax, dword [ebp - 0x130]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
fild qword [ebp - 0x10]
fadd qword [ebp - 8]
fstp qword [ebp - 8]
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
fld qword [ebp - 8]
pop esi
leave
ret
Function at 0x401cce
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x3ef
push dword [0x409e20]
call esi
push 0x3ee
mov dword [ebp - 0x2c], eax
push dword [0x409e20]
call esi
push 0x3f0
mov dword [ebp - 0x28], eax
push dword [0x409e20]
call esi
push 1
mov dword [ebp - 0x10], eax
push dword [0x409e20]
call esi
mov dword [ebp - 0xc], eax
mov al, byte [0x40ab80]
mov byte [ebp - 8], al
xor eax, eax
lea edi, [ebp - 7]
push 3
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push 0x40a650
push eax
call fcn.004032b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x401d6c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
jmp 0x401d6f
mov ebx, dword [ebp - 0x14]
imul ebx, dword [ebp - 0x1c]
imul ebx, dword [ebp - 0x18]
push 0x40a234
shr ebx, 0xa
call fcn.00401c48
fcom qword [0x408208]
pop ecx
fnstsw ax
sahf
jne 0x401dbd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x90]
push 0x40933c
push eax
fstp st(0)
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x401e39
fmul qword [0x408210]
call fcn.00403638
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0x90]
push str._lu__
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x28]
call esi
push ebx
lea eax, [ebp - 0x90]
push str._lu__
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x2c]
call esi
sub ebx, dword [ebp - 0x24]
jns 0x401e3d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x90]
push 0x4092e8
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x10]
call esi
push 0
jmp 0x401e49
push 0x40ab80
push dword [ebp - 0x10]
call esi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e57
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push edi
mov edi, 0x40a234
push 0x409280
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004011ec
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401e9e
xor al, al
jmp 0x401f98
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x244], 0x17
jne 0x401f78
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.004030b0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push 0x40a650
push eax
call fcn.004011ec
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x44c]
push edi
push eax
call fcn.004011ec
add esp, 0x20
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401f28
lea eax, [ebp - 0x218]
push 0x40
push eax
push 0x409390
push dword [0x409e20]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x348]
push str.PROGINFO.DAT
push eax
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401f6d
lea eax, [ebp - 0x348]
push str.FILELIST.DAT
push eax
call fcn.00403220
pop ecx
test eax, eax
pop ecx
je 0x401f6d
lea eax, [ebp - 0x348]
push str.SHORTCUT.DAT
push eax
call fcn.00403220
pop ecx
test eax, eax
pop ecx
jne 0x401f78
lea eax, [ebp - 0x104]
push 3
push eax
call esi
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401ea5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
pop edi
pop ebx
leave
ret
Function at 0x402db2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
mov dword [0x40a338], esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x7f00
push ebx
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x402ecb
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
mov edi, str.back
push eax
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push ebx
push 1
call esi
push eax
push ebx
call esi
push eax
push ebx
push ebx
push 0x80000000
push ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, ebx
je 0x402ec2
mov edi, 0x40a33c
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x402e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x11
push str.C:Program_Files
push edi
call fcn.004032b0
add esp, 0xc
lea eax, [ebp - 0xc4]
mov byte [0x40a33f], bl
push eax
mov dword [ebp - 0xc4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test byte [ebp - 0xb4], 2
je 0x402e9c
mov byte [0x40ab7c], 1
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0x402974
push esi
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10