joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401810
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
push str.ASUS_ATK_Media_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x401841
push str.ASUS_ATK_Media_Mutex
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401849
xor eax, eax
add esp, 0x1c
ret 0x10
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
push 0x40c3c8
push 0x67
push esi
call edi
push 0x104
push 0x40c2c0
push 0x6d
push esi
call edi
push esi
call fcn.00401780
add esp, 4
push 0
call fcn.00403f50
push 0
push 0
push 0
push 0x40c4e8
call fcn.00404260
mov eax, dword [esp + 0x34]
push eax
push esi
call fcn.00401000
add esp, 8
test eax, eax
jne 0x4018b4
call fcn.00403fe0
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00403aa0
call fcn.00403b30
call fcn.00403c40
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
je 0x401936
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x401923
lea ecx, [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x401900
pop ebp
pop ebx
call fcn.00403b70
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00403fe0
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10

Function at 0x4019a0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov eax, dword [0x40c4f8]
sub esp, 0x104
test eax, eax
jne 0x401a3f
push 0x104
lea eax, [esp + 4]
push eax
push str._windir_ehomeehshell.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 3
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x4019e3
xor eax, eax
add esp, 0x104
ret
mov eax, dword [0x40c4f8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
xor esi, esi
test eax, eax
jne 0x401a17
push 0x3e8
call fcn.00403080
add esp, 4
push 0
push str.Media_Center_Tray_Applet
call edi
inc esi
cmp esi, 5
mov dword [0x40c4f8], eax
jl 0x4019f2
push 0xbb8
call fcn.00403080
add esp, 4
push str.Media_Center_Navigate_To_Page
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x40c4f4], eax
mov eax, dword [0x40c4f8]
test eax, eax
pop edi
pop esi
je 0x401a57
mov edx, dword [esp + 0x108]
mov ecx, dword [0x40c4f4]
push 1
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
add esp, 0x104
ret
Function at 0x401a70
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsAI_TouchMedia.exe
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401ac2
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401ac2
mov eax, dword [esp + 8]
add dword [eax], 0x100
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401ac2
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401ac2
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401ad0
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPOWERCINEMA.EXE
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401b1e
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401b1e
mov eax, dword [esp + 8]
inc dword [eax]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401b1e
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401b1e
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401b30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push str.InstallDir
push str.SoftwareMicrosoftTouchPack
push 0x80000002
call fcn.00403410
add esp, 0xc
test eax, eax
je 0x401ba9
push eax
lea eax, [esp + 4]
push str._sProgram_Launcher.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xc]
push ecx
call fcn.004030f0
add esp, 0x10
test eax, eax
je 0x401ba9
mov eax, dword [esp + 0x108]
add dword [eax], 0x80
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x401ba9
push 3
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401ba9
mov eax, 1
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x401bc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push esi
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMT.EXE
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401c39
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401c39
mov eax, dword [esp + 0x10c]
add dword [eax], 2
mov eax, dword [esp + 0x110]
test eax, eax
je 0x401c39
push esi
lea eax, [esp + 8]
push str._sMT.EXE__got:home
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401c39
mov eax, 1
pop esi
add esp, 0x104
ret
xor eax, eax
pop esi
add esp, 0x104
ret
Function at 0x401c50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push str.TargetPath
push str.SoftwareASUSInstantFun
push 0x80000002
call fcn.00403410
add esp, 0xc
test eax, eax
je 0x401cc6
push eax
lea eax, [esp + 4]
push str._sInstantFun.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xc]
push ecx
call fcn.004030f0
add esp, 0x10
test eax, eax
je 0x401cc6
mov eax, dword [esp + 0x108]
add dword [eax], 0x40
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x401cc6
push 3
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401cc6
mov eax, 1
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x401cd0
Capabilities:
Create process on windows

Disassembly:
push esi
push str.Full_Path
push str.SoftwareASUSRotation_Desktop
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401d22
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401d22
mov eax, dword [esp + 8]
add dword [eax], 0x200
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401d22
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401d22
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401d30
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPowerDVD
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401d5b
push esi
call fcn.004030f0
add esp, 4
test eax, eax
jne 0x401dd9
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPowerDVD10
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401d85
push esi
call fcn.004030f0
add esp, 4
test eax, eax
jne 0x401dd9
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPowerDVD9
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401daf
push esi
call fcn.004030f0
add esp, 4
test eax, eax
jne 0x401dd9
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsPowerDVD8
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401dfd
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401dfd
mov eax, dword [esp + 8]
add dword [eax], 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401dfd
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401dfd
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401e10
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWINDVD.EXE
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401e5f
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401e5f
mov eax, dword [esp + 8]
add dword [eax], 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e5f
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401e5f
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401e70
Capabilities:
Create process on windows

Disassembly:
push esi
push str.Player.Path
push str.SoftwareMicrosoftMultimediaWMPlayer
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401ebf
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401ebf
mov eax, dword [esp + 8]
add dword [eax], 0x20
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401ebf
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401ebf
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401ed0
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4092ce
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsCinePlayer.exe
push 0x80000002
call fcn.00403410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401f22
push esi
call fcn.004030f0
add esp, 4
test eax, eax
je 0x401f22
mov eax, dword [esp + 8]
add dword [eax], 0x400
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401f22
push 3
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x401f22
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x403080
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
mov edx, dword [esp + 0x28]
mov esi, eax
add esi, edx
call ebx
cmp eax, esi
jae 0x4030dd
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
lea esp, [esp]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x4030d5
lea ecx, [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
call ebx
cmp eax, esi
jb 0x4030b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x403920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsAI_TouchMedia.exe
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a53
mov ecx, dword [esp + 0xc]
push 0x4092ce
push ecx
call fcn.00403160
mov edx, dword [esp + 0x14]
add esp, 8
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x403a53
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x4039af
push ebx
push str.__s__REMOTE_MY_MUSIC
lea eax, [esp + 0x18]
push eax
jmp 0x403a38
cmp eax, 2
jne 0x4039bc
push ebx
push str.__s__REMOTE_Movie
jmp 0x403a33
cmp eax, 4
jne 0x4039ce
push ebx
push str.__s__REMOTE_MY_VIDEOS
lea edx, [esp + 0x18]
push edx
jmp 0x403a38
cmp eax, 5
jne 0x4039e0
push ebx
push str.__s__REMOTE_MY_PICTURES
lea eax, [esp + 0x18]
push eax
jmp 0x403a38
push str.AI_TouchMedia
push str.koan
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x403a2d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x403a0e
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0xc80000
push 0
push 0x319
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x409860
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x403a21
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 7
mov ecx, 1
jb 0x403ade
mov dword [0x40c51c], ecx
cmp eax, 6
jb 0x403ad7
mov dword [0x40c520], ecx
add esp, 0x94
ret
cmp eax, 6
jne 0x403acf
cmp dword [esp + 8], 2
jb 0x403ad1
mov dword [0x40c51c], ecx
mov dword [0x40c520], ecx
add esp, 0x94
ret
Function at 0x404433
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4099a0
call fcn.004058a4
mov edi, 0x94
mov eax, edi
call fcn.00405a00
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 [0x40c658], ecx
mov eax, dword [esi + 4]
mov dword [0x40c664], eax
mov edx, dword [esi + 8]
mov dword [0x40c668], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40c65c], esi
cmp ecx, 2
je 0x404493
or esi, 0x8000
mov dword [0x40c65c], esi
shl eax, 8
add eax, edx
mov dword [0x40c660], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4044ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4044ce
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4044e6
cmp eax, 0x20b
je 0x4044d3
mov dword [ebp - 0x1c], esi
jmp 0x4044fa
cmp dword [ecx + 0x84], 0xe
jbe 0x4044ce
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4044f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4044ce
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00405852
pop ecx
test eax, eax
jne 0x404526
cmp dword [0x40c644], 1
jne 0x404513
call fcn.00405007
push 0x1c
call fcn.00404e8f
push 0xff
call fcn.00404cf4
pop ecx
pop ecx
call fcn.004057b0
mov dword [ebp - 4], esi
call fcn.00405605
test eax, eax
jge 0x40453f
push 0x1b
call fcn.0040440e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cbe0], eax
call fcn.004054e3
mov dword [0x40c63c], eax
call fcn.00405441
test eax, eax
jge 0x404565
push 8
call fcn.0040440e
pop ecx
call fcn.0040520e
test eax, eax
jge 0x404576
push 9
call fcn.0040440e
pop ecx
push 1
call fcn.00404d24
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40458c
push eax
call fcn.0040440e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004051b1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4045ad
movzx eax, word [ebp - 0x40]
jmp 0x4045b0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401810
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4045ce
push edi
call fcn.00404e4f
call fcn.00404e71
jmp 0x404600
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004058df
ret
Function at 0x404d8e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40c698], esi
push edi
jne 0x404dae
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 [0x40c694], esi
mov byte [0x40c690], al
jne 0x404e14
mov ecx, dword [0x40c9a8]
test ecx, ecx
je 0x404df5
mov eax, dword [0x40c9a4]
sub eax, 4
cmp eax, ecx
jmp 0x404dee
mov eax, dword [eax]
test eax, eax
je 0x404de0
call eax
mov eax, dword [0x40c9a4]
sub eax, 4
cmp eax, dword [0x40c9a8]
mov dword [0x40c9a4], eax
jae 0x404dd8
mov eax, 0x40c028
mov esi, 0x40c02c
cmp eax, esi
mov edi, eax
jae 0x404e14
mov eax, dword [edi]
test eax, eax
je 0x404e0d
call eax
add edi, 4
cmp edi, esi
jb 0x404e05
mov eax, 0x40c030
mov esi, 0x40c034
cmp eax, esi
mov edi, eax
jae 0x404e33
mov eax, dword [edi]
test eax, eax
je 0x404e2c
call eax
add edi, 4
cmp edi, esi
jb 0x404e24
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404e4d
push dword [ebp + 8]
mov dword [0x40c698], 1
call fcn.00404cf4
pop ebp
ret

Function at 0x404e8f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40c274]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40c140]
je 0x404ec6
inc eax
cmp eax, 0x13
jb 0x404eb7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40c140]
jne 0x404fe9
mov eax, dword [0x40c644]
cmp eax, 1
je 0x404fc4
cmp eax, edx
jne 0x404ef6
cmp dword [0x40c044], 1
je 0x404fc4
cmp ecx, 0xfc
je 0x404fe9
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404f2c
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004070c0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004071c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404f60
mov eax, edi
push eax
call fcn.004071c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x409dc8
push edi
call fcn.00404bd0
add esp, 0x10
push edi
call fcn.004071c0
push dword [esi + 0x40c144]
mov ebx, eax
call fcn.004071c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405a00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004070c0
push edi
push ebx
call fcn.004070d0
push 0x409da8
push ebx
call fcn.004070d0
push dword [esi + 0x40c144]
push ebx
call fcn.004070d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00406fc7
add esp, 0x2c
jmp 0x404fe9
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40c144]
push dword [esi]
call fcn.004071c0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00406efd
add ebp, 0x90
leave
ret
Function at 0x406600
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.00405a00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40669b
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 [0x40c658]
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 0x40669b
cmp eax, 1
je 0x4066bc
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 0x40669b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406668
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406697
xor eax, eax
inc eax
jmp 0x4066db
cmp edi, eax
jae 0x40669f
xor eax, eax
jmp 0x4066db
cmp eax, esi
jae 0x4066a6
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 [0x40c658]
jmp 0x4066bf
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 0x406fc7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c7e0], ebx
push esi
push edi
jne 0x407047
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407082
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c7e0], eax
je 0x407082
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c7e4], eax
call esi
cmp dword [0x40c658], 2
mov dword [0x40c7e8], eax
jne 0x407047
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c7f0], eax
je 0x407047
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c7ec], eax
mov eax, dword [0x40c7ec]
test eax, eax
je 0x40708c
call eax
test eax, eax
je 0x407073
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c7f0]
test eax, eax
je 0x407073
test byte [ebp - 8], 1
jne 0x40708c
cmp dword [0x40c664], 4
jb 0x407086
or byte [ebp + 0x12], 0x20
jmp 0x4070ab
xor eax, eax
jmp 0x4070bb
or byte [ebp + 0x12], 4
jmp 0x4070ab
mov eax, dword [0x40c7e4]
test eax, eax
je 0x4070ab
call eax
mov ebx, eax
test ebx, ebx
je 0x4070ab
mov eax, dword [0x40c7e8]
test eax, eax
je 0x4070ab
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c7e0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4076be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4076ec
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4076f3
cmp ebx, dword [eax + 4]
jae 0x4076f3
xor eax, eax
jmp 0x4078e3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407704
xor eax, eax
inc eax
jmp 0x4078e2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40771a
cmp ecx, edx
jae 0x40785f
cmp dword [eax + 4], 0
je 0x407723
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40770b
cmp dword [ebp + 8], 0
je 0x407745
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40785f
cmp eax, esi
jae 0x40785f
mov eax, dword [0x40c7f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40776a
cmp dword [esi*4 + 0x40c800], edi
je 0x407863
inc esi
cmp esi, eax
jl 0x407758
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4078df
cmp dword [ebp - 8], 0x1000000
jne 0x4078df
test byte [ebp - 0xc], 0xcc
je 0x4077e8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4078df
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4078df
cmp word [eax + 0x18], 0x10b
jne 0x4078df
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4078df
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4077e8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4077e8
test byte [ecx + 0x27], 0x80
jne 0x40785f
push 1
push 0x40c840
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4076fc
mov ecx, dword [0x40c7f8]
test ecx, ecx
mov edx, ecx
jle 0x40781c
lea eax, [ecx*4 + 0x40c7fc]
cmp dword [eax], edi
je 0x40781c
dec edx
sub eax, 4
test edx, edx
jg 0x407810
test edx, edx
jne 0x40784d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407829
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407841
lea eax, [edx*4 + 0x40c800]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40782f
cmp ecx, 0x10
jge 0x40784d
inc ecx
mov dword [0x40c7f8], ecx
push 0
push 0x40c840
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4076fc
xor eax, eax
jmp 0x4078e2
test esi, esi
jle 0x4076fc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40c840
call ebx
test eax, eax
jne 0x4076fc
cmp dword [esi*4 + 0x40c800], edi
je 0x4078b9
mov eax, dword [0x40c7f8]
lea esi, [eax - 1]
test esi, esi
jl 0x4078a7
cmp dword [esi*4 + 0x40c800], edi
je 0x4078a3
dec esi
jns 0x407897
test esi, esi
jge 0x4078b7
cmp eax, 0x10
jge 0x4078b2
inc eax
mov dword [0x40c7f8], eax
lea esi, [eax - 1]
jmp 0x4078b9
je 0x4078d1
xor ecx, ecx
test esi, esi
jl 0x4078d1
lea eax, [ecx*4 + 0x40c800]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4078bf
push 0
push 0x40c840
call ebx
jmp 0x4076fc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret