joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059d0
Capabilities:
Create process on windows
Delete directory
Delete file

Disassembly:
sub esp, 0x468
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 1
xor esi, esi
jmp 0x4059f0
mov eax, dword [esi + 0x419a08]
mov ecx, 0x41aa48
call fcn.00405ce0
test eax, eax
jne 0x405a08
mov dword [esp + 0x10], edi
add esi, 4
cmp esi, 0xc
jb 0x4059f0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str.Data
mov ebx, 5
push 0x41aa48
lea eax, [esp + 0x6c]
push eax
call ebp
push edi
lea ecx, [esp + 0x6c]
push ecx
call esi
push 0x416ae8
lea edx, [esp + 0x6c]
push edx
call esi
lea eax, [esp + 0x68]
push 1
push eax
call fcn.00405e00
add esp, 8
test eax, eax
jne 0x405a5d
mov dword [esp + 0x10], eax
add edi, 0x108
dec ebx
jne 0x405a26
push 0x41aa48
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a79
mov dword [esp + 0x10], eax
lea edi, [esp + 0x68]
call fcn.00403400
test eax, eax
je 0x405a9d
push str.Data_
mov ecx, edi
push ecx
call esi
mov edx, edi
push 0
push edx
call fcn.00405e00
add esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0x6c]
push eax
call ebp
push 0x416b2c
lea ecx, [esp + 0x6c]
push ecx
call esi
lea edx, [esp + 0x68]
push edx
push 0x80000002
call fcn.00405c00
push 7
lea ebx, [esp + 0x178]
call fcn.00402be0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
mov eax, ebx
push eax
call edi
push 0x10
lea ebx, [esp + 0x170]
call fcn.00402be0
add esp, 4
mov ecx, ebx
push ecx
call edi
mov eax, dword [0x420b98]
xor ebx, ebx
cmp eax, ebx
jne 0x405b3d
lea edx, [esp + 0x16c]
push edx
mov dword [esp + 0x170], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405b38
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x174]
imul eax, eax, 0x64
add eax, ecx
mov dword [0x420b98], eax
jmp 0x405b3d
mov eax, dword [0x420b98]
cmp eax, 0x258
jb 0x405be9
push str.SCHTASKS
lea eax, [esp + 0x274]
push eax
call ebp
push str.__Delete__TN__CLaunch___F
lea ecx, [esp + 0x274]
push ecx
call esi
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push 0x400
xor edx, edx
push ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push ebx
mov dword [esp + 0x3c], edx
push ebx
lea edx, [esp + 0x290]
push edx
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405bce
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x405be9
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret
Function at 0x405c00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [esp + 0x210]
push ebp
mov ebp, dword [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor esi, esi
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405cc1
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x100
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x124], al
call edi
test eax, eax
jne 0x405cb5
jmp 0x405c60
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405c9e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00405c00
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x405c9f
inc esi
mov ecx, dword [esp + 0x10]
push 0x100
lea eax, [esp + 0x18]
push eax
push esi
push ecx
call edi
test eax, eax
je 0x405c60
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop ebp
pop ebx
add esp, 0x204
ret

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

Disassembly:
sub esp, 0x410
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405d0d
mov eax, 1
add esp, 0x410
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x405d2b
push 0x80
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
jne 0x405df4
lea ecx, [esp + 4]
push ecx
call fcn.00403d80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x405df4
mov eax, dword [0x41afc0]
test eax, eax
jne 0x405d66
mov eax, dword [0x41ae60]
push esi
push edi
push 0x104
lea edx, [esp + 0x114]
push edx
push 0x395
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x41b390]
add esp, 0xc
xor esi, esi
test eax, eax
je 0x405dae
mov esi, eax
jmp 0x405dc4
mov eax, dword [0x41ae64]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x405dc4
mov esi, dword [0x41ae64]
mov ecx, dword [0x41ae64]
mov edi, dword [0x41b390]
push 0x10
push 0x416b2c
lea edx, [esp + 0x21c]
push edx
push esi
mov dword [0x41b390], ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x41b390], edi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x410
ret
Function at 0x406290
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
push ebx
push ebp
mov ebp, dword [esp + 0xac]
mov ebx, eax
mov eax, dword [0x420b98]
test eax, eax
push edi
mov edi, 1
jne 0x4062e0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4062db
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x64
add eax, ecx
mov dword [0x420b98], eax
jmp 0x4062e0
mov eax, dword [0x420b98]
cmp eax, 0x1f4
jb 0x406329
push str.SHGetFolderPathA
push str.shell32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je case.default.0x40633a
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push ebx
push ecx
mov ecx, dword [esp + 0xb4]
push edx
push ebp
push ecx
call eax
mov edi, eax
jmp case.default.0x40633a
cmp ebp, 0x27
ja case.default.0x40633a
movzx edx, byte [ebp + 0x406458]
push esi
jmp dword [edx*4 + 0x406424]
mov esi, str.Desktop
jmp 0x406393
mov esi, str.Personal
jmp 0x406393
mov esi, str.My_Pictures
jmp 0x406393
mov esi, str.My_Music
jmp 0x406393
mov esi, str.My_Video
jmp 0x406393
mov esi, str.Favorites
jmp 0x406393
mov esi, str.Recent
jmp 0x406393
mov esi, str.History
jmp 0x406393
mov esi, str.SendTo
jmp 0x406393
mov esi, str.Start_Menu
jmp 0x406393
mov esi, str.Programs
jmp 0x406393
mov esi, str.Startup
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.0x40633a.12
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
push eax
push esi
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063d2
xor edi, edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp ebp, 0x26
jne 0x406415
cmp edi, 1
jne 0x406415
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebx + 1], 0x3a
jne 0x406415
push str.Program_Files
add ebx, 2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c
ret
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x9c
ret

Function at 0x4064d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, eax
test esi, esi
push edi
jne 0x4064de
mov esi, dword [0x41ae60]
push 0x10
push 1
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406542
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x406542
cmp dword [eax], 0xfeef04bd
je 0x40651e
lea ebx, [ebx]
mov ecx, dword [eax + 4]
add eax, 4
cmp ecx, 0xfeef04bd
jne 0x406510
movzx ecx, word [eax + 0x12]
movzx edx, word [eax + 0x10]
shl ecx, 8
add ecx, edx
movzx edx, word [eax + 0x16]
movzx eax, word [eax + 0x14]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
pop edi
mov eax, ecx
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x406550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
test eax, eax
push esi
push edi
je 0x40657e
push 0xb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x40656c
pop edi
mov byte [ebx], al
pop esi
ret
mov eax, edi
call fcn.004064d0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4065de
mov eax, dword [0x41ae60]
push 0x10
push 1
push eax
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4065de
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4065de
cmp dword [eax], 0xfeef04bd
je 0x4065bf
mov ecx, dword [eax + 4]
add eax, 4
cmp ecx, 0xfeef04bd
jne 0x4065b1
movzx esi, word [eax + 0x12]
movzx ecx, word [eax + 0x10]
movzx edx, word [eax + 0x16]
movzx eax, word [eax + 0x14]
shl esi, 8
add esi, ecx
shl esi, 8
add esi, edx
shl esi, 8
add esi, eax
mov ecx, esi
mov edx, esi
mov eax, esi
shr ecx, 0x18
shr edx, 0x10
shr eax, 8
add cl, 0x30
add dl, 0x30
add al, 0x30
pop edi
mov byte [ebx], cl
mov byte [ebx + 1], 0x2e
mov byte [ebx + 2], dl
mov byte [ebx + 3], al
mov byte [ebx + 4], 0
pop esi
ret

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

Disassembly:
sub esp, 0x108
test eax, eax
mov dword [ebx], 0
jne 0x407054
lea eax, [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407145
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
test ecx, ecx
mov dword [esp + 4], ecx
jne 0x40709d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x108
ret
mov eax, dword [0x41db60]
test eax, eax
jne 0x4070bc
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x41db60], eax
je 0x40711e
mov ecx, dword [esp + 4]
add ecx, 2
push ecx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x41db60]
test ecx, ecx
mov dword [ebx], eax
je 0x40711e
test eax, eax
je 0x40711e
mov edx, dword [esp + 4]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
jne 0x407111
call fcn.00407240
mov dword [ebx], 0
xor eax, eax
pop esi
add esp, 0x108
ret
mov eax, 1
pop esi
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41db60]
test eax, eax
je 0x40713f
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x41db60], 0
mov dword [ebx], 0
xor eax, eax
pop esi
add esp, 0x108
ret
Function at 0x40bcb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor eax, eax
test edx, edx
mov ecx, 0x18
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x5b0a0d
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jl 0x40bcf3
push edx
push ebx
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + eax + 0x14]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40bcfb
push ebx
lea edx, [esp + 0x10]
push edx
call edi
push 0x4173ec
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
call esi
mov ecx, dword [esp + 0x74]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x68
ret

Function at 0x40bd30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
test ecx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
jl 0x40bd51
push ecx
push eax
lea eax, [esp + 0x74]
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0xd8]
push ecx
push eax
lea edx, [esp + 0x10]
push str._s_08x_r_n
push edx
call esi
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 0xcc
ret

Function at 0x40bda0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68
test eax, eax
push ebx
push ebp
push edi
mov ebx, ecx
jl 0x40bdcb
push eax
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x7c], edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
inc eax
add eax, eax
push eax
call fcn.00410136
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40bded
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
push esi
push ebp
call fcn.0040be80
add esp, 4
push ebp
xor ebx, ebx
call edi
mov ecx, dword [esp + 0x80]
push ecx
mov esi, eax
call edi
push str._s_s_r_n
add esi, eax
call edi
lea eax, [esi + eax + 1]
push eax
call fcn.00410136
mov esi, eax
add esp, 4
test esi, esi
je 0x40be61
mov edx, dword [esp + 0x80]
push ebp
push edx
push str._s_s_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call edi
mov edx, dword [esp + 0x7c]
push ebx
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call fcn.0040ff5b
add esp, 4
push ebp
call fcn.0040ff5b
add esp, 4
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x68
ret
Function at 0x40bed0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebx, eax
call edi
push 0x4173c0
mov esi, eax
call edi
push ebx
add esi, eax
call edi
lea eax, [esi + eax + 1]
push eax
call fcn.00410136
mov esi, eax
add esp, 4
test esi, esi
je 0x40bf55
push ebp
push 0x4173c0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebx
push 0x4173bc
push esi
call ebx
push esi
call edi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call fcn.0040ff5b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40bf60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x140
mov ecx, dword [esp + 0x144]
cmp dword [ecx], 0
mov dword [esp + 4], 0
je 0x40c0eb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 4
ja case.default.0x40bfa0
jmp dword [eax*4 + 0x40c0f4]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
mov eax, dword [ecx]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_d_r_n
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call ebx
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
mov dword [esp + 0x2c], eax
call ebp
jmp case.default.0x40bfa0
mov eax, dword [ecx + 4]
movzx edx, word [eax]
mov eax, dword [ecx]
push edx
push eax
lea ecx, [esp + 0x8c]
push str._s_04x_r_n
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x84]
push edx
call ebx
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x90]
push edx
push esi
mov dword [esp + 0x28], eax
call ebp
jmp case.default.0x40bfa0
mov eax, dword [ecx + 4]
mov edx, dword [eax]
mov eax, dword [ecx]
push edx
push eax
lea ecx, [esp + 0xf0]
push str._s_08x_r_n
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xe8]
push edx
call ebx
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0xf4]
push edx
push esi
mov dword [esp + 0x30], eax
call ebp
jmp case.default.0x40bfa0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push eax
push esi
or eax, 0xffffffff
call fcn.0040bda0
add esp, 8
jmp case.default.0x40bfa0
mov eax, dword [0x41a2d4]
xor edx, edx
cmp eax, dword [0x41a2d0]
jge case.default.0x40bfa0
mov eax, dword [eax*4 + 0x41a140]
test eax, eax
je 0x40c096
mov dword [esp + 0xc], eax
mov edx, 1
mov eax, dword [0x41a2d4]
inc eax
test edx, edx
mov dword [0x41a2d4], eax
je case.default.0x40bfa0
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
push ecx
push esi
call fcn.0040bed0
mov edx, dword [esp + 0x14]
add esp, 8
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x150]
inc eax
mov dword [esp + 0x10], eax
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
cmp dword [ecx], 0
jne 0x40bf93
pop edi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x40c110
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
jne 0x40c12a
lea eax, [esp + 0x78]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x40c2a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x10], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push str.General
lea eax, [esp + 0x14]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x14]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x417110
mov esi, ebx
call fcn.0040bf60
add esp, 4
call fcn.0040c2b0
call fcn.0040c4e0
call fcn.0040c650
call fcn.0040c750
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
mov dword [esp + 0x10], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push str.SubMenu
lea eax, [esp + 0x14]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x14]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4172d8
mov esi, ebx
call fcn.0040bf60
push ebx
call fcn.0040c970
mov esi, eax
push ebx
and esi, 1
call fcn.0040cbf0
push ebx
and esi, eax
call fcn.0040ce60
push ebx
and esi, eax
call fcn.0040d120
push ebx
and esi, eax
call fcn.0040d8b0
add esp, 0x18
and esi, eax
call fcn.00402380
and esi, eax
mov eax, ebx
call fcn.0040db10
mov edi, dword [ebp + 8]
and esi, eax
test edi, edi
jne 0x40c27e
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
xor eax, eax
mov ecx, ebx
call fcn.0040e7b0
and esi, eax
je 0x40c29e
test edi, edi
jne 0x40c295
mov dword [0x41dc6c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c2b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x419a6c]
push ebx
push ebp
mov ebp, dword [0x419a68]
push edi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x1c], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.History
lea ecx, [esp + 0x20]
push ecx
call edi
push 0x4173ec
lea edx, [esp + 0x20]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x1c]
push eax
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov edi, eax
push str.MaxMemories
lea eax, [esp + 0x24]
push str._s_d_r_n
push eax
and edi, 1
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
push ecx
push str.Flag
lea edx, [esp + 0x24]
push str._s_08x_r_n
push edx
and edi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
call ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and edi, eax
test ebp, ebp
jle 0x40c42d
mov eax, dword [0x41dec8]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40c42d
call fcn.0040fa60
test eax, eax
je 0x40c42d
mov ecx, dword [0x41b364]
or ecx, 0x400
test ebp, ebp
mov dword [0x41b364], ecx
jle 0x40c423
mov eax, dword [esp + 0xc]
mov ebx, 1
mov dword [esp + 0xc], eax
mov edi, edi
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x40c423
push eax
push esi
mov ecx, ebx
mov eax, str.Item_02u
call fcn.0040bd30
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
push eax
push esi
mov ecx, ebx
mov eax, str.Option_02u
call fcn.0040bd30
mov ecx, dword [esp + 0x1c]
add ecx, 8
add esp, 0x10
inc ebx
mov dword [esp + 0xc], ecx
lea ecx, [ebx - 1]
cmp ecx, ebp
jl 0x40c3e0
and dword [0x41b364], 0xfffffbff
mov eax, dword [0x41b370]
test eax, eax
mov ebp, dword [0x41b374]
jle 0x40c4d0
mov ebx, 1
mov dword [esp + 0xc], eax
lea esp, [esp]
test ebx, ebx
mov edx, dword [ebp]
mov dword [esp + 0x18], edx
mov eax, str.Excluded_03u
jl 0x40c47a
push ebx
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0xe4]
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x88]
push str._s_08x_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x8c]
push edx
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and edi, eax
mov eax, dword [esp + 0xc]
inc ebx
add ebp, 4
dec eax
mov dword [esp + 0xc], eax
jne 0x40c450
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x13c
ret