joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40681d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push 2
mov esi, eax
push 0x41530c
push esi
call fcn.004086f0
add esp, 0xc
test eax, eax
je 0x406851
push 2
push 0x415308
push esi
call fcn.004086f0
add esp, 0xc
test eax, eax
jne 0x406867
mov al, byte [esi + 2]
test al, al
je 0x406867
cmp al, 0x2f
je 0x406867
cmp al, 0x5c
je 0x406867
xor eax, eax
jmp 0x4069a5
cmp dword [0x4191f0], 1
movzx eax, byte [esi]
jle 0x406882
push 0x103
push eax
call fcn.0040a278
pop ecx
pop ecx
jmp 0x406891
mov ecx, dword [str.________________________________H]
movzx eax, word [ecx + eax*2]
and eax, 0x103
test eax, eax
push edi
mov edi, 0x104
je 0x4068a1
cmp byte [esi + 1], 0x3a
je 0x4068c5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4068bf
xor eax, eax
jmp 0x4069a4
lea esi, [ebp - 0x218]
push 2
mov dword [ebp - 4], esi
push esi
mov esi, 0x426ae8
push esi
call fcn.004086f0
add esp, 0xc
test eax, eax
je 0x4069a1
push 2
push dword [ebp - 4]
push esi
call fcn.0040a5e0
add esp, 0xc
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push esi
mov byte [0x426aea], 0x2f
mov byte [0x426aeb], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40692b
mov byte [0x426ae8], al
jmp 0x4068b8
push 0xc
pop eax
cmp eax, dword [ebp - 8]
push 4
sbb eax, eax
inc eax
mov dword [0x426aec], eax
lea eax, [ebp - 0x114]
push str.VFAT
push eax
call fcn.00412013
pop ecx
push eax
call fcn.004086f0
add esp, 0xc
test eax, eax
je 0x406997
push 4
lea eax, [ebp - 0x114]
push str.HPFS
push eax
call fcn.004086f0
add esp, 0xc
test eax, eax
je 0x406997
push 3
lea eax, [ebp - 0x114]
push 0x4152f4
push eax
call fcn.004086f0
add esp, 0xc
test eax, eax
je 0x406997
and dword [0x426af0], 0
jmp 0x4069a1
mov dword [0x426af0], 1
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x406b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
or esi, 0xffffffff
push str.CONIN_
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
jne 0x406b95
mov eax, esi
jmp 0x406c10
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x406bad
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x406bf6
cmp dword [ebp - 8], 1
jne 0x406bf6
movzx eax, byte [ebp - 4]
cmp eax, 0xa
mov dword [ebp - 0x10], eax
jne 0x406bf6
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x406bf6
cmp dword [ebp - 8], 1
jne 0x406bf6
movzx eax, byte [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x406c06
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406dd1
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x1c
push esi
push dword [0x42696c]
call fcn.0040a75a
xor esi, esi
cmp dword [0x41a0d0], esi
pop ecx
jne 0x406fa3
push ebx
push ebp
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
call fcn.00406cfe
pop ecx
pop ecx
push esi
push 0x80
push 3
push esi
push 2
push 0x40000000
mov ebp, 0x426984
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x10], eax
mov eax, dword [0x41a87c]
mov eax, dword [eax + 0x14]
test al, 0x5f
mov esi, 0x41a880
mov edi, 0x41a0c0
je 0x406e71
and eax, 0x7f
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x406e71
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.00408605
add esp, 0xc
push eax
push esi
push edi
call dword [fcn.00426abc]
add esp, 0x10
mov eax, dword [0x4268bc]
test eax, eax
je 0x406f0a
movzx ecx, word [0x4268de]
push ecx
push ebp
call fcn.00406c15
cmp eax, 0x4f
pop ecx
pop ecx
jne 0x406f0a
cmp dword [0x41a0f4], 0
je 0x406ed2
push 1
push 0x41e880
push ebp
call fcn.00401cb2
push eax
push str.__22s
push esi
call fcn.00408605
add esp, 0x14
push eax
push esi
push edi
call dword [fcn.00426abc]
add esp, 0x10
cmp dword [0x41a0f4], 0
mov eax, 0x414bb8
jne 0x406ed7
mov eax, 0x41453b
push 1
push eax
mov eax, dword [0x4268bc]
add eax, 2
push eax
call fcn.00404021
movzx eax, ax
pop ecx
sub eax, 0xa
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.00408605
add esp, 0x10
push eax
push esi
push edi
call dword [fcn.00426abc]
add esp, 0x10
cmp dword [esp + 0x10], 0xffffffff
jne 0x406f36
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.00408605
add esp, 0xc
push eax
push esi
push edi
call dword [fcn.00426abc]
add esp, 0x10
jmp 0x406fa0
test ebx, ebx
je 0x406f96
mov eax, ebx
and al, 1
neg al
lea ecx, [esp + 0x14]
sbb eax, eax
and eax, ecx
push eax
mov eax, ebx
and al, 2
neg al
lea ecx, [esp + 0x20]
sbb eax, eax
and eax, ecx
and bl, 4
neg bl
push eax
lea eax, [esp + 0x2c]
sbb ebx, ebx
and ebx, eax
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x406f96
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.00408605
add esp, 0xc
push eax
push esi
push edi
call dword [fcn.00426abc]
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret
Function at 0x4070c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.00412238
test eax, eax
pop ecx
pop ecx
jne 0x4071d8
push edi
mov eax, esi
call fcn.0040681d
push 0
push 0x80
push 3
push 0
mov edi, eax
push 3
neg edi
push 0x80000000
sbb edi, edi
and edi, dword [0x426af0]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4071d3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4071d3
test edi, edi
jne 0x40718d
lea esi, [ebx + 0x1c]
mov edi, esi
lea eax, [ebp - 0x1c]
call fcn.0040648f
cmp dword [ebp - 0xc], 0
jne 0x407162
cmp dword [ebp - 8], 0
jne 0x407162
mov eax, dword [esi]
mov dword [ebx + 0x18], eax
jmp 0x40716d
lea edi, [ebx + 0x18]
lea eax, [ebp - 0xc]
call fcn.0040648f
cmp dword [ebp - 0x14], 0
jne 0x407180
cmp dword [ebp - 0x10], 0
jne 0x407180
mov eax, dword [esi]
mov dword [ebx + 0x20], eax
jmp 0x4071d3
lea edi, [ebx + 0x20]
lea eax, [ebp - 0x14]
call fcn.0040648f
jmp 0x4071d3
lea edi, [ebx + 0x1c]
lea esi, [ebp - 0x1c]
call fcn.004064f5
cmp dword [ebp - 0xc], 0
jne 0x4071ac
cmp dword [ebp - 8], 0
jne 0x4071ac
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
jmp 0x4071b7
lea edi, [ebx + 0x18]
lea esi, [ebp - 0xc]
call fcn.004064f5
cmp dword [ebp - 0x14], 0
jne 0x4071c8
cmp dword [ebp - 0x10], 0
jne 0x4071c8
mov eax, dword [ebx + 0x1c]
jmp 0x40717b
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
call fcn.004064f5
xor eax, eax
pop edi
jmp 0x407226
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x407223
test al, 0x10
je 0x407223
push 0x24
push 0
push ebx
call fcn.0040a300
push 0x210000
call fcn.00403ac3
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
shl eax, 7
not al
add esp, 0x10
and ax, 0x80
or ax, 0x4100
mov word [ebx + 6], ax
xor eax, eax
jmp 0x407226
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x408076
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
cmp dword [0x419b64], esi
je 0x408086
xor eax, eax
inc eax
pop esi
ret
push edi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
cmp edi, esi
jne 0x40809b
xor eax, eax
jmp 0x408115
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebp
push edi
mov ebp, 0x419b68
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x4080d4
push esi
push ebp
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x419b64]
jmp 0x408113
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x41a0a0
call esi
push 0x41a080
call esi
push 0x124
push 0
push 0x419f40
call fcn.0040a300
add esp, 0xc
call fcn.00407fbd
xor esi, esi
inc esi
push edi
mov dword [0x419b64], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x409a89
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x419c10], esi
push edi
jne 0x409aa9
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 [0x419c0c], esi
mov byte [0x419c08], al
jne 0x409b0f
mov ecx, dword [0x426fac]
test ecx, ecx
je 0x409af0
mov eax, dword [0x426fa8]
sub eax, 4
cmp eax, ecx
jmp 0x409ae9
mov eax, dword [eax]
test eax, eax
je 0x409adb
call eax
mov eax, dword [0x426fa8]
sub eax, 4
cmp eax, dword [0x426fac]
mov dword [0x426fa8], eax
jae 0x409ad3
mov eax, 0x419024
mov esi, 0x41902c
cmp eax, esi
mov edi, eax
jae 0x409b0f
mov eax, dword [edi]
test eax, eax
je 0x409b08
call eax
add edi, 4
cmp edi, esi
jb 0x409b00
mov eax, 0x419030
mov esi, 0x419034
cmp eax, esi
mov edi, eax
jae 0x409b2e
mov eax, dword [edi]
test eax, eax
je 0x409b27
call eax
add edi, 4
cmp edi, esi
jb 0x409b1f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x409b48
push dword [ebp + 8]
mov dword [0x419c10], 1
call fcn.004099ef
pop ebp
ret
Function at 0x40aa2f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x415ce0
call fcn.0040f964
mov edi, 0x94
mov eax, edi
call fcn.0040fac0
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 [0x419bd0], ecx
mov eax, dword [esi + 4]
mov dword [0x419bdc], eax
mov edx, dword [esi + 8]
mov dword [0x419be0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x419bd4], esi
cmp ecx, 2
je 0x40aa8f
or esi, 0x8000
mov dword [0x419bd4], esi
shl eax, 8
add eax, edx
mov dword [0x419bd8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40aac8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40aac8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40aae0
cmp eax, 0x20b
je 0x40aacd
mov dword [ebp - 0x1c], edi
jmp 0x40aaf4
cmp dword [ecx + 0x84], 0xe
jbe 0x40aac8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40aaee
cmp dword [ecx + 0x74], 0xe
jbe 0x40aac8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0040d1da
pop ecx
test eax, eax
jne 0x40ab20
cmp dword [0x419c1c], 2
je 0x40ab0d
call fcn.0040f532
push 0x1c
call fcn.0040f3bb
push 0xff
call fcn.004099ef
pop ecx
pop ecx
call fcn.0040e181
mov dword [ebp - 4], edi
call fcn.0040de47
test eax, eax
jge 0x40ab39
push 0x1b
call fcn.0040aa0a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x426fa0], eax
call fcn.0040f840
mov dword [0x419c14], eax
call fcn.0040f79e
test eax, eax
jge 0x40ab5f
push 8
call fcn.0040aa0a
pop ecx
call fcn.0040f56b
test eax, eax
jge 0x40ab70
push 9
call fcn.0040aa0a
pop ecx
push 1
call fcn.00409a1f
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40ab86
push eax
call fcn.0040aa0a
pop ecx
mov eax, dword [0x419bf0]
mov dword [0x419bf4], eax
push eax
push dword [0x419be8]
push dword [0x419be4]
call fcn.00401955
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40abb5
push esi
call fcn.00409b4a
call fcn.00409b6c
jmp 0x40abe7
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040f99f
ret
Function at 0x40e3e3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x426c28]
mov eax, dword [0x419620]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40e5a9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x426c40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40e5a9
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40e44d
xor eax, eax
jmp 0x40e5bd
test al, 0x20
je 0x40e45e
push 2
push edi
push edi
push ecx
call fcn.00410b9a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40e533
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40e57a
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40e4c0
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40e4b1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40e493
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e500
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40e50c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40e487
jmp 0x40e50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40e5a4
cmp dword [ebp + 0x3a4], edi
je 0x40e57a
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40e56c
mov dword [0x419bc8], eax
jmp 0x40e5b0
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e55e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40e50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40e50e
push dword [ebp + 0x3a4]
call fcn.0040f243
pop ecx
jmp 0x40e5ba
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40e592
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40e446
mov dword [0x419bc4], 0x1c
mov dword [0x419bc8], edi
jmp 0x40e5ba
sub eax, dword [ebp - 0x7c]
jmp 0x40e5bd
and dword [0x419bc8], 0
mov dword [0x419bc4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040ceeb
add ebp, 0x39c
leave
ret
Function at 0x40f3bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x419620]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x419980]
je 0x40f3f0
inc eax
cmp eax, 0x13
jb 0x40f3e1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x419980]
jne 0x40f516
mov eax, dword [0x419c1c]
cmp eax, 1
je 0x40f4ee
cmp eax, edx
jne 0x40f420
cmp dword [0x419494], 1
je 0x40f4ee
cmp ecx, 0xfc
je 0x40f516
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f456
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040a7b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409640
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f48a
mov eax, edi
push eax
call fcn.00409640
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x417348
push edi
call fcn.0040a5e0
add esp, 0x10
push edi
call fcn.00409640
push dword [esi + 0x419984]
mov ebx, eax
call fcn.00409640
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040fac0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040a7b0
push edi
push ebx
call fcn.0040a7c0
push 0x417328
push ebx
call fcn.0040a7c0
push dword [esi + 0x419984]
push ebx
call fcn.0040a7c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00410cba
add esp, 0x2c
jmp 0x40f516
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x419984]
push dword [esi]
call fcn.00409640
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040ceeb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41025f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040fac0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4102fa
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x419bd0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4102fa
cmp eax, 1
je 0x41031b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4102fa
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4102c7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4102f6
xor eax, eax
inc eax
jmp 0x41033a
cmp edi, eax
jae 0x4102fe
xor eax, eax
jmp 0x41033a
cmp eax, esi
jae 0x410305
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x419bd0]
jmp 0x41031e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41068d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x426c28]
push edi
jae 0x410862
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x426c40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x410862
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x410738
test dl, 2
jne 0x410738
test dl, 0x48
je 0x410702
cmp byte [eax + 5], 0xa
je 0x410702
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41074b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x410733
mov dword [0x419bc8], ecx
jmp 0x410869
cmp eax, 0x6d
jne 0x41073f
xor eax, eax
jmp 0x410876
push eax
call fcn.0040f243
pop ecx
jmp 0x410873
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x41085d
test eax, eax
je 0x410772
cmp byte [ebx], 0xa
jne 0x410772
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41077b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x410857
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x410847
cmp al, 0xd
je 0x4107ad
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x410839
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4107c7
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4107c2
add dword [ebp - 8], 2
jmp 0x41081b
mov dword [ebp - 8], eax
jmp 0x410835
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4107ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410835
cmp dword [ebp - 0x10], 0
je 0x410835
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x410810
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41081b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x410838
cmp ebx, dword [ebp + 0xc]
jne 0x410820
cmp byte [ebp - 1], 0xa
jne 0x410820
mov byte [ebx], 0xa
jmp 0x410838
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040e62a
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x410839
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x410791
jmp 0x410857
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x410857
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x410876
and dword [0x419bc8], 0
mov dword [0x419bc4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410cba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x419eb8], ebx
push esi
push edi
jne 0x410d3a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410d75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x419eb8], eax
je 0x410d75
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x419ebc], eax
call esi
cmp dword [0x419bd0], 2
mov dword [0x419ec0], eax
jne 0x410d3a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x419ec8], eax
je 0x410d3a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x419ec4], eax
mov eax, dword [0x419ec4]
test eax, eax
je 0x410d7f
call eax
test eax, eax
je 0x410d66
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x419ec8]
test eax, eax
je 0x410d66
test byte [ebp - 8], 1
jne 0x410d7f
cmp dword [0x419bdc], 4
jb 0x410d79
or byte [ebp + 0x12], 0x20
jmp 0x410d9e
xor eax, eax
jmp 0x410dae
or byte [ebp + 0x12], 4
jmp 0x410d9e
mov eax, dword [0x419ebc]
test eax, eax
je 0x410d9e
call eax
mov ebx, eax
test ebx, ebx
je 0x410d9e
mov eax, dword [0x419ec0]
test eax, eax
je 0x410d9e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x419eb8]
pop edi
pop esi
pop ebx
leave
ret