joyce8/EMBER2024-capa huggingface dataset:
Function at 0x662068
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040995c
mov eax, dword [ebp - 8]
call fcn.0040995c
xor eax, eax
push ebp
push 0x662119
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00424f40
test al, al
je 0x6620df
mov cl, 1
mov edx, 0x80
mov eax, dword [ebp - 4]
call fcn.004250b8
mov eax, dword [ebp - 8]
call fcn.00661fe8
test al, al
je 0x6620fe
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040a688
push eax
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x6620fe
push 0
mov eax, dword [ebp - 8]
call fcn.0040a688
push eax
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x662120
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098d8
ret

Function at 0x662b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x662c0a
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x20e]
call fcn.004259a4
mov edx, dword [ebp - 0x214]
mov eax, ebx
mov ecx, 0x662c24
call fcn.0040a8f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x662c11
lea eax, [ebp - 0x214]
call fcn.00409878
ret
Function at 0x663188
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040995c
xor eax, eax
push ebp
push 0x663323
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00409878
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a688
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6632f3
mov eax, dword [ebp - 0x10]
call fcn.00406a4c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x6632ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x66321b
call fcn.00408fec
jmp 0x6632f3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x66333c
call fcn.006601f4
mov eax, dword [ebp - 0x1c]
call fcn.0040a688
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x663250
call fcn.00408fec
jmp 0x6632f3
lea eax, [ebp - 8]
push eax
mov ebx, dword [ebp - 0x18]
movzx eax, word [ebx]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x6633e0
call fcn.00425b8c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x663400
call fcn.006601f4
push dword [ebp - 0x34]
push dword [ebp - 8]
lea edx, [ebp - 0x38]
mov eax, 0x663470
call fcn.006601f4
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040a97c
mov eax, dword [ebp - 0x30]
call fcn.0040a688
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6632d6
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.0040a6f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6632f3
mov eax, dword [ebp - 0x14]
call fcn.00406a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66332a
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004098d8
lea eax, [ebp - 0x1c]
call fcn.00409878
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098d8
ret
Function at 0x664524
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp byte [0x71cffc], 0
jne 0x66454e
push 0
mov eax, dword [0x698c54]
push eax
mov eax, 0x66456c
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExW
mov dword [0x71cff8], eax
mov byte [0x71cffc], 1
ret

Function at 0x6658fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x448], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040995c
xor eax, eax
push ebp
push 0x665a76
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.005d27ec
mov esi, eax
cmp esi, 0xffffffff
je 0x665a4a
mov dword [ebp - 0x230], 0x22c
lea edx, [ebp - 0x230]
mov eax, esi
call fcn.005d280c
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0x104
lea ecx, [ebp - 0x43c]
xor edx, edx
mov eax, ebx
call fcn.00414df0
test eax, eax
je 0x665a2f
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 4]
call fcn.004238c0
mov eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x448]
lea edx, [ebp - 0x43c]
mov ecx, 0x106
call fcn.0040a744
mov eax, dword [ebp - 0x448]
lea edx, [ebp - 0x444]
call fcn.004238c0
mov eax, dword [ebp - 0x444]
mov ecx, 1
pop edx
call fcn.0040ac74
test eax, eax
jle 0x665a29
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x665a29
lea eax, [ebp - 0x44c]
lea edx, [ebp - 0x43c]
mov ecx, 0x106
call fcn.0040a744
mov eax, dword [ebp - 0x44c]
call fcn.00661fe8
push ebx
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x230]
mov eax, esi
call fcn.005d282c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x665968
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665a7d
lea eax, [ebp - 0x44c]
mov edx, 4
call fcn.004098d8
lea eax, [ebp - 4]
call fcn.00409878
ret
Function at 0x665c6c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x665dc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x694a1c]
mov eax, dword [eax + 0x60]
call fcn.00661f3c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x665cb1
sub eax, 4
mov eax, dword [eax]
xor edx, edx
push ebp
push 0x665d8f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 0x2800
jle 0x665d85
lea edx, [ebp - 0x20]
mov eax, 0x665de0
call fcn.006601f4
mov ebx, dword [ebp - 0x20]
call fcn.00427778
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea ecx, [ebp - 8]
mov edx, dword [0x694e1c]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.00428764
mov eax, dword [0x694a1c]
push dword [eax + 0x40]
push 0x665e48
mov eax, dword [0x694a1c]
push dword [eax + 0x70]
push 0x665e58
push dword [ebp - 8]
push 0x665e68
mov eax, dword [0x694a1c]
push dword [eax + 0x5c]
lea eax, [ebp - 4]
mov edx, 7
call fcn.0040a97c
mov eax, dword [ebp - 4]
call fcn.00661fe8
mov ebx, dword [0x694a1c]
mov ebx, dword [ebx + 0x60]
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.0040a688
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x665d85
mov cl, 1
mov edx, 0x27
mov eax, dword [ebp - 4]
call fcn.004250b8
mov eax, dword [0x694a1c]
mov eax, dword [eax + 0x60]
call fcn.00661fe8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x665d99
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665dc8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004098d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098d8
ret

Function at 0x66fdd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x66fe55
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
call fcn.004b8358
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov eax, esi
call fcn.004b8358
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, esi
call fcn.004b73cc
mov edx, eax
mov eax, ebx
call fcn.0066ff08
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004b8358
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00670568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66fe5c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004098d8
ret

Function at 0x677e00
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov eax, ebx
call fcn.00409878
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x677e36
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.0040a744
add esp, 0x204
pop ebx
ret
Function at 0x677e40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x677eb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409878
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a81c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x677e9d
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040aa64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x677eba
lea eax, [ebp - 4]
call fcn.00409878
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0x82040000
push 0x408360
push 0x4082f8
push 0x80
mov dword [0x4083c4], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401041
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret

Function at 0x401060
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x408058]
xor eax, dword [esp + 0x1e8]
mov dword [esp + 0x1e4], eax
mov eax, dword [esp + 0x1f0]
test eax, eax
je 0x40113c
push edi
push 0xc8
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x58]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010a0
mov ecx, dword [str.EloRtBtn.exe]
mov edx, dword [0x406224]
mov eax, dword [0x406228]
mov dword [edi], ecx
mov cx, word [0x40622c]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x1f0]
mov dword [edi + 8], eax
inc edx
push edx
lea eax, [esp + 0x5c]
push eax
mov word [edi + 0xc], cx
lea ecx, [esp + 0x128]
push str.__s___s_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40113c
push 0x30
push str.Elo_ToolTray
push str.Error_starting_right_button_program
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1e4]
xor ecx, dword [esp + 0x1e8]
add esp, 0x1e8
jmp fcn.00402311
Function at 0x401940
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x4082e4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
push eax
call ebx
mov edx, dword [0x4082f0]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 8], 0x103
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4019bc
push edi
push str.TTrayTerminateTh
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
push edi
call ebx
mov eax, dword [0x4082f0]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [esp + 0x10], eax
call esi
cmp dword [esp + 0xc], 0x102
pop edi
jne 0x4019bc
mov ecx, dword [0x4082f0]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x4082f4]
push edx
call esi
mov eax, dword [0x4082e8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0x4082dc]
push ecx
call esi
mov edx, dword [0x4082e0]
push edx
call esi
mov eax, dword [0x4082e8]
push eax
call esi
mov ecx, dword [0x4082e4]
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
pop esi
pop ebx
jne 0x401a08
push 2
call fcn.00401730
add esp, 4
mov edx, dword [esp + 8]
push 0x8b
push edx
call fcn.00401290
mov eax, dword [0x4082ec]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop ecx
ret
Function at 0x402120
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x28
push str.EloTaskBarApp
push 1
lea eax, [esp + 8]
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4082f4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402174
mov ecx, dword [0x4082f4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x28
ret 0x10
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x408360
push 0x67
push esi
call edi
push 0x64
push 0x4082f8
push 0x9c4a
push esi
call edi
call fcn.00401630
cmp eax, 1
jge 0x4021c8
mov edx, dword [0x4082f4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4082ec]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x3c]
cmp byte [eax], 0
je 0x4021de
push eax
call fcn.00401810
add esp, 4
test eax, eax
je 0x4021f6
push esi
call fcn.00402090
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x40221a
mov ecx, dword [0x4082f4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4082ec]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
add esp, 0x28
ret 0x10
push str.ToolTrayOpenNotify
push 0
push 0
mov dword [0x4083c4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
call esi
push str.ToolTrayCloseNotify
push 0
push 0
push 0
mov dword [0x4082e8], eax
call esi
push str.EloEnableTouchTTray
push 0
push 0
push 0
mov dword [0x4082e4], eax
call esi
push str.EloDisableTouchTTray
push 0
push 0
push 0
mov dword [0x4082e0], eax
call esi
mov dword [0x4082dc], eax
mov eax, dword [0x4082e4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0x4082e8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 1
call fcn.00401730
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
add esp, 4
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
je 0x4022d5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
jne 0x4022b5
pop ebx
pop edi
pop esi
xor eax, eax
add esp, 0x28
ret 0x10
Function at 0x402413
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406508
call fcn.0040278c
mov edi, 0x94
mov eax, edi
call fcn.00403390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4083f8], ecx
mov eax, dword [esi + 4]
mov dword [0x408404], eax
mov edx, dword [esi + 8]
mov dword [0x408408], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4083fc], esi
cmp ecx, 2
je 0x402473
or esi, 0x8000
mov dword [0x4083fc], esi
shl eax, 8
add eax, edx
mov dword [0x408400], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4024ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4024ae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4024c6
cmp eax, 0x20b
je 0x4024b3
mov dword [ebp - 0x1c], esi
jmp 0x4024da
cmp dword [ecx + 0x84], 0xe
jbe 0x4024ae
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4024d4
cmp dword [ecx + 0x74], 0xe
jbe 0x4024ae
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040333d
pop ecx
test eax, eax
jne 0x402506
cmp dword [0x4083e4], 1
jne 0x4024f3
call fcn.00402ae6
push 0x1c
call fcn.0040296f
push 0xff
call fcn.004027d8
pop ecx
pop ecx
call fcn.0040329b
mov dword [ebp - 4], esi
call fcn.004030f0
test eax, eax
jge 0x40251f
push 0x1b
call fcn.004023ee
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408914], eax
call fcn.00402fce
mov dword [0x4083dc], eax
call fcn.00402f2c
test eax, eax
jge 0x402545
push 8
call fcn.004023ee
pop ecx
call fcn.00402cf9
test eax, eax
jge 0x402556
push 9
call fcn.004023ee
pop ecx
call fcn.00402808
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x402569
push eax
call fcn.004023ee
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402c90
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40258a
movzx eax, word [ebp - 0x34]
jmp 0x40258d
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00402120
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4025ab
push edi
call fcn.0040292f
call fcn.00402951
jmp 0x4025dd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004027c7
ret
Function at 0x40286d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408438], esi
push edi
jne 0x40288d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408434], esi
mov byte [0x408430], al
jne 0x4028f3
mov ecx, dword [0x408908]
test ecx, ecx
je 0x4028d4
mov eax, dword [0x408904]
sub eax, 4
cmp eax, ecx
jmp 0x4028cd
mov eax, dword [eax]
test eax, eax
je 0x4028bf
call eax
mov eax, dword [0x408904]
sub eax, 4
cmp eax, dword [0x408908]
mov dword [0x408904], eax
jae 0x4028b7
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x4028f3
mov eax, dword [edi]
test eax, eax
je 0x4028ec
call eax
add edi, 4
cmp edi, esi
jb 0x4028e4
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x402912
mov eax, dword [edi]
test eax, eax
je 0x40290b
call eax
add edi, 4
cmp edi, esi
jb 0x402903
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40292d
push dword [ebp + 8]
mov dword [0x408438], 1
call fcn.004027d8
pop ecx
pop ebp
ret

Function at 0x40296f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408058]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408068]
je 0x40299c
inc eax
cmp eax, 0x12
jb 0x40298d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408068]
jne 0x402ad0
mov eax, dword [0x4083e4]
cmp eax, 1
je 0x402aab
cmp eax, edx
jne 0x4029cc
cmp dword [0x408064], 1
je 0x402aab
cmp ecx, 0xfc
je 0x402ad0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402a05
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004034d0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00403700
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402a47
lea eax, [ebp - 0x10c]
push eax
call fcn.00403700
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40654c
push edi
call fcn.004035d0
add esp, 0x10
push edi
call fcn.00403700
push dword [esi + 0x40806c]
mov ebx, eax
call fcn.00403700
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403390
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004034d0
push edi
push ebx
call fcn.004034e0
push 0x406548
push ebx
call fcn.004034e0
push dword [esi + 0x40806c]
push ebx
call fcn.004034e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004033cd
add esp, 0x2c
jmp 0x402ad0
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40806c]
push dword [esi]
call fcn.00403700
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00402311
pop edi
pop esi
pop ebx
leave
ret