joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401810
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
push edi
xor esi, esi
push esi
xor eax, eax
mov dword [esp + 0x14], esi
mov ecx, 0x8a
lea edi, [esp + 0x18]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40184a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov dword [esp + 0xc], esi
je 0x4018be
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x401870
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00403c0e
add esp, 8
test eax, eax
jne 0x401899
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
jne 0x4018aa
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401870
jmp 0x4018be
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4018c9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x93c
push edi
lea eax, [esp + 4]
push eax
push str.PDVDServ_AutoPlay
mov dword [esp + 0xc], 0
call fcn.00402b70
add esp, 8
test eax, eax
jne 0x401c73
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
jne 0x401bd7
cmp dword [esp + 0xc], 6
jb 0x401bd7
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
test edx, edx
je 0x401c73
mov word [esp + 0x120], 0
xor eax, eax
mov ecx, 0x207
lea edi, [esp + 0x122]
rep stosd dword es:[edi], eax
push edx
lea edx, [esp + 0x124]
push edx
stosw word es:[edi], ax
call fcn.00403d2f
lea eax, [esp + 0x128]
push eax
call fcn.0040a026
lea ecx, [esp + 0x12c]
push str.BDRE_X.IMP
push ecx
call fcn.00403d4b
add esp, 0x14
test eax, eax
je 0x401c37
or dword [esp + 4], 2
lea edx, [esp + 0x120]
push str.BDROM_X.IMP
push edx
call fcn.00403d4b
add esp, 8
test eax, eax
je 0x401c55
or dword [esp + 4], 4
lea eax, [esp + 0x120]
push str.HDDVD_X.IMP
push eax
call fcn.00403d4b
add esp, 8
test eax, eax
je 0x401c73
or dword [esp + 4], 8
mov eax, dword [esp + 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401c80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push str.UI_Multiple_Language
mov dword [esp + 0x20], esi
call fcn.00402aa0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, esi
jne 0x401cbf
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ecx
push edi
push str.UI_LanguageDefault
jmp 0x401cd6
cmp eax, 1
je 0x401cc9
cmp eax, 2
jne 0x401d00
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edx
push edi
push str.UI_Language
call fcn.00402bb0
add esp, 0xc
test eax, eax
je 0x401d00
push 0x40ba18
push edi
call fcn.00403dbf
add esp, 8
test eax, eax
je 0x401d00
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.UI_Multiple_Language
call fcn.00402b00
xor eax, eax
mov word [esp + 0x20], si
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x228], si
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
add esp, 8
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x224]
push eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403d2f
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 8
push str.Language
lea edx, [esp + 0x1c]
push edx
call esi
push 0x40b9fc
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], eax
test byte [esp + 0x428], 0x10
je 0x401e28
lea eax, [esp + 0x454]
push eax
call fcn.00403da9
add esp, 4
cmp eax, 3
jne 0x401e28
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403d2f
add esp, 8
push str.Language
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x454]
push ecx
lea edx, [esp + 0x1c]
push edx
call esi
push str.UI_RES.DLL
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x401e41
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x428]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401dc0
jmp 0x401e65
lea ecx, [esp + 0x454]
push ecx
push str.UI_LanguageDefault
call fcn.00402c20
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x401e8a
push 0x40b9dc
push str.UI_LanguageDefault
call fcn.00402c20
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x644
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
mov word [esp + 0x250], si
mov ecx, 0x7f
lea edi, [esp + 0x252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x50], si
mov ecx, 0x7f
lea edi, [esp + 0x52]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
lea eax, [esp + 0x254]
push eax
push str.InstallPath
call fcn.00402c60
add esp, 0xc
test eax, eax
je 0x402050
mov word [esp + 0x450], si
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x452]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x454]
push 0x40baf0
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp ebx, esi
je 0x401f5c
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.00403d05
lea ecx, [esp + 0x58]
push 0x40baec
push ecx
call fcn.00403d05
add esp, 0x10
mov bl, byte [ebp + 8]
test bl, 1
je 0x401f85
lea edx, [esp + 0x50]
push str._FullScreen
push edx
call fcn.00403d05
lea eax, [esp + 0x58]
push 0x40baec
push eax
call fcn.00403d05
add esp, 0x10
test bl, 2
je 0x401fd9
lea ecx, [esp + 0x50]
push 0x40e908
push ecx
call fcn.00403d05
lea edx, [esp + 0x58]
push 0x40baec
push edx
call fcn.00403d05
push 1
lea eax, [esp + 0x24]
push eax
push str.PDVDServ_KillWMP
mov dword [esp + 0x2c], 1
call fcn.00402aa0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, esi
je 0x401fd9
push str.wmplayer.exe
call fcn.00401810
add esp, 4
lea edx, [esp + 0x50]
lea ecx, [esp + 0x450]
push edx
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], str.Open
mov dword [esp + 0x28], ecx
call fcn.00403da9
xor ecx, ecx
add esp, 4
cmp ecx, eax
sbb edx, edx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x14]
and edx, eax
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0x40ba18
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x40eb1c]
test eax, eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], 4
je 0x402ad5
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
push 0
push edi
push eax
call ebx
test eax, eax
je 0x402af6
mov eax, dword [0x40eb18]
test eax, eax
je 0x402af0
lea edx, [esp + 0xc]
push edx
push esi
push 0
push 0
push edi
push eax
call ebx
test eax, eax
je 0x402af6
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x402b00
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x40eb24]
test eax, eax
je 0x402b2a
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402b2a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x402b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x40eb18]
test eax, eax
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 4
je 0x402b61
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402b67
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov eax, 1
pop esi
pop ecx
ret

Function at 0x402b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x40eb18]
test eax, eax
mov dword [esp], 4
je 0x402ba5
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402ba5
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x402bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x40eb1c]
test eax, eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
je 0x402bdc
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edi
push eax
call ebx
test eax, eax
je 0x402bf7
mov eax, dword [0x40eb18]
test eax, eax
je 0x402c16
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 0
push edi
push eax
call ebx
test eax, eax
jne 0x402c16
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402c0d
push 0x40ba18
push esi
call fcn.00403d2f
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x402c20
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x40eb24]
test eax, eax
je 0x402c5c
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00403da9
mov ecx, dword [0x40eb24]
add esp, 4
shl eax, 1
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
jne 0x402c5c
mov eax, 1
ret
xor eax, eax
ret
Function at 0x402c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x40eb18]
test eax, eax
push esi
je 0x402ca5
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402ca5
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402c9e
push 0x40ba18
push esi
call fcn.00403d2f
add esp, 8
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4030c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
mov dword [esp], 4
je 0x4030f4
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4030f4
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop ecx
ret 8

Function at 0x403100
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
push esi
je 0x403144
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403144
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40313b
push 0x40ba18
push esi
call fcn.00403d2f
add esp, 8
mov eax, 1
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc

Function at 0x403270
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40329b
jne 0x4032a7
cmp dword [esp + 0xc], 1
jae 0x4032a7
mov eax, 0x80004005
add esp, 0x118
ret
lea ecx, [esp]
push ecx
push 0
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
test eax, eax
jl 0x4032d0
mov ecx, dword [0x40eb28]
mov eax, dword [esp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x10]
mov eax, dword [esp]
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
add esp, 0x118
ret
Function at 0x403670
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x40369b
jne 0x4036a7
cmp dword [esp + 0x14], 1
jae 0x4036a7
mov eax, 0x80004005
add esp, 0x120
ret
push esi
lea ecx, [esp + 8]
push ecx
push 0x40bd54
call dword [sym.imp.ole32.dll_CreateClassMoniker]
mov esi, eax
test esi, esi
jl 0x403751
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
mov esi, eax
test esi, esi
jl 0x403747
push edi
push 8
call fcn.00403e42
mov edi, eax
add esp, 4
test edi, edi
je 0x403737
lea ecx, [esp + 0x10]
push ecx
push 0x40bdf8
mov dword [edi], 0x40bd64
mov dword [edi + 4], 1
mov eax, dword [edi]
push edi
call dword [eax]
mov esi, eax
test esi, esi
jl 0x40372f
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0x40eb28
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push 1
push eax
call dword [edx + 0xc]
mov esi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x40373c
mov esi, 0x8007000e
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 0x120
ret
Function at 0x403e75
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40be08
call fcn.00406024
mov edi, 0x94
mov eax, edi
call fcn.00403e00
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 [0x40eb7c], ecx
mov eax, dword [esi + 4]
mov dword [0x40eb88], eax
mov edx, dword [esi + 8]
mov dword [0x40eb8c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40eb80], esi
cmp ecx, 2
je 0x403ed5
or esi, 0x8000
mov dword [0x40eb80], esi
shl eax, 8
add eax, edx
mov dword [0x40eb84], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403f10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403f10
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403f28
cmp eax, 0x20b
je 0x403f15
mov dword [ebp - 0x1c], esi
jmp 0x403f3c
cmp dword [ecx + 0x84], 0xe
jbe 0x403f10
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403f36
cmp dword [ecx + 0x74], 0xe
jbe 0x403f10
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00405fd3
pop ecx
test eax, eax
jne 0x403f68
cmp dword [0x40eb38], 1
jne 0x403f55
call fcn.00405788
push 0x1c
call fcn.00405611
push 0xff
call fcn.00405476
pop ecx
pop ecx
call fcn.00405f31
mov dword [ebp - 4], esi
call fcn.00405d86
test eax, eax
jge 0x403f81
push 0x1b
call fcn.00403e50
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4100f4], eax
call fcn.00405c64
mov dword [0x40eb30], eax
call fcn.00405bc2
test eax, eax
jge 0x403fa7
push 8
call fcn.00403e50
pop ecx
call fcn.0040598f
test eax, eax
jge 0x403fb8
push 9
call fcn.00403e50
pop ecx
push 1
call fcn.004054a6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403fce
push eax
call fcn.00403e50
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00405932
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403fef
movzx eax, word [ebp - 0x40]
jmp 0x403ff2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004027f0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404010
push edi
call fcn.004055d1
call fcn.004055f3
jmp 0x404042
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040605f
ret
Function at 0x405510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40ebbc], esi
push edi
jne 0x405530
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 [0x40ebb8], esi
mov byte [0x40ebb4], al
jne 0x405596
mov ecx, dword [0x4100e8]
test ecx, ecx
je 0x405577
mov eax, dword [0x4100e4]
sub eax, 4
cmp eax, ecx
jmp 0x405570
mov eax, dword [eax]
test eax, eax
je 0x405562
call eax
mov eax, dword [0x4100e4]
sub eax, 4
cmp eax, dword [0x4100e8]
mov dword [0x4100e4], eax
jae 0x40555a
mov eax, 0x40e028
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x405596
mov eax, dword [edi]
test eax, eax
je 0x40558f
call eax
add edi, 4
cmp edi, esi
jb 0x405587
mov eax, 0x40e034
mov esi, 0x40e03c
cmp eax, esi
mov edi, eax
jae 0x4055b5
mov eax, dword [edi]
test eax, eax
je 0x4055ae
call eax
add edi, 4
cmp edi, esi
jb 0x4055a6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4055cf
push dword [ebp + 8]
mov dword [0x40ebbc], 1
call fcn.00405476
pop ebp
ret

Function at 0x405611
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e27c]
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 + 0x40e298]
je 0x405646
inc eax
cmp eax, 0x13
jb 0x405637
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e298]
jne 0x40576c
mov eax, dword [0x40eb38]
cmp eax, 1
je 0x405744
cmp eax, edx
jne 0x405676
cmp dword [0x40e274], 1
je 0x405744
cmp ecx, 0xfc
je 0x40576c
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 0x4056ac
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407c80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4056e0
mov eax, edi
push eax
call fcn.00406d50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c290
push edi
call fcn.00407d80
add esp, 0x10
push edi
call fcn.00406d50
push dword [esi + 0x40e29c]
mov ebx, eax
call fcn.00406d50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403e00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407c80
push edi
push ebx
call fcn.00407c90
push 0x40c270
push ebx
call fcn.00407c90
push dword [esi + 0x40e29c]
push ebx
call fcn.00407c90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407b7f
add esp, 0x2c
jmp 0x40576c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e29c]
push dword [esi]
call fcn.00406d50
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.00406ed4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406964
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ffcc]
mov eax, dword [0x40e27c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x406b2a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ffe0]
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 0x406b2a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4069ce
xor eax, eax
jmp 0x406b3e
test al, 0x20
je 0x4069df
push 2
push edi
push edi
push ecx
call fcn.00408fc1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406ab4
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x406afb
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x406a41
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406a32
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 0x406a14
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 0x406a81
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x406a8d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x406a08
jmp 0x406a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x406b25
cmp dword [ebp + 0x3a4], edi
je 0x406afb
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x406aed
mov dword [0x40eb74], eax
jmp 0x406b31
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 0x406adf
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x406a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x406a8f
push dword [ebp + 0x3a4]
call fcn.00408eac
pop ecx
jmp 0x406b3b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406b13
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4069c7
mov dword [0x40eb70], 0x1c
mov dword [0x40eb74], edi
jmp 0x406b3b
sub eax, dword [ebp - 0x7c]
jmp 0x406b3e
and dword [0x40eb74], 0
mov dword [0x40eb70], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00406ed4
add ebp, 0x39c
leave
ret
Function at 0x407b7f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ece8], ebx
push esi
push edi
jne 0x407bff
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407c3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40ece8], eax
je 0x407c3a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ecec], eax
call esi
cmp dword [0x40eb7c], 2
mov dword [0x40ecf0], eax
jne 0x407bff
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ecf8], eax
je 0x407bff
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ecf4], eax
mov eax, dword [0x40ecf4]
test eax, eax
je 0x407c44
call eax
test eax, eax
je 0x407c2b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ecf8]
test eax, eax
je 0x407c2b
test byte [ebp - 8], 1
jne 0x407c44
cmp dword [0x40eb88], 4
jb 0x407c3e
or byte [ebp + 0x12], 0x20
jmp 0x407c63
xor eax, eax
jmp 0x407c73
or byte [ebp + 0x12], 4
jmp 0x407c63
mov eax, dword [0x40ecec]
test eax, eax
je 0x407c63
call eax
mov ebx, eax
test ebx, ebx
je 0x407c63
mov eax, dword [0x40ecf0]
test eax, eax
je 0x407c63
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ece8]
pop edi
pop esi
pop ebx
leave
ret