joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012e0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x417cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x320], eax
push esi
push edi
mov eax, dword [0x41f1f0]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call fcn.0040afd0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.0040afd0
add esp, 0xc
mov dword [esp + 0x10], vtable.CGsUtility.0
push 0x104
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x344], 0
call fcn.00407bf0
lea eax, [esp + 0x14]
push eax
call fcn.0040b0e0
add esp, 4
test eax, eax
je 0x40138c
cmp byte [esp + eax + 0x13], 0x5c
lea eax, [esp + eax + 0x13]
jne 0x40138c
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.AutobahnLOVEMILF
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x22c]
push str._s_s
push edx
call esi
push str.LOVEMILF.lnk
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x134]
push str._s_s
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x20
lea edx, [esp + 0x11c]
push edx
call edi
push 0x41afe4
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x124]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x11c]
push edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x224]
push eax
call edi
push str.Autobahn
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._s_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x11c]
push eax
call edi
mov eax, 1
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.0040b16b
add esp, 0x330
ret
Function at 0x401dd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x417c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
mov eax, dword [0x41f1f0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
push str.LOVEMILF
push str.SoftwareAutobahn
lea eax, [esp + 0x24]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
add esp, 0x10
mov dword [esp + 0xc], vtable.CGsRegistry.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], esi
call dword [0x41bd74]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push 0xf003f
push esi
push 0x41b306
push esi
lea eax, [esp + 0x38]
push eax
push 0x80000001
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401ec0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x41b2bc
push eax
mov dword [esp + 0x30], 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ebc
cmp dword [esp + 0x18], 4
jne 0x401ebc
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
jmp 0x401ec2
mov eax, dword [esp + 0x10]
xor ecx, ecx
or ecx, 1
cmp eax, esi
mov dword [esp + 0x14], ecx
je 0x401ee7
push 4
lea edx, [esp + 0x18]
push edx
push 4
push esi
push 0x41b2bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
cmp eax, esi
mov dword [esp + 0xc], vtable.CGsRegistry.0
je 0x401efa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040b16b
add esp, 0x12c
ret

Function at 0x402560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x104
lea eax, [esp + 8]
push 0
push eax
call fcn.0040afd0
add esp, 0xc
push 0
push 5
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, eax
sub esi, 1
lea edx, [esp + 4]
push edx
neg esi
sbb esi, esi
push 0x104
push edi
add esi, 1
call fcn.0040af26
mov ecx, dword [esp + 0x114]
add esp, 0xc
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b16b
add esp, 0x108
ret
Function at 0x4025e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x37c
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x378], eax
mov eax, dword [esp + 0x380]
push esi
push eax
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0040af26
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040b0e0
add esp, 0x10
test eax, eax
je 0x40262b
cmp byte [esp + eax + 0x5f], 0x5c
lea eax, [esp + eax + 0x5f]
jne 0x40262b
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41afd0
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x170]
push str._s_s
push eax
call esi
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x284]
push str._sdxsetup.exe
push edx
call esi
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0040afd0
add esp, 0x28
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x170]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x294]
push ecx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4026e9
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.0040b16b
add esp, 0x37c
ret
mov ecx, dword [esp + 0x37c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040b16b
add esp, 0x37c
ret
Function at 0x404130
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x170]
push esi
lea esi, [eax + 0x110]
add eax, 0x214
push eax
mov ecx, esi
call fcn.00401070
add esp, 4
test eax, eax
jne 0x40417e
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040b16b
add esp, 0x16c
ret 4
push str.LOVEMILF.EXE
push esi
lea eax, [esp + 0x68]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0040afd0
add esp, 0x1c
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4041fa
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x16c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040b16b
add esp, 0x16c
ret 4

Function at 0x404220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x170]
push esi
lea esi, [eax + 0x110]
add eax, 0x214
push eax
mov ecx, esi
call fcn.00401070
add esp, 4
test eax, eax
je 0x4042f3
push str.LOVEMILF_UNINST.EXE
push esi
lea eax, [esp + 0x68]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0040afd0
add esp, 0x1c
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4042f3
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040b16b
add esp, 0x16c
ret 4
mov ecx, dword [esp + 0x16c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040b16b
add esp, 0x16c
ret 4
Function at 0x404450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + 0x10]
push esi
add eax, 0xfffffc18
cmp eax, 4
push edi
mov edi, ecx
ja case.default.0x404484
jmp dword [eax*4 + 0x404650]
mov eax, dword [edi + 0x318]
sub eax, 0
je 0x404544
sub eax, 1
jne case.default.0x404484
push 0x640
call fcn.0040b063
add esp, 4
test eax, eax
je 0x4044bd
mov esi, eax
call fcn.00404a30
jmp 0x4044bf
xor eax, eax
mov dword [edi + 0x31c], eax
mov ecx, dword [ebx + 8]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x6c]
call eax
test eax, eax
je 0x404526
mov eax, dword [edi + 4]
test eax, eax
mov dword [edi + 0x318], 0
je 0x4044f8
push 0x41b5c8
push 0x3ea
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x3eb
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [edi + 4]
push 1
push 0x3ec
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [edi + 0x31c]
test ecx, ecx
je 0x404538
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x31c], 0
jmp case.default.0x404484
push edi
call fcn.00404220
test eax, eax
mov eax, dword [ebx + 8]
je 0x404556
push 0
push eax
jmp 0x404595
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x24
push str.Uninstall_error
push 0x41b500
push eax
call esi
cmp eax, 6
jne case.default.0x404484
mov ecx, dword [ebx + 8]
call fcn.004012e0
call fcn.00401470
mov ecx, dword [ebx + 8]
push 0x40
push str.Info
push 0x41b5f4
push ecx
call esi
mov edx, dword [ebx + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword [ebx + 0x18], 0
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040b16b
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00404130
test eax, eax
je case.default.0x404484
mov eax, dword [ebx + 8]
push 0
push eax
jmp 0x404595
lea esi, [edi + 0x214]
push esi
lea ecx, [edi + 0x110]
call fcn.00401070
add esp, 4
cmp eax, 1
jne case.default.0x404484
push eax
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x404484
push 0x104
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0040afd0
add esp, 0xc
push 0x104
push 0x421294
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040b1f5
add esp, 0x10
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
call fcn.004025e0
mov ecx, dword [ebx + 8]
add esp, 4
push 0
push ecx
jmp 0x404595
Function at 0x406c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418088
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov eax, dword [0x41f1f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d98
test bl, 8
je 0x406d0f
push str.arwbt
call fcn.0040b0e0
add esp, 4
push eax
push str.arwbt
jmp 0x406d3c
test bl, 4
je 0x406d29
push 0x41baa4
call fcn.0040b0e0
add esp, 4
push eax
push 0x41baa4
jmp 0x406d3c
push 0x41baa8
call fcn.0040b0e0
add esp, 4
push eax
push 0x41baa8
lea ecx, [esp + 0x18]
call fcn.00402b30
test bl, 0x20
je 0x406d5f
push 0x41baac
call fcn.0040b0e0
add esp, 4
push eax
push 0x41baac
jmp 0x406d77
test bl, 0x10
je 0x406d80
push 0x41bab0
call fcn.0040b0e0
add esp, 4
push eax
push 0x41bab0
lea eax, [esp + 0x18]
call fcn.00402710
push 0x41bab4
call fcn.0040b0e0
add esp, 4
push eax
push 0x41bab4
jmp 0x406e1a
test bl, 2
je 0x406dcc
test bl, 8
je 0x406db7
push str.arwbt
call fcn.0040b0e0
add esp, 4
push eax
push str.arwbt
jmp 0x406ddf
push 0x41baa8
call fcn.0040b0e0
add esp, 4
push eax
push 0x41baa8
jmp 0x406ddf
push 0x41baa4
call fcn.0040b0e0
add esp, 4
push eax
push 0x41baa4
lea ecx, [esp + 0x18]
call fcn.00402b30
test bl, 0x20
je 0x406e02
push 0x41baac
call fcn.0040b0e0
add esp, 4
push eax
push 0x41baac
jmp 0x406e1a
test bl, 0x10
je 0x406e23
push 0x41bab0
call fcn.0040b0e0
add esp, 4
push eax
push 0x41bab0
lea eax, [esp + 0x18]
call fcn.00402710
push ebp
call fcn.0040b0e0
add esp, 4
push eax
push ebp
lea ecx, [esi + 4]
call fcn.00402b30
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x406e45
lea eax, [esp + 0x14]
push eax
push ebp
add esi, 0x20
push esi
call fcn.0040c629
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
cmp dword [esp + 0x28], 0x10
jb 0x406e70
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b0cd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040b16b
add esp, 0x2c
ret 8

Function at 0x407100
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edi, edi
jle 0x407114
mov dl, al
and dl, cl
xor byte [eax + esi], dl
add eax, 1
cmp eax, edi
jl 0x407106
mov eax, 1
ret
Function at 0x407a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea ecx, [esp + 8]
mov dword [esp + 8], vtable.CGsRegistry.0
mov dword [esp + 0xc], 0
call dword [0x41bd74]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
je 0x407ac3
lea edx, [esp + 0x1c]
push edx
push esi
lea ecx, [esp + 0x20]
push ecx
push 0
push str.Desktop
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
cmp byte [esi], 0
mov dword [esp + 8], vtable.CGsRegistry.0
jne 0x407ae4
test eax, eax
je 0x407adb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x10
ret 8
test eax, eax
je 0x407aef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x407bf0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
push esi
lea eax, [esp + 0x14]
push eax
push 2
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x407cb1
lea ecx, [esp + 8]
mov dword [esp + 8], vtable.CGsRegistry.0
mov dword [esp + 0xc], eax
call dword [0x41bd74]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
je 0x407c85
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Programs
push eax
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
cmp byte [esi], 0
mov dword [esp + 8], vtable.CGsRegistry.0
jne 0x407ca6
test eax, eax
je 0x407c9d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
test eax, eax
je 0x407cb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0xc
ret 0xc
Function at 0x4089a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0xc], 0
sub edi, eax
mov edi, edi
xor esi, esi
xor eax, eax
test eax, eax
lea ecx, [esp + eax + 0x10]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
je 0x4089ed
cmp dl, 0x5c
jne 0x4089ed
cmp byte [esp + eax + 0xf], 0x3a
jne 0x4089f1
test dl, dl
jne 0x4089fa
mov ecx, esi
add esi, 1
cmp ecx, ebp
je 0x408a06
add eax, 1
cmp eax, 0x104
jl 0x4089d4
jmp 0x408a27
add ebp, 1
test dl, dl
jne 0x408a15
mov dword [esp + 0xc], 1
push 0
lea edx, [esp + 0x14]
push edx
mov byte [esp + eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esp + 0xc], 0
je 0x4089d0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0040b16b
add esp, 0x10c
ret 4

Function at 0x40b16b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f1f0]
jne 0x40b175
repz ret
jmp fcn.0040db3e
Function at 0x40c679
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 0x40c6b6
cmp dword [ebp + 0x14], edi
je 0x40c6b6
cmp ecx, edi
jne 0x40c6bd
call fcn.0040d8d0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040bbc6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40c6d1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40c6f2
cmp ebx, 0xffffffff
je 0x40c6e1
push ebx
push edi
push ecx
call fcn.0040afd0
add esp, 0xc
cmp esi, edi
je 0x40c69e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40c69e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40c70e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40c715
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40c806
test word [esi + 0xc], 0x10c
je 0x40c769
mov eax, dword [esi + 4]
test eax, eax
je 0x40c769
jl 0x40c867
cmp ebx, eax
mov edi, ebx
jb 0x40c73a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40c80e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040b17a
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 0x40c7fe
cmp ebx, dword [ebp - 0xc]
jb 0x40c7d6
cmp dword [ebp - 0xc], 0
je 0x40c793
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40c788
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40c78f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40c79e
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40c79e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40c83a
push eax
push dword [ebp - 8]
push esi
call fcn.004128c9
pop ecx
push eax
call fcn.00413850
add esp, 0xc
test eax, eax
je 0x40c879
cmp eax, 0xffffffff
je 0x40c867
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40c7fe
push esi
call fcn.0041316f
cmp eax, 0xffffffff
pop ecx
je 0x40c86b
cmp dword [ebp - 4], 0
je 0x40c83a
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 0x40c71d
mov eax, dword [ebp + 0x14]
jmp 0x40c6b8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40c825
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040afd0
add esp, 0xc
call fcn.0040d8d0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40c6ae
cmp dword [ebp + 0xc], 0xffffffff
je 0x40c850
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040afd0
add esp, 0xc
call fcn.0040d8d0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40c6ae
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40c6b8
or dword [esi + 0xc], 0x10
jmp 0x40c86b
Function at 0x40eeb7
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 + 0x41f320]
je 0x40eed2
inc edi
cmp edi, 0x17
jb 0x40eec3
cmp edi, 0x17
jae 0x40f052
push ebp
push 3
call fcn.00414dcb
cmp eax, 1
pop ecx
je 0x40f01e
push 3
call fcn.00414dcb
test eax, eax
pop ecx
jne 0x40ef06
cmp dword [0x41f060], 1
je 0x40f01e
cmp ebx, 0xfc
je 0x40f051
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x420978
push ebp
call fcn.0040af26
add esp, 0xc
test eax, eax
je 0x40ef3c
push esi
push esi
push esi
push esi
push esi
call fcn.0040baca
add esp, 0x14
push 0x104
mov esi, 0x420991
push esi
push 0
mov byte [0x420a95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ef80
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040af26
add esp, 0xc
test eax, eax
je 0x40ef80
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040baca
add esp, 0x14
push esi
call fcn.0040b0e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40efc5
push esi
call fcn.0040b0e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x420c8c
push 0x419964
sub ecx, eax
push ecx
push eax
call fcn.0040b1f5
add esp, 0x14
test eax, eax
je 0x40efc5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040baca
add esp, 0x14
jmp 0x40efc7
xor esi, esi
push 0x419960
push ebx
push ebp
call fcn.0040d14a
add esp, 0xc
test eax, eax
je 0x40efe7
push esi
push esi
push esi
push esi
push esi
call fcn.0040baca
add esp, 0x14
push dword [edi*8 + 0x41f324]
push ebx
push ebp
call fcn.0040d14a
add esp, 0xc
test eax, eax
je 0x40f009
push esi
push esi
push esi
push esi
push esi
call fcn.0040baca
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00414c0e
add esp, 0xc
jmp 0x40f051
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40f051
cmp ebp, 0xffffffff
je 0x40f051
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41f324]
push dword [esi]
call fcn.0040b0e0
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