joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f80
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
jne 0x40a026
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.004401c0
add esp, 0xc
push 1
push 0x26
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.RisingRfw
lea ecx, [ebp - 0x110]
push ecx
call fcn.00442400
add esp, 8
lea edx, [ebp - 0x110]
push edx
call fcn.00440430
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x148]
add ecx, 0x38
call fcn.004016b0
mov edx, dword [ebp - 0x148]
add edx, 0x38
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x18], 0x10
jb 0x40a052
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14c], edx
jmp 0x40a061
mov eax, dword [ebp - 0x144]
add eax, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret

Function at 0x40a0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004401c0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40a12d
push 0x104
push str.C:Temp
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.00440418
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40a164
mov ecx, dword [ebp - 0x114]
movsx edx, byte [ecx + 1]
test edx, edx
jne 0x40a164
mov eax, dword [ebp - 0x114]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x40a185
push 0x104
push str.RsdSfxTmpAll
lea ecx, [ebp - 0x110]
push ecx
call fcn.004430e6
add esp, 0xc
jmp 0x40a19e
push 0x104
push str.RsdSfxTmp
lea edx, [ebp - 0x110]
push edx
call fcn.004430e6
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
call fcn.004015b0
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40acb6
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x40acb6
mov eax, 1
jmp 0x40acb8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40acc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40acda
xor eax, eax
jmp 0x40acdf
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40acf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004401c0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp + 0xc], 0
je 0x40ad4b
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40ad4b
push 0x45842c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
push eax
push str.RunApp_lpAppName_s
call fcn.00407f90
add esp, 8
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40adaf
push str.CreateProcess_success
call fcn.00407f90
add esp, 4
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
jmp 0x40adcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.appname___s_Error_Code__d
call fcn.00407f90
add esp, 0xc
mov eax, 0x2719
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ae30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453388
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x465b00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x20]
call fcn.0040b180
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x20]
call fcn.0040b880
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.0040b910
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
ja 0x40aeda
push 0x458454
call fcn.00407f90
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a90
mov eax, dword [ebp - 0x28]
jmp 0x40b02b
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043ff28
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x64]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40af3e
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00410730
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a90
mov eax, dword [ebp - 0x34]
jmp 0x40b02b
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x457bd0
mov edx, dword [ebp - 0x18]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40af96
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00410730
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a90
mov eax, dword [ebp - 0x3c]
jmp 0x40b02b
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._02u._02u._02u._02u
mov edx, dword [ebp - 0x74]
add edx, 0x34
push edx
call fcn.0040bca0
add esp, 0x18
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x34]
push ecx
push str.NEW_Version__s
call fcn.00407f90
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00410730
add esp, 4
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404a90
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b0e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa4], ecx
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.004401c0
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
ja 0x40b14d
cmp dword [ebp - 0x9c], 5
jne 0x40b141
cmp dword [ebp - 0x98], 1
jae 0x40b14d
mov dword [ebp - 0xa8], 0
jmp 0x40b157
mov dword [ebp - 0xa8], 1
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x40b16c
xor eax, eax
jmp 0x40b171
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret
Function at 0x40c730
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.004401c0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40c774
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x40c77c
or eax, 0xffffffff
jmp 0x40c8cd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x209
jbe 0x40c797
mov eax, 0x6f
jmp 0x40c8cd
mov eax, dword [ebp + 8]
push eax
push str._s.
push 0x209
lea ecx, [ebp - 0x218]
push ecx
call fcn.00406d50
add esp, 0x10
mov dword [ebp - 0x360], 0
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffffff
jne 0x40c7e8
xor eax, eax
jmp 0x40c8cd
cmp dword [ebp - 0x360], 0
jne 0x40c8b4
push 0x457f40
lea ecx, [ebp - 0x32c]
push ecx
call fcn.00442e30
add esp, 8
test eax, eax
je 0x40c882
push 0x457f3c
lea edx, [ebp - 0x32c]
push edx
call fcn.00442e30
add esp, 8
test eax, eax
je 0x40c882
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
push 0x209
lea edx, [ebp - 0x218]
push edx
call fcn.00406d50
add esp, 0x14
cmp dword [ebp - 0x358], 0x10
jne 0x40c863
lea eax, [ebp - 0x218]
push eax
call fcn.0040c730
add esp, 4
jmp 0x40c882
push 0x80
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c8af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40c8af
mov dword [ebp - 0x360], 1
jmp 0x40c7e8
mov edx, dword [ebp - 0x35c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret
Function at 0x40c8e0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.ChoiceTempDir...
call fcn.00407f90
add esp, 4
push 0x5671e0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40c91a
push 0x104
push str.C:Temp
push 0x5671e0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5671e0
call fcn.0040cae0
add esp, 4
test eax, eax
jne 0x40c956
push 0x5671e0
call fcn.0040ca40
add esp, 4
push 0
push 0x5671e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c956
cmp dword [ebp + 8], 0
jne 0x40c956
xor eax, eax
jmp 0x40ca35
push 0x5c
push 0x5671e0
call fcn.00440418
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c97f
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 1]
test ecx, ecx
jne 0x40c97f
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp + 0xc], 0
je 0x40c99e
push 0x104
push str.RsdSfxTmpAll
push 0x5671e0
call fcn.004430e6
add esp, 0xc
jmp 0x40c9b5
push 0x104
push str.RsdSfxTmp
push 0x5671e0
call fcn.004430e6
add esp, 0xc
push 0x5671e0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c9ed
push 0x5671e0
call fcn.0040c730
add esp, 4
push 0x80
push 0x5671e0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5671e0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5671e0
call fcn.0040ca40
add esp, 4
push 0
push 0x5671e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x5671e0
call fcn.0040cae0
add esp, 4
test eax, eax
jne 0x40ca30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._error_line_160_DirExist_Failed_Error_code__d
call fcn.00407f90
add esp, 8
xor eax, eax
jmp 0x40ca35
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40ca40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x110], 0
push 0x104
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004401c0
add esp, 0xc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.00442733
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40cad1
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 4]
mov byte [eax], 0x5c
push 0x5c
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.00442733
add esp, 8
mov dword [ebp - 4], eax
jmp 0x40ca9a
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40cb06
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x40cb06
mov eax, 1
jmp 0x40cb08
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40cb10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x40cb40
or eax, 0xffffffff
jmp 0x40cbcc
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 8]
jbe 0x40cb5c
or eax, 0xffffffff
jmp 0x40cbcc
mov dword [ebp - 0x10], 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 0x100000
push 0x4671d8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cbbf
cmp dword [ebp - 4], 0
ja 0x40cb9b
jmp 0x40cbbf
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x4671d8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x40cb75
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40cbd0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x100000
push 0x4671d8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cc0c
or eax, 0xffffffff
jmp 0x40cccf
mov dword [ebp - 0x1c], 0x4671d8
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40cc29
or eax, 0xffffffff
jmp 0x40cccf
mov edx, dword [0x467214]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4671d8], 0x4550
je 0x40cc49
or eax, 0xffffffff
jmp 0x40cccf
mov ecx, dword [ebp - 0x14]
add ecx, 0x4671dc
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 0xe0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
xor ecx, ecx
mov word [ebp - 0x20], cx
jmp 0x40cc84
mov dx, word [ebp - 0x20]
add dx, 1
mov word [ebp - 0x20], dx
movsx eax, word [ebp - 0x20]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
cmp eax, edx
jge 0x40ccbb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
jbe 0x40ccb0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x28
mov dword [ebp - 0x10], edx
jmp 0x40cc78
mov eax, dword [ebp - 0xc]
push eax
push str.GetPEsiez__d
call fcn.00407f90
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x410500
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x410518
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x41056b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x410539
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x41055c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x410530
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x5683c0], eax
jmp 0x41050f
jmp 0x410576
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x4105ae
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x567fc0]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x5683c0]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x5683c0], edx
jmp 0x41056d
mov dword [0x56772c], fcn.004105d0
call fcn.004112e0
test eax, eax
jne 0x4105cb
mov dword [0x56772c], 0x4106e0
mov esp, ebp
pop ebp
ret
Function at 0x417090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.00443b24
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00417010
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x417ef0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [0x467050]
test eax, eax
jne 0x417f4b
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00417640
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00410730
add esp, 4
cmp dword [ebp - 4], 0
je 0x417f49
mov al, 1
jmp 0x417f63
jmp 0x417f61
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x417f61
mov al, 1
jmp 0x417f63
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x417f70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [0x467050]
test eax, eax
jne 0x417fc9
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00417640
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00410730
add esp, 4
cmp dword [ebp - 4], 0
je 0x417fc7
mov al, 1
jmp 0x417fdf
jmp 0x417fdd
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x417fdd
mov al, 1
jmp 0x417fdf
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x418610
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00417ef0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x41862f
xor al, al
jmp 0x418694
movzx edx, byte [0x467050]
test edx, edx
jne 0x418680
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00417640
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00410730
add esp, 4
cmp dword [ebp - 4], 0
je 0x41867e
mov al, 1
jmp 0x418694
jmp 0x418692
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418692
mov al, 1
jmp 0x418694
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x418ed0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x418f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418f01
xor al, al
jmp 0x418f20
mov eax, dword [ebp - 8]
xor edx, edx
mov cl, 0x20
call fcn.004436b0
mov ecx, dword [ebp - 4]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x419050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
xor edx, edx
cmp dword [ebp - 0xc], 0
setne dl
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4191a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x46452c]
jbe 0x4191bd
mov ecx, dword [0x46452c]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp - 0xc], 0
setne cl
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419200
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret