joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0x410e5c
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x402270
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40229c
xor eax, eax
jmp 0x4022c0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x50], eax
mov dword [0x40febc], 1
mov dword [0x40fec0], 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x30]
mov dword [0x40febc], ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
jne 0x402324
xor eax, eax
jmp 0x402486
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
jmp 0x40233d
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x20
jge 0x402470
mov eax, 1
mov ecx, dword [ebp - 0x1c]
shl eax, cl
and eax, dword [ebp - 0x20]
jne 0x402358
jmp 0x402334
mov edx, 1
mov ecx, dword [ebp - 0x1c]
shl edx, cl
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
jne 0x402378
xor eax, eax
jmp 0x402486
mov eax, 1
cpuid
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xf
mov edx, dword [ebp - 0x18]
shr edx, 0x14
and edx, 0xff
add ecx, edx
mov dword [0x40feb8], ecx
mov eax, dword [ebp - 0x10]
shr eax, 0x1c
and eax, 1
jne 0x4023da
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x14]
mov byte [edx + 0x40fec4], al
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x4c]
mov byte [ecx + 0x40fee4], dl
jmp 0x402334
mov eax, dword [ebp - 4]
shr eax, 0x18
and eax, 0xff
mov dword [ebp - 8], eax
cmp dword [0x40feb8], 0x10
jl 0x402408
mov ecx, dword [ebp - 8]
and ecx, 3
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
sar edx, 2
and edx, 0x3f
mov dword [ebp - 0x4c], edx
jmp 0x40241c
mov eax, dword [ebp - 8]
and eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
sar ecx, 1
and ecx, 7
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x14]
mov byte [edx + 0x40fec4], al
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x4c]
mov byte [ecx + 0x40fee4], dl
cmp dword [ebp - 8], 0
jne 0x402442
mov al, byte [ebp - 0x1c]
mov byte [0x40ff04], al
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x4c]
je 0x40246b
mov edx, dword [0x40fec0]
add edx, 1
mov dword [0x40fec0], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x4c]
mov dl, byte [ebp - 0x1c]
mov byte [ecx + 0x40ff04], dl
jmp 0x402334
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x410350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, 0
cpuid
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
push 4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403ee0
add esp, 0xc
push 4
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00403ee0
add esp, 0xc
push 4
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00403ee0
add esp, 0xc
mov byte [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
push 0x40c28c
call fcn.00403900
add esp, 8
test eax, eax
je 0x402507
xor eax, eax
jmp 0x402668
push 0x40c29c
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402f10
add esp, 8
test eax, eax
jne 0x402553
push 4
lea edx, [ebp - 0x48]
push edx
push 0x40c2a0
push 0x40c2b0
push 0x80000001
call fcn.00402190
add esp, 0x14
push 0
push 0
push 2
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
jmp 0x402668
push str.AMD_Dual_Core_Optimizer_Single_Instance
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x411140], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xb7
jne 0x402580
xor eax, eax
jmp 0x402668
push 0x64
push 0x410e68
push 0x67
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4110d8
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 8]
push eax
call fcn.00402680
add esp, 4
push 0
push 0
call fcn.00403110
add esp, 8
test eax, eax
jne 0x4025cc
mov eax, 1
jmp 0x402668
push 4
push 0x4110d0
push 0x40c2f0
push 0x40c2fc
push 0x80000001
call fcn.00402190
add esp, 0x14
cmp dword [0x4110d0], 0
je 0x402600
push 0x40c314
call fcn.00401310
add esp, 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004027b0
add esp, 8
test eax, eax
jne 0x402616
xor eax, eax
jmp 0x402668
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x402665
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x402663
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402625
mov eax, dword [ebp - 0x2c]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004039b9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4027b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x410350]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [0x410ecc], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x410e68
push 0x4110d8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40280a
xor eax, eax
jmp 0x4029de
push 4
lea edx, [ebp - 4]
push edx
push 4
push str.window_handle
push 0x40c338
push 0x80000001
call fcn.00402200
add esp, 0x18
mov dword [ebp - 0xa8], 0x9c
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
cmp dword [ebp - 0xa4], 6
sete cl
mov dword [0x411144], ecx
cmp dword [0x411144], 0
je 0x4028d2
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41113c], eax
cmp dword [0x41113c], 0
jne 0x40287b
xor eax, eax
jmp 0x4029de
push str.RegisterPowerSettingNotification
mov edx, dword [0x41113c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x410ed0], eax
push str.UnregisterPowerSettingNotification
mov eax, dword [0x41113c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x410e60], eax
cmp dword [0x410ed0], 0
je 0x4028ba
cmp dword [0x410e60], 0
jne 0x4028c1
xor eax, eax
jmp 0x4029de
push 0
push 0x40c4b0
mov ecx, dword [ebp - 4]
push ecx
call dword [0x410ed0]
push 0
mov edx, dword [ebp - 4]
push edx
call sub.WTSAPI32.dll_WTSRegisterSessionNotification
push 0x1f8
push 0
push 0x410ed8
call fcn.004039d0
add esp, 0xc
push str.Shell32.dll
call fcn.00402700
add esp, 4
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0x50000
jb 0x40292d
ja 0x402921
cmp dword [ebp - 0xb0], 0
jb 0x40292d
mov dword [0x410ed8], 0x1f8
jmp 0x402937
mov dword [0x410ed8], 0x1e8
mov dword [0x410ee0], 0
mov dword [0x410ee4], 7
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x6b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x410eec], eax
mov ecx, dword [ebp - 4]
mov dword [0x410edc], ecx
mov dword [0x410ee8], 0x8000
push 0x80
push str.AMD_Dual_Core_Optimizer
push 0x410ef0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x410ed8
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
cmp dword [0x410eec], 0
je 0x4029cb
mov edx, dword [0x410eec]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
test eax, eax
je 0x4029cb
mov dword [0x410eec], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004039b9
mov esp, ebp
pop ebp
ret
Function at 0x403110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [0x41114c], 0
mov dword [0x411150], 0
mov dword [0x411154], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004011f0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4031da
cmp dword [ebp - 8], 0
je 0x4031da
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x41114c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x411154], eax
cmp dword [0x41114c], 0
je 0x4031da
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x403270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x411150], eax
cmp dword [0x411150], 0
jne 0x4031be
call fcn.00403200
push 0xffffffffffffffff
mov ecx, dword [0x411154]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x411154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4031ef
cmp dword [ebp - 8], 0
je 0x4031ef
mov dword [ebp - 0x10], 1
jmp 0x4031f6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x406287
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4062a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407885
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4062c8
test byte [esp + 8], 2
je 0x4062c8
mov dword [0x411174], 0xd
mov dword [0x411178], 5
jmp 0x4062a3
xor eax, eax
ret

Function at 0x406365
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4111c0], esi
push edi
jne 0x406385
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 [0x4111bc], esi
mov byte [0x4111b8], al
jne 0x4063eb
mov ecx, dword [0x411908]
test ecx, ecx
je 0x4063cc
mov eax, dword [0x411904]
sub eax, 4
cmp eax, ecx
jmp 0x4063c5
mov eax, dword [eax]
test eax, eax
je 0x4063b7
call eax
mov eax, dword [0x411904]
sub eax, 4
cmp eax, dword [0x411908]
mov dword [0x411904], eax
jae 0x4063af
mov eax, 0x40f030
mov esi, 0x40f038
cmp eax, esi
mov edi, eax
jae 0x4063eb
mov eax, dword [edi]
test eax, eax
je 0x4063e4
call eax
add edi, 4
cmp edi, esi
jb 0x4063dc
mov eax, 0x40f03c
mov esi, 0x40f044
cmp eax, esi
mov edi, eax
jae 0x40640a
mov eax, dword [edi]
test eax, eax
je 0x406403
call eax
add edi, 4
cmp edi, esi
jb 0x4063fb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x406424
push dword [ebp + 8]
mov dword [0x4111c0], 1
call fcn.004062cb
pop ebp
ret
Function at 0x406745
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
and dword [ebp - 0x18], 0
push esi
or esi, 0xffffffff
mov dword [eax + 4], esi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
and eax, 0x80
push 0
mov dword [ebp - 0xc], eax
pop eax
push dword [ebp + 0xc]
sete al
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4067a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407885
pop ecx
mov eax, esi
jmp 0x406866
push ebx
push edi
call fcn.004045fa
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x406870
mov ecx, eax
mov esi, eax
sar ecx, 5
lea edi, [ecx*4 + 0x411800]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
mov byte [esi + eax + 4], 0x89
call fcn.004045fa
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406869
sar eax, 5
lea ecx, [eax*4 + 0x411800]
mov edx, dword [ecx]
mov eax, ebx
and eax, 0x1f
shl eax, 3
mov byte [eax + edx + 4], 0x89
mov edx, 0x8000
test dword [ebp + 0x10], edx
jne 0x406811
test byte [ebp + 0x11], 0x40
jne 0x406823
cmp dword [0x41134c], edx
jne 0x406823
mov edx, dword [edi]
lea edx, [esi + edx + 4]
and byte [edx], 0x7f
mov edx, dword [ecx]
lea edx, [eax + edx + 4]
and byte [edx], 0x7f
cmp dword [ebp - 0xc], 0
je 0x40683b
mov edx, dword [edi]
lea edx, [esi + edx + 4]
or byte [edx], 0x10
mov ecx, dword [ecx]
lea eax, [eax + ecx + 4]
or byte [eax], 0x10
push dword [ebp - 4]
mov esi, dword [ebp - 0x10]
push esi
call fcn.00404697
push dword [ebp - 8]
push ebx
call fcn.00404697
mov eax, dword [ebp + 8]
and dword [0x411174], 0
add esp, 0x10
mov dword [eax], esi
mov dword [eax + 4], ebx
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov eax, dword [edi]
mov byte [esi + eax + 4], 0
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411174], 0x18
call esi
push dword [ebp - 8]
call esi
and dword [0x411178], 0
or eax, 0xffffffff
jmp 0x406864
Function at 0x4078e4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x410350]
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 + 0x410860]
je 0x40791b
inc eax
cmp eax, 0x13
jb 0x40790c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410860]
jne 0x407a3e
mov eax, dword [0x41116c]
cmp eax, 1
je 0x407a19
cmp eax, edx
jne 0x40794b
cmp dword [0x4105e4], 1
je 0x407a19
cmp ecx, 0xfc
je 0x407a3e
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 0x407981
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00404e10
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00404870
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4079b5
mov eax, edi
push eax
call fcn.00404870
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c554
push edi
call fcn.00408290
add esp, 0x10
push edi
call fcn.00404870
push dword [esi + 0x410864]
mov ebx, eax
call fcn.00404870
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408150
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404e10
push edi
push ebx
call fcn.00404e20
push 0x40c550
push ebx
call fcn.00404e20
push dword [esi + 0x410864]
push ebx
call fcn.00404e20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040818d
add esp, 0x2c
jmp 0x407a3e
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x410864]
push dword [esi]
call fcn.00404870
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.004039b9
add ebp, 0x90
leave
ret
Function at 0x40818d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4112e4], ebx
push esi
push edi
jne 0x40820d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408248
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4112e4], eax
je 0x408248
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4112e8], eax
call esi
cmp dword [0x411180], 2
mov dword [0x4112ec], eax
jne 0x40820d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4112f4], eax
je 0x40820d
push 0x40cb94
push edi
call esi
mov dword [0x4112f0], eax
mov eax, dword [0x4112f0]
test eax, eax
je 0x408252
call eax
test eax, eax
je 0x408239
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4112f4]
test eax, eax
je 0x408239
test byte [ebp - 8], 1
jne 0x408252
cmp dword [0x41118c], 4
jb 0x40824c
or byte [ebp + 0x12], 0x20
jmp 0x408271
xor eax, eax
jmp 0x408281
or byte [ebp + 0x12], 4
jmp 0x408271
mov eax, dword [0x4112e8]
test eax, eax
je 0x408271
call eax
mov ebx, eax
test ebx, ebx
je 0x408271
mov eax, dword [0x4112ec]
test eax, eax
je 0x408271
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4112e4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4084a2
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 0x4084d0
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 0x4084d7
cmp ebx, dword [eax + 4]
jae 0x4084d7
xor eax, eax
jmp 0x4086c7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4084e8
xor eax, eax
inc eax
jmp 0x4086c6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4084fe
cmp ecx, edx
jae 0x408643
cmp dword [eax + 4], 0
je 0x408507
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4084ef
cmp dword [ebp + 8], 0
je 0x408529
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408643
cmp eax, esi
jae 0x408643
mov eax, dword [0x4112f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40854e
cmp dword [esi*4 + 0x411300], edi
je 0x408647
inc esi
cmp esi, eax
jl 0x40853c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4086c3
cmp dword [ebp - 8], 0x1000000
jne 0x4086c3
test byte [ebp - 0xc], 0xcc
je 0x4085cc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4086c3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4086c3
cmp word [eax + 0x18], 0x10b
jne 0x4086c3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4086c3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4085cc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4085cc
test byte [ecx + 0x27], 0x80
jne 0x408643
push 1
push 0x411340
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4084e0
mov ecx, dword [0x4112f8]
test ecx, ecx
mov edx, ecx
jle 0x408600
lea eax, [ecx*4 + 0x4112fc]
cmp dword [eax], edi
je 0x408600
dec edx
sub eax, 4
test edx, edx
jg 0x4085f4
test edx, edx
jne 0x408631
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40860d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408625
lea eax, [edx*4 + 0x411300]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408613
cmp ecx, 0x10
jge 0x408631
inc ecx
mov dword [0x4112f8], ecx
push 0
push 0x411340
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4084e0
xor eax, eax
jmp 0x4086c6
test esi, esi
jle 0x4084e0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x411340
call ebx
test eax, eax
jne 0x4084e0
cmp dword [esi*4 + 0x411300], edi
je 0x40869d
mov eax, dword [0x4112f8]
lea esi, [eax - 1]
test esi, esi
jl 0x40868b
cmp dword [esi*4 + 0x411300], edi
je 0x408687
dec esi
jns 0x40867b
test esi, esi
jge 0x40869b
cmp eax, 0x10
jge 0x408696
inc eax
mov dword [0x4112f8], eax
lea esi, [eax - 1]
jmp 0x40869d
je 0x4086b5
xor ecx, ecx
test esi, esi
jl 0x4086b5
lea eax, [ecx*4 + 0x411300]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4086a3
push 0
push 0x411340
call ebx
jmp 0x4084e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40931c
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.00408150
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4093b7
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 [0x411180]
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 0x4093b7
cmp eax, 1
je 0x4093d8
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 0x4093b7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409384
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4093b3
xor eax, eax
inc eax
jmp 0x4093f7
cmp edi, eax
jae 0x4093bb
xor eax, eax
jmp 0x4093f7
cmp eax, esi
jae 0x4093c2
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 [0x411180]
jmp 0x4093db
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