joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d144
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413f40
cmp edx, dword [eax]
je 0x40d166
add eax, 8
inc ecx
cmp eax, 0x413fd0
jl 0x40d157
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413f40]
jne 0x40d294
mov eax, dword [0x414864]
cmp eax, 1
je 0x40d26e
test eax, eax
jne 0x40d197
cmp dword [0x411b24], 1
je 0x40d26e
cmp edx, 0xfc
je 0x40d294
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d1ce
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d2a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d211
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f668
push edi
call fcn.0040dce0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d2a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d2b0
lea eax, [ebp - 0xa0]
push 0x40f648
push eax
call fcn.0040d2b0
push dword [esi + 0x413f44]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d2b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040dc57
add esp, 0x2c
pop edi
jmp 0x40d294
lea eax, [ebp + 8]
lea esi, [esi + 0x413f44]
push 0
push eax
push dword [esi]
call fcn.00409c70
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 0x404870
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 5
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4048b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00404870
test eax, eax
je 0x404936
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00424040
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 5
jne 0x404914
cmp dword [ebp - 0xa0], 1
jne 0x404914
movzx edx, word [ebp - 0x14]
cmp edx, 2
jge 0x40492f
cmp dword [ebp - 0xa4], 5
jne 0x404926
cmp dword [ebp - 0xa0], 1
ja 0x40492f
cmp dword [ebp - 0xa4], 5
jbe 0x404936
mov eax, 1
jmp 0x404938
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret

Function at 0x4049d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00424040
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jne 0x404a2e
cmp dword [ebp - 0xa0], 0
jne 0x404a2e
mov dword [ebp - 0xac], 1
jmp 0x404a38
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret

Function at 0x404a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.00404870
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop ebp
ret

Function at 0x404a80
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x26
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x404ae1
mov dword [ebp - 4], 0x104
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004055c0
add esp, 0x18
test eax, eax
jne 0x404ae1
push str.c:Program_Files
mov eax, dword [ebp + 8]
push eax
call fcn.004258f0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004059a0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.00404870
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop ebp
ret
Function at 0x404b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
call fcn.00404870
test eax, eax
je 0x404b60
push 1
push 0x23
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x404b70
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404a80
add esp, 4
jmp 0x404b70
pop ebp
ret

Function at 0x405060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4050b3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050a9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4050b5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4051f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret

Function at 0x4052b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405379
mov eax, 1
test eax, eax
je 0x40535b
push 0x104
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.00424040
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x405340
jmp 0x40535b
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004051f0
add esp, 8
test eax, eax
je 0x405359
jmp 0x40535b
jmp 0x4052f7
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004051f0
add esp, 8
jmp 0x40537c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret
Function at 0x405430
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40547e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405474
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x405480
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4055c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405643
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405639
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x405639
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 8]
jb 0x405639
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x405645
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4056b8
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4056ae
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4056ba
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4059a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4059cb
mov eax, 1
jmp 0x405a92
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a5f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4059f8
push 0x5c
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.0040a5f0
add esp, 8
mov dword [ebp - 4], eax
jmp 0x4059ff
xor eax, eax
jmp 0x405a92
cmp dword [ebp - 4], 0
je 0x405a6b
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00402cb0
add esp, 0xc
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
mov byte [ebp + eax - 0x110], 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405a55
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405a55
xor eax, eax
jmp 0x405a92
push 0x5c
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.0040a5f0
add esp, 8
mov dword [ebp - 4], eax
jmp 0x4059ff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405a8d
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405a8d
xor eax, eax
jmp 0x405a92
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret

Function at 0x405b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x405bdf
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425850
add esp, 4
sub eax, 1
mov dword [ebp - 4], eax
jns 0x405bb1
xor eax, eax
jmp 0x405be1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x405bc8
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp + 8]
push edx
call fcn.004059a0
add esp, 4
test eax, eax
je 0x405bdf
mov eax, 1
jmp 0x405be1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4061b0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4061ce
jmp 0x4063e7
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4061dd
jmp 0x4063e7
push 0x103
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00402cb0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call fcn.00425850
add esp, 4
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x40623a
lea ecx, [ebp - 0x110]
push ecx
push 0x437ba0
lea edx, [ebp - 0x360]
push edx
call fcn.00423f46
add esp, 0xc
jmp 0x406255
lea eax, [ebp - 0x110]
push eax
push 0x437ba8
lea ecx, [ebp - 0x360]
push ecx
call fcn.00423f46
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0xffffffff
je 0x4063bb
mov ecx, 1
test ecx, ecx
je 0x4063bb
mov edx, dword [ebp - 0x254]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x4062c0
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x437bb0
lea eax, [ebp - 0x360]
push eax
call fcn.00423f46
add esp, 0x10
jmp 0x4062e2
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x437bb8
lea eax, [ebp - 0x360]
push eax
call fcn.00423f46
add esp, 0x10
mov ecx, dword [ebp - 0x250]
and ecx, 0x10
je 0x406367
push 0x437bc0
lea edx, [ebp - 0x224]
push edx
call fcn.0040a670
add esp, 8
test eax, eax
jne 0x406307
jmp 0x406365
push 0x437bc4
lea eax, [ebp - 0x224]
push eax
call fcn.0040a670
add esp, 8
test eax, eax
jne 0x406321
jmp 0x406365
lea ecx, [ebp - 0x360]
push ecx
call fcn.004061b0
add esp, 4
mov edx, dword [ebp - 0x250]
and edx, 1
jne 0x406346
mov eax, dword [ebp - 0x250]
and eax, 4
je 0x406358
push 0x80
lea ecx, [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40639c
mov eax, dword [ebp - 0x250]
and eax, 1
jne 0x40637d
mov ecx, dword [ebp - 0x250]
and ecx, 4
je 0x40638f
push 0x80
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x364]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063b6
jmp 0x4063bb
jmp 0x40627c
mov eax, dword [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret
Function at 0x406400
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004258f0
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x406445
xor eax, eax
jmp 0x40653a
push 0x128
push 0
lea edx, [ebp - 0x240]
push edx
call fcn.00424040
add esp, 0xc
mov dword [ebp - 0x240], 0x128
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x406490
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40653a
push 0x5c
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a690
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x4064cb
mov ecx, dword [ebp - 0x34c]
add ecx, 1
push ecx
lea edx, [ebp - 0x348]
push edx
call fcn.004258f0
add esp, 8
jmp 0x4064e1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x348]
push ecx
call fcn.004258f0
add esp, 8
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0042b413
add esp, 8
test eax, eax
jne 0x406510
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x40653a
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x114]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406490
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret

Function at 0x4066e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40672a
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40672c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406a10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
je 0x406a3c
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov cl, 0x20
call fcn.00425ec0
mov ecx, dword [ebp - 8]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4078c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43579e
mov eax, dword fs:[0]
push eax
mov eax, 0x35a8
call fcn.00424010
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x35a4]
call fcn.0040cca0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x125c]
call fcn.0040a6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00403600
mov byte [ebp - 4], 2
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x125c]
call fcn.0040a6d0
test eax, eax
jne 0x40794b
mov ecx, dword [ebp + 8]
push ecx
push str.invalid____s
lea edx, [ebp - 0x10]
push edx
call fcn.0040cae0
add esp, 0xc
jmp 0x407a62
push 0
lea eax, [ebp - 0x125c]
push eax
lea ecx, [ebp - 0x35a4]
call fcn.0040cfe0
movzx ecx, al
test ecx, ecx
jne 0x407980
mov edx, dword [ebp + 8]
push edx
push 0x437ca0
lea eax, [ebp - 0x10]
push eax
call fcn.0040cae0
add esp, 0xc
jmp 0x407a62
mov dword [ebp - 0x35a8], 0
mov dword [ebp - 0x35ac], 0
push 0
push 0x80
push 2
call fcn.004018a0
mov ecx, eax
call fcn.00402ba0
push eax
push 1
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x35a8], eax
cmp dword [ebp - 0x35a8], 0xffffffff
jne 0x4079e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0xc]
push edx
push str._s__d_
lea eax, [ebp - 0x10]
push eax
call fcn.0040cae0
add esp, 0x10
jmp 0x407a62
push 0
lea ecx, [ebp - 0x35ac]
push ecx
lea ecx, [ebp - 0x35a4]
call fcn.0040de50
push eax
lea ecx, [ebp - 0x35a4]
call fcn.0040de70
push eax
mov edx, dword [ebp - 0x35a8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x35a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x35b0], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040de10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x125c]
call fcn.00401a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35a4]
call fcn.0040c180
mov eax, dword [ebp - 0x35b0]
jmp 0x407ace
cmp dword [ebp + 0x10], 0
je 0x407a91
cmp dword [ebp + 0x14], 0
jbe 0x407a91
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040c3b0
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.00402cb0
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x14]
mov byte [eax - 1], 0
mov dword [ebp - 0x35b4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040de10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x125c]
call fcn.00401a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35a4]
call fcn.0040c180
mov eax, dword [ebp - 0x35b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret
Function at 0x408970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10028
call fcn.00424010
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
je 0x408ad7
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00406a10
add esp, 4
sub eax, dword [ebp + 0xc]
sbb edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406790
add esp, 0x10
mov ecx, dword [ebp + 0x14]
or ecx, dword [ebp + 0x18]
je 0x4089fa
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp - 0xc]
ja 0x4089fa
jb 0x4089ee
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x4089fa
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
ja 0x408a0a
cmp dword [ebp - 0x10], 0
jbe 0x408ac5
cmp dword [ebp - 0xc], 0
ja 0x408a2f
jb 0x408a1b
cmp dword [ebp - 0x10], 0x10000
jae 0x408a2f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10028], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10024], ecx
jmp 0x408a43
mov dword [ebp - 0x10028], 0x10000
mov dword [ebp - 0x10024], 0
mov edx, dword [ebp - 0x10028]
mov dword [ebp - 0x10020], edx
push 0
lea eax, [ebp - 0x1001c]
push eax
mov ecx, dword [ebp - 0x10020]
push ecx
lea edx, [ebp - 0x10018]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408a82
mov ecx, dword [ebp - 0x1001c]
cmp ecx, dword [ebp - 0x10020]
je 0x408a8b
mov dword [ebp - 4], 0
jmp 0x408ac5
mov edx, dword [ebp - 0x1001c]
push edx
lea eax, [ebp - 0x10018]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004189b0
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1001c]
xor eax, eax
mov ecx, dword [ebp - 0x10]
sub ecx, edx
mov edx, dword [ebp - 0xc]
sbb edx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
jmp 0x4089fa
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00406790
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret