joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea ecx, [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004052f5
add esp, 0x108
ret

Function at 0x401080
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x24c], eax
mov eax, dword [esp + 0x254]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edi, [esp + 0x150]
call fcn.00404d50
push 0x414ba8
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010e6
xor al, al
jmp 0x40112e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor bl, bl
push 0x414bac
lea ecx, [esp + 0x40]
push ecx
call esi
test eax, eax
je 0x401116
push 0x414bb0
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
je 0x401116
mov bl, 1
lea eax, [esp + 0x10]
push eax
push edi
call ebp
test eax, eax
jne 0x4010f4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
sete al
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004052f5
add esp, 0x250
ret

Function at 0x401150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x104], eax
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4011b7
push 0x418d28
push 0
push 0x414bb4
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4011b7
push 0x414bb8
push 0x418d28
push 0x418e40
call fcn.0040557c
add esp, 0xc
test eax, eax
je 0x4011b7
mov dword [0x418e40], 0
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004052f5
add esp, 0x108
ret
Function at 0x401240
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, dword [0x418e40]
test eax, eax
je 0x401326
push ebp
push esi
push edi
push eax
call fcn.004058a6
mov ebp, eax
mov eax, dword [0x418e40]
push eax
call fcn.00405914
lea edi, [ebp + 1]
push edi
call fcn.0040522d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401283
push edi
push 0
push esi
call fcn.00409ae0
add esp, 0xc
jmp 0x401285
xor esi, esi
mov ecx, dword [0x418e40]
push ecx
push ebp
push 1
push esi
call fcn.00405c75
mov edx, dword [0x418e40]
push edx
call fcn.00405d02
add esp, 0x14
push 0x418d28
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00404b80
test eax, eax
jne 0x4012fb
cmp ebp, 0x7fff
jle 0x4012fb
push 0xd
push esi
mov byte [esi + 0x7ef4], al
call fcn.00405e3e
mov edi, eax
add esp, 8
test edi, edi
je 0x4012fb
mov eax, dword [0x418e38]
push 0x100
push 0x418c28
push 0xf
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x418c28
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x418e34]
push esi
push 0x3ed
mov dword [0x418e40], 0
push ecx
mov byte [esi + ebp], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
ret

Function at 0x401330
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4126f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x417050]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push edi
push 0x104
lea eax, [ebp + 0x104]
push eax
call fcn.00405453
add esp, 0xc
lea eax, [ebp + 0x104]
call fcn.00404c90
lea esi, [ebp + 0x104]
call fcn.00404d00
lea ecx, [ebp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, esi
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [ebp]
push eax
call ebx
test esi, esi
je 0x40142e
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40141e
mov dword [ebp - 4], 0
call eax
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x401433
mov edi, 0x8000ffff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x401433
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004052f5
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x401460
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x138]
push esi
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4014b7
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004052f5
add esp, 0x128
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x104
call esi
cmp eax, 0x103
je 0x401533
lea ebx, [ebx]
test eax, eax
jne 0x401533
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00401460
add esp, 8
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x104
call esi
cmp eax, 0x103
jne 0x4014f0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x12c]
pop esi
neg eax
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
and eax, 2
call fcn.004052f5
add esp, 0x128
ret
Function at 0x4015f0
Capabilities:
Delete directory
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x420], eax
cmp byte [esp + 0x428], 0
je 0x401637
lea eax, [esp]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x40163f
xor al, al
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004052f5
add esp, 0x424
ret
lea ecx, [esp]
push ecx
push 2
jmp 0x401614
mov eax, dword [esp]
lea edx, [esp + 0x31c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x401620
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x324]
push ecx
lea edx, [esp + 0x224]
push edx
call esi
lea edi, [esp + 0x220]
call fcn.00404d50
push ebx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov byte [esp + 0x130], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [sym.imp.COMDLG32.dll_GetFileTitleA]
jne 0x401715
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Startup
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x124]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x120]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x228]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x4017d0
push 0x414c28
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x4017d0
push 0x414c34
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x4017d0
push str.Startup
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x4017d0
push 0x414c44
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x4017d0
push str.Start_Up
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x4017d0
push 0x414c5c
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x4017d0
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004052f5
add esp, 0x424
ret
mov ecx, dword [esp + 0x428]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004052f5
add esp, 0x424
ret
Function at 0x401bd0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x250
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
mov esi, dword [esp + 0x260]
push edi
push esi
lea eax, [esp + 0x154]
push str._s.
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401c29
xor al, al
jmp 0x401cb6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
nop
push 0x414bac
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x401c8e
push 0x414bb0
lea ecx, [esp + 0x40]
push ecx
call edi
test eax, eax
je 0x401c8e
lea edx, [esp + 0x3c]
push edx
push esi
lea eax, [esp + 0x158]
push 0x414cc8
push eax
call ebp
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x401c7e
lea ecx, [esp + 0x150]
push ecx
call fcn.00401bd0
jmp 0x401c8b
lea edx, [esp + 0x150]
push edx
call fcn.004017f0
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c30
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push esi
call fcn.00401cd0
add esp, 8
neg al
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004052f5
add esp, 0x250
ret

Function at 0x401cd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp byte [ebp + 0xc], bl
push esi
je 0x401cef
call fcn.00401bd0
add esp, 4
mov bl, al
jmp 0x401d07
call fcn.00401080
add esp, 4
test al, al
je 0x401d25
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
test bl, bl
jne 0x401d25
cmp byte [0x418e30], bl
je 0x401d25
call fcn.00401e90
mov bl, al
test bl, bl
je 0x401d25
mov byte [0x418e2f], 1
mov ecx, esi
call fcn.00401020
test eax, eax
jne 0x401d3c
push eax
push esi
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
ret
sub esp, 0x3d8
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x3d4], eax
push ebx
push ebp
push esi
push edi
push 0x7fff
mov edi, ecx
call fcn.0040522d
mov esi, eax
add esp, 4
test esi, esi
je 0x401daf
push 0x7fff
push 0
push esi
call fcn.00409ae0
add esp, 0xc
jmp 0x401db1
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.NUL
lea eax, [esp + 0x118]
push eax
call ebx
push 0x168
lea ecx, [esp + 0x280]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x27c]
push edx
lea eax, [esp + 0x118]
push eax
call ebp
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
call fcn.00404d50
push str.WININIT.INI
mov edx, edi
push edx
call ebp
mov eax, edi
push eax
push 0x7fff
push esi
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [edi + esi]
push edx
call ebx
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
push esi
add eax, edi
push str.Rename
mov byte [eax + esi + 1], 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
push esi
setne bl
call fcn.00405e51
mov ecx, dword [esp + 0x3e8]
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004052f5
add esp, 0x3d8
ret
call fcn.00404b80
test eax, eax
je 0x401ea0
mov eax, esi
jmp 0x401d50
mov ecx, esi
jmp 0x401d70
Function at 0x401e90
Capabilities:
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
ret
sub esp, 0x3d8
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x3d4], eax
push ebx
push ebp
push esi
push edi
push 0x7fff
mov edi, ecx
call fcn.0040522d
mov esi, eax
add esp, 4
test esi, esi
je 0x401daf
push 0x7fff
push 0
push esi
call fcn.00409ae0
add esp, 0xc
jmp 0x401db1
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.NUL
lea eax, [esp + 0x118]
push eax
call ebx
push 0x168
lea ecx, [esp + 0x280]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x27c]
push edx
lea eax, [esp + 0x118]
push eax
call ebp
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
call fcn.00404d50
push str.WININIT.INI
mov edx, edi
push edx
call ebp
mov eax, edi
push eax
push 0x7fff
push esi
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [edi + esi]
push edx
call ebx
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
push esi
add eax, edi
push str.Rename
mov byte [eax + esi + 1], 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
push esi
setne bl
call fcn.00405e51
mov ecx, dword [esp + 0x3e8]
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004052f5
add esp, 0x3d8
ret
call fcn.00404b80
test eax, eax
je 0x401ea0
mov eax, esi
jmp 0x401d50
mov ecx, esi
jmp 0x401d70

Function at 0x401f30
Capabilities:
Shutdown system

Disassembly:
push ecx
call fcn.00404b80
test eax, eax
je 0x401f61
mov eax, 1
call fcn.00401eb0
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401f56
xor al, al
pop ecx
ret
xor eax, eax
call fcn.00401eb0
mov al, 1
pop ecx
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x401f52
mov al, 1
pop ecx
ret
Function at 0x404d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404da6
test al, 0x10
jne 0x404da6
mov eax, 1
ret
xor eax, eax
ret

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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404e73
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004052f5
add esp, 0x10c
ret
push ebp
mov ecx, esi
call fcn.00404f10
mov ebp, eax
test ebp, ebp
jne 0x404ea1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004052f5
add esp, 0x10c
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
sub edi, ebp
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x404eca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x404ee8
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, ebx
mov ecx, dword [esp + 0x118]
pop edi
pop ebx
pop ebp
pop esi
xor ecx, esp
call fcn.004052f5
add esp, 0x10c
ret
Function at 0x404f10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x74
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
push 0x414f7c
lea eax, [esp + 0x1c]
mov edi, ecx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x414e74
lea ecx, [esp + 0x1c]
push ecx
call esi
push 0x414f80
lea edx, [esp + 0x1c]
push edx
call esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [esp + 0x18]
push eax
call ebx
cmp esi, eax
ja 0x404f8d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004052f5
add esp, 0x74
ret
push ebp
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x404fb0
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004052f5
add esp, 0x74
ret
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405025
lea edx, [esp + 0x1c]
push edx
xor edi, edi
call ebx
sub esi, eax
je 0x405029
lea esp, [esp]
lea eax, [esp + 0x1c]
push eax
call ebx
push eax
lea ecx, [edi + ebp]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040667b
add esp, 0xc
test eax, eax
je 0x405009
sub esi, 1
add edi, 1
test esi, esi
jne 0x404fe0
jmp 0x405029
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 1
call ebx
push 0x414bc0
add edi, eax
call ebx
add edi, eax
jmp 0x405029
mov edi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
neg eax
sbb eax, eax
pop ebp
and eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004052f5
add esp, 0x74
ret

Function at 0x4052f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417050]
jne 0x4052ff
repz ret
jmp fcn.00406fb5
Function at 0x4059d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x405a16
cmp dword [ebp + 0x14], edi
je 0x405a16
cmp ecx, edi
jne 0x405a1d
call fcn.00408273
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00408214
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x405a31
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x405a52
cmp ebx, 0xffffffff
je 0x405a41
push ebx
push edi
push ecx
call fcn.00409ae0
add esp, 0xc
cmp esi, edi
je 0x4059fe
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4059fe
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x405a6e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x405a75
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x405b66
test word [esi + 0xc], 0x10c
je 0x405ac9
mov eax, dword [esi + 4]
test eax, eax
je 0x405ac9
jl 0x405bc7
cmp ebx, eax
mov edi, ebx
jb 0x405a9a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x405b6e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00405f1e
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x405b5e
cmp ebx, dword [ebp - 0xc]
jb 0x405b36
cmp dword [ebp - 0xc], 0
je 0x405af3
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x405ae8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x405aef
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x405afe
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x405afe
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x405b9a
push eax
push dword [ebp - 8]
push esi
call fcn.00408ff3
pop ecx
push eax
call fcn.004099d6
add esp, 0xc
test eax, eax
je 0x405bd9
cmp eax, 0xffffffff
je 0x405bc7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x405b5e
push esi
call fcn.004092f5
cmp eax, 0xffffffff
pop ecx
je 0x405bcb
cmp dword [ebp - 4], 0
je 0x405b9a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x405a7d
mov eax, dword [ebp + 0x14]
jmp 0x405a18
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x405b85
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00409ae0
add esp, 0xc
call fcn.00408273
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x405a0e
cmp dword [ebp + 0xc], 0xffffffff
je 0x405bb0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00409ae0
add esp, 0xc
call fcn.00408273
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x405a0e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x405a18
or dword [esi + 0xc], 0x10
jmp 0x405bcb
Function at 0x40b854
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 + 0x417ce8]
je 0x40b86f
inc edi
cmp edi, 0x17
jb 0x40b860
cmp edi, 0x17
jae 0x40b9ef
push ebp
push 3
call fcn.0041129c
cmp eax, 1
pop ecx
je 0x40b9bb
push 3
call fcn.0041129c
test eax, eax
pop ecx
jne 0x40b8a3
cmp dword [0x41704c], 1
je 0x40b9bb
cmp ebx, 0xfc
je 0x40b9ee
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4186b0
push ebp
call fcn.00405453
add esp, 0xc
test eax, eax
je 0x40b8d9
push esi
push esi
push esi
push esi
push esi
call fcn.00408118
add esp, 0x14
push 0x104
mov esi, 0x4186c9
push esi
push 0
mov byte [0x4187cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b91d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00405453
add esp, 0xc
test eax, eax
je 0x40b91d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408118
add esp, 0x14
push esi
call fcn.00406ab0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b962
push esi
call fcn.00406ab0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4189c4
push 0x413a0c
sub ecx, eax
push ecx
push eax
call fcn.0040eb76
add esp, 0x14
test eax, eax
je 0x40b962
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00408118
add esp, 0x14
jmp 0x40b964
xor esi, esi
push 0x413a08
push ebx
push ebp
call fcn.0040eab8
add esp, 0xc
test eax, eax
je 0x40b984
push esi
push esi
push esi
push esi
push esi
call fcn.00408118
add esp, 0x14
push dword [edi*8 + 0x417cec]
push ebx
push ebp
call fcn.0040eab8
add esp, 0xc
test eax, eax
je 0x40b9a6
push esi
push esi
push esi
push esi
push esi
call fcn.00408118
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004110df
add esp, 0xc
jmp 0x40b9ee
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40b9ee
cmp ebp, 0xffffffff
je 0x40b9ee
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x417cec]
push dword [esi]
call fcn.00406ab0
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