joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4657ff
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465837
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004638b6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046388e
jmp 0x465843
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466ef1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466f33
call fcn.0046ca6e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466f33
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466f2a
xor eax, eax
jmp 0x466f3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466f41
pop edi
pop esi
pop ebx
ret 4

Function at 0x46cf9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46cfcc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cfea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cf04
jmp 0x46cfea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cfea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cf04
test edi, edi
mov eax, edi
jne 0x46cfd4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406fc4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
lea eax, [ebp - 0xc]
push eax
call fcn.00407183
pop ecx
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 7]
push eax
push str._nCurrent_date_time:__02d__02d__04d__02d:_02d_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0x1c
push str.Apr_19_2000
push str.WinZip_R__Self_Extractor_2.2_nCopyright__c__1995_2000_WinZip_Computing__Inc._n
push str._n_s_compiled:__s_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0x10
and byte [ebp - 0x114], 0
push 0x105
lea eax, [ebp - 0x114]
push eax
push dword [0x42c66c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
push str.Module_name___s_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0xc
push dword [0x42c040]
push dword [0x42c03c]
push str._nOperating_System_Version__d._02d_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x80000000
jae 0x407095
push str.Windows_NT
push dword [ebp + 8]
call fcn.0040a030
pop ecx
pop ecx
jmp 0x4070c1
movzx eax, byte [ebp - 0x118]
cmp eax, 4
jge 0x4070b2
push str.Win32s
push dword [ebp + 8]
call fcn.0040a030
pop ecx
pop ecx
jmp 0x4070c1
push str.Windows_95_98
push dword [ebp + 8]
call fcn.0040a030
pop ecx
pop ecx
movzx eax, word [ebp - 0x118]
sar eax, 8
and eax, 0xff
movzx eax, al
push eax
movzx eax, byte [ebp - 0x118]
push eax
push str._Version__d._d_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0x10
mov dword [ebp - 0x138], 0x20
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x134]
push str.Memory_in_use___ld___n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0xc
mov eax, dword [ebp - 0x130]
shr eax, 0xa
push eax
push str.Total_physical_memory___ld_Kbytes_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0xc
mov eax, dword [ebp - 0x12c]
shr eax, 0xa
push eax
push str.Physical_memory_available___ld_Kbytes_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0xc
mov eax, dword [ebp - 0x120]
shr eax, 0xa
push eax
push str.Total_virtual_memory___ld_Kbytes_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0xc
mov eax, dword [ebp - 0x11c]
shr eax, 0xa
push eax
push str.Virtual_memory_available___ld_Kbytes_n
push dword [ebp + 8]
call fcn.0040a030
add esp, 0xc
leave
ret
Function at 0x4071fe
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.004090c0
pop ecx
pop ecx
push 0
push 0
push 0
push 0
push 0
push 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x407238
or eax, 0xffffffff
jmp 0x407300
push 7
push 0x417d40
lea eax, [ebp - 0x24]
push eax
call fcn.00409f80
add esp, 0xc
test eax, eax
je 0x407257
or eax, 0xffffffff
jmp 0x407300
lea eax, [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x407286
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp eax, 0x2e
je 0x407286
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp eax, 0x20
je 0x407286
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x40725d
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
jne 0x407295
or eax, 0xffffffff
jmp 0x407300
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp eax, 0x30
jl 0x4072ab
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp eax, 0x39
jle 0x4072b4
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x407295
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x4072f7
mov eax, dword [ebp - 0x28]
imul eax, eax, 0xa
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
sub eax, 0x30
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x4072e3
cmp dword [ebp - 0x2c], 9
jle 0x4072e5
jmp 0x4072f7
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x4072b8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
leave
ret

Function at 0x4075bb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x407302
push dword [0x42d350]
push 0x190
push dword [0x42c66c]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x42bee4], eax
cmp dword [0x42bee4], 0
je 0x40760b
push 0
push dword [0x42d350]
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push dword [0x42bee4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
pop eax
jmp 0x40760d
xor eax, eax
pop ebp
ret
Function at 0x4077b6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x192
push dword [0x42bee4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4077f3
push 0
push dword [ebp + 8]
push 0x402
push 0x192
push dword [0x42bee4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x407812
cmp dword [0x42bef4], 0
je 0x407812
push 0
push dword [ebp + 8]
push 0x402
push dword [0x42bef4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x42beec], 0
je 0x4078f6
cmp dword [ebp + 8], 0
jne 0x40783e
cmp dword [0x42bee8], 0
jne 0x40783e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42bee8], eax
jmp 0x4078f6
cmp dword [0x42bef0], 0
jne 0x4078f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x42bee8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12c
jbe 0x4078f6
cmp dword [ebp + 8], 0
je 0x4078f6
mov dword [0x42bef0], 1
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
xor edx, edx
div dword [0x42beec]
mov ecx, eax
mov eax, dword [ebp - 8]
xor edx, edx
push 0x64
pop esi
div esi
mov esi, eax
mov eax, ecx
xor edx, edx
div esi
cmp eax, 4
ja 0x4078f6
cmp dword [ebp - 4], 0
je 0x4078b5
push 5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4078e6
cmp dword [0x42bef4], 0
je 0x4078e6
push 5
push 0x193
push dword [0x42bee4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x42bef4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push dword [0x42bee4]
call dword [sym.imp.USER32.dll_InvalidateRect]
call section..text
xor eax, eax
pop esi
leave
ret
Function at 0x40886b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40888a
xor eax, eax
jmp 0x4088b2
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
mov eax, dword [ebp - 4]
leave
ret

Function at 0x408aca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.00408a37
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jne 0x408ba1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x417f1c
lea eax, [ebp - 0x110]
push eax
call fcn.004090c0
pop ecx
pop ecx
push 0x417f40
lea eax, [ebp - 0x110]
push eax
call fcn.004090d0
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0
jne 0x408b2c
push 0x417f44
lea eax, [ebp - 0x110]
push eax
call fcn.004090d0
pop ecx
pop ecx
jmp 0x408b3d
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.004090d0
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x110]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408b9d
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 0
jne 0x408b9d
push 1
pop eax
jmp 0x408bb0
xor eax, eax
jmp 0x408bb0
mov eax, dword [ebp + 0x10]
and byte [eax], 0
push dword [ebp + 0x10]
call fcn.00409240
pop ecx
leave
ret

Function at 0x408c22
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
call fcn.00408a37
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jne 0x408cdf
push str.SOFTWARENico_Mak_ComputingWinZip
lea eax, [ebp - 0x108]
push eax
call fcn.004090c0
pop ecx
pop ecx
push 0x417fa8
lea eax, [ebp - 0x108]
push eax
call fcn.004090d0
pop ecx
pop ecx
cmp dword [ebp + 0x14], 0
jne 0x408c7e
push str.winini
lea eax, [ebp - 0x108]
push eax
call fcn.004090d0
pop ecx
pop ecx
jmp 0x408c8f
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.004090d0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408cdf
push dword [ebp + 0x10]
call fcn.00409240
pop ecx
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x408d0c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and dword [ebp - 0x114], 0
cmp dword [ebp + 0xc], 0
je 0x408dde
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x408dde
lea eax, [ebp - 8]
push eax
push 0x10008
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x408ddc
cmp dword [ebp - 0x118], 0
jne 0x408dd3
mov dword [ebp - 4], 0x105
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x103
jne 0x408db1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x118], eax
jmp 0x408dd3
cmp dword [ebp - 0x118], 0
jne 0x408dd1
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 8]
call fcn.00408d0c
pop ecx
pop ecx
mov dword [ebp - 0x118], eax
jmp 0x408d5d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408de8
mov dword [ebp - 0x118], 0x3f2
mov eax, dword [ebp - 0x118]
leave
ret
Function at 0x408df0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414318
push 0x4096c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x42c040], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42c03c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x42c038], ecx
shr eax, 0x10
mov dword [0x42c034], eax
call fcn.0040bcf0
test eax, eax
jne 0x408e5a
push 0x1c
call fcn.00408fc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040baf0
call fcn.0040bae0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e5b0], eax
call fcn.0040b4a0
mov dword [0x42bfd8], eax
test eax, eax
je 0x408e8d
mov eax, dword [0x42e5b0]
test eax, eax
jne 0x408e97
push 0xffffffffffffffff
call fcn.0040a5e0
add esp, 4
call fcn.0040b1f0
call fcn.0040b100
call fcn.0040a5b0
mov esi, dword [0x42e5b0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x408f76
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x408ede
test al, al
je 0x408ede
and eax, 0xff
push eax
call fcn.0040b0a0
add esp, 4
test eax, eax
je 0x408eb8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408eb8
cmp byte [esi], 0x22
jne 0x408ee7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x408ef7
cmp al, 0x20
ja 0x408ef7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408ee7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x408f18
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x408f1d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040a5e0
jmp 0x408f5b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x408ee7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408f76

Function at 0x408fc0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x42bfe0], 1
jne 0x408fce
call fcn.0040bd30
mov eax, dword [esp + 4]
push eax
call fcn.0040bd70
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409c10
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409c29
xor eax, eax
test eax, eax
je 0x409c3a
push eax
call fcn.0040c0e0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40a620
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x42c070]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40a63f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x42c06c], 1
mov byte [0x42c068], bl
jne 0x40a699
mov ecx, dword [0x42e5ac]
test ecx, ecx
je 0x40a687
mov esi, dword [0x42e5a8]
sub esi, 4
cmp esi, ecx
jb 0x40a687
mov eax, dword [esi]
test eax, eax
je 0x40a680
call eax
mov ecx, dword [0x42e5ac]
sub esi, 4
cmp esi, ecx
jae 0x40a672
push 0x41601c
push 0x416014
call fcn.0040a6d0
add esp, 8
push 0x416024
push 0x416020
call fcn.0040a6d0
add esp, 8
test ebx, ebx
jne 0x40a6c0
push ebp
mov dword [0x42c070], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x40b4a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x42c188]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40b4e2
call edi
mov esi, eax
test esi, esi
je 0x40b4cc
mov eax, 1
jmp 0x40b4dd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b5ef
mov eax, 2
mov dword [0x42c188], eax
cmp eax, 1
jne 0x40b582
test esi, esi
jne 0x40b4fb
call edi
mov esi, eax
test esi, esi
je 0x40b5ef
cmp word [esi], 0
mov eax, esi
je 0x40b515
add eax, 2
cmp word [eax], 0
jne 0x40b503
add eax, 2
cmp word [eax], 0
jne 0x40b503
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40b574
push edi
call fcn.0040c150
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b574
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40b566
push ebx
call fcn.004098e0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40b5ef
test ebx, ebx
jne 0x40b593
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b5ef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40b5ab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b59b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b59b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040c150
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b5cd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40bd70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4183d0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40bd94
add eax, 8
inc ebp
cmp eax, 0x418460
jb 0x40bd85
cmp ecx, dword [ebp*8 + 0x4183d0]
jne 0x40bf3b
mov eax, dword [0x42bfe0]
cmp eax, 1
je 0x40befd
test eax, eax
jne 0x40bdc0
cmp dword [0x417fb8], 1
je 0x40befd
cmp ecx, 0xfc
je 0x40bf3b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bdfb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40be44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41432c
add ebx, ecx
push ebx
call fcn.00409b10
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x414324
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4183d4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040f410
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x42e4a0]
test eax, eax
je 0x40bf0e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40bf18
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4183d4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40bf70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x40bfe1
push ebx
call fcn.0040c0a0
add esp, 4
test eax, eax
jne 0x40bfaf
mov dword [0x42c02c], 0xf
mov dword [0x42c028], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40bff1
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c087
inc eax
cmp eax, 0x104
ja 0x40c087
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x40c040
cmp eax, ecx
jg 0x40c01d
mov eax, ecx
push eax
call fcn.0040c150
mov edx, eax
add esp, 4
test edx, edx
jne 0x40c05a
mov dword [0x42c028], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x40c05a
mov dword [0x42c028], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x40c0a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40c0ae
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40c0dd
cmp eax, 1
je 0x40c0dd
mov eax, 1
ret
xor eax, eax
ret