joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a00b
Capabilities:
Get common file path

Disassembly:
push 0xc34
mov eax, 0x4642fb
call fcn.0041ce47
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x45a064
cmp word [edi], bx
je 0x45a064
push ebx
push edi
call fcn.0043c6af
pop ecx
pop ecx
test eax, eax
jne 0x45a064
mov ecx, edi
call fcn.0040bb47
test al, al
je 0x45a062
push edi
call fcn.0043c785
pop ecx
test eax, eax
je 0x45a062
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x3e8
jl 0x45a038
xor ebx, ebx
test esi, esi
je 0x45a0a6
cmp word [esi], bx
je 0x45a0a6
push ebx
push esi
call fcn.0043c6af
pop ecx
pop ecx
test eax, eax
jne 0x45a0a6
mov edi, ebx
mov ecx, esi
call fcn.0040bb47
test al, al
je 0x45a0a6
push esi
call fcn.0043c785
pop ecx
test eax, eax
je 0x45a0a6
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x45a07c
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0xc14], ecx
mov dword [ebp - 0xc18], ebx
mov word [ebp - 0xc28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc2c], ecx
mov dword [ebp - 0xc30], ebx
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc40]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0xc28]
mov ecx, esi
call fcn.004097cd
mov esi, 0x400
lea eax, [ebp - 0x410]
push esi
push ebx
push eax
call fcn.00436570
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x800
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.00436570
add esp, 0xc
lea eax, [ebp - 0xc10]
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp dword [ebp - 0xc18], 0
je 0x45a1aa
cmp dword [ebp - 0xc14], 8
lea ecx, [ebp - 0xc10]
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
push ecx
push eax
call fcn.004394fa
pop ecx
pop ecx
test eax, eax
je 0x45a1aa
cmp dword [ebp - 0xc14], 8
lea eax, [ebp - 0xc28]
push ebx
cmovae eax, dword [ebp - 0xc28]
push eax
call fcn.0043c6af
pop ecx
pop ecx
test eax, eax
jne 0x45a1aa
cmp dword [ebp - 0xc14], 8
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
push eax
call fcn.0043c8a8
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xc40]
call fcn.00401ca4
push ebx
push 1
lea ecx, [ebp - 0xc28]
call fcn.00401ca4
call fcn.0041cdf1
ret 8
Function at 0x45b923
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x485094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov ebx, ecx
push edi
push eax
call fcn.00436570
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb8]
cmp eax, dword [ebx + 0xbc]
je 0x45ba01
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c30c
mov esp, ebp
pop ebp
ret 4
Function at 0x45d090
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x258
mov eax, dword [0x485094]
xor eax, esp
mov dword [esp + 0x254], eax
push esi
push edi
lea eax, [esp + 0xc8]
xor edi, edi
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x45d22c
mov eax, dword [esp + 0xc8]
cmp al, 1
jne 0x45d22c
shr eax, 8
cmp al, 1
jne 0x45d22c
xorps xmm0, xmm0
mov dword [esp + 0x64], 0x1388
xor esi, esi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
cmp dword [0x47a0a0], esi
je 0x45d216
mov eax, 0x47a0a0
nop dword [eax]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push dword [eax]
lea ecx, [esp + 0x70]
call fcn.00418f5b
test eax, eax
je 0x45d1c9
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xc]
call fcn.00418a24
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.00418c58
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x14]
call fcn.00418d33
movups xmm0, xmmword [eax]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xb4]
push eax
movups xmmword [esp + 0xb8], xmm0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x45d1c9
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x45d1c9
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x45d1f4
inc esi
cmp dword [esi*4 + 0x47a0a0], edi
lea eax, [esi*4 + 0x47a0a0]
jne 0x45d120
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041c30c
mov esp, ebp
pop ebp
ret
movzx ecx, word [esp + 0x90]
movzx edi, byte [esp + 0x92]
shl ecx, 8
or edi, ecx
movzx ecx, byte [esp + 0x96]
shl edi, 8
or edi, ecx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041c30c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041c30c
mov esp, ebp
pop ebp
ret
Function at 0x45f560
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
cmp dword [esi + 0x14], 8
jb 0x45f57d
mov eax, dword [esi]
jmp 0x45f57f
mov eax, esi
test eax, eax
je 0x45f6a3
cmp word [eax], 0
je 0x45f6a3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45f6a3
test al, 0x10
jne 0x45f6a3
cmp dword [esi + 0x14], 8
jb 0x45f5b1
mov esi, dword [esi]
push 0x479544
push esi
call fcn.0043cf4b
mov esi, eax
add esp, 8
test esi, esi
je 0x45f6a3
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.0043f4a4
push 2
push 0
push esi
call fcn.0043ec34
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0043f4a4
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0043f52b
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x45f69a
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.0043d148
add esp, 0x10
test eax, eax
je 0x45f69a
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x45f69a
cmp dword [esp + 0x20], 0x48535844
jne 0x45f69a
cmp dword [esp + 0x24], 0x28
jne 0x45f69a
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.0043c824
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bb9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4114f8
call fcn.00408a58
mov edi, 0x94
mov eax, edi
call fcn.0040acc0
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 [0x416724], ecx
mov eax, dword [esi + 4]
mov dword [0x416730], eax
mov edx, dword [esi + 8]
mov dword [0x416734], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x416728], esi
cmp ecx, 2
je 0x405c19
or esi, 0x8000
mov dword [0x416728], esi
shl eax, 8
add eax, edx
mov dword [0x41672c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405c54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405c54
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405c6c
cmp eax, 0x20b
je 0x405c59
mov dword [ebp - 0x1c], esi
jmp 0x405c80
cmp dword [ecx + 0x84], 0xe
jbe 0x405c54
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405c7a
cmp dword [ecx + 0x74], 0xe
jbe 0x405c54
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040946e
pop ecx
test eax, eax
jne 0x405c94
push 0x1c
call fcn.00405b95
pop ecx
call fcn.00409329
test eax, eax
jne 0x405ca5
push 0x10
call fcn.00405b95
pop ecx
call fcn.0040ac37
mov dword [ebp - 4], esi
call fcn.0040aa39
test eax, eax
jge 0x405cbe
push 0x1b
call fcn.00405b70
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417e04], eax
call fcn.0040a917
mov dword [0x416594], eax
call fcn.0040a875
test eax, eax
jge 0x405ce4
push 8
call fcn.00405b70
pop ecx
call fcn.0040a642
test eax, eax
jge 0x405cf5
push 9
call fcn.00405b70
pop ecx
push 1
call fcn.0040a164
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405d0b
push eax
call fcn.00405b70
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040a5e5
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405d2c
movzx eax, word [ebp - 0x40]
jmp 0x405d2f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004028a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405d4d
push edi
call fcn.0040a291
call fcn.0040a2b3
jmp 0x405d7f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00408a93
ret
Function at 0x40a1ce
Capabilities:
Terminate process

Disassembly:
push 8
push 0x411e50
call fcn.00408a58
push 8
call fcn.00408a24
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x416764], esi
jne 0x40a202
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x416760], esi
mov al, byte [ebp + 0x10]
mov byte [0x41675c], al
cmp dword [ebp + 0xc], edi
jne 0x40a24c
cmp dword [0x416da8], edi
je 0x40a23c
mov eax, dword [0x416da4]
sub eax, 4
mov dword [0x416da4], eax
cmp eax, dword [0x416da8]
jb 0x40a23c
mov eax, dword [eax]
cmp eax, edi
je 0x40a21d
call eax
jmp 0x40a21d
push 0x415050
mov eax, 0x415048
call fcn.0040a14c
pop ecx
push 0x41505c
mov eax, 0x415054
call fcn.0040a14c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40a27d
cmp dword [ebp + 0x10], edi
jne 0x40a28b
mov dword [0x416764], esi
push dword [ebp + 8]
call fcn.0040a10a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40a28a
push 8
call fcn.0040896f
pop ecx
ret
call fcn.00408a93
ret

Function at 0x40a2d1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x415460]
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 + 0x415a30]
je 0x40a306
inc eax
cmp eax, 0x13
jb 0x40a2f7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415a30]
jne 0x40a42c
mov eax, dword [0x41659c]
cmp eax, 1
je 0x40a404
cmp eax, edx
jne 0x40a336
cmp dword [0x415438], 1
je 0x40a404
cmp ecx, 0xfc
je 0x40a42c
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 0x40a36c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040ad90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405d90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a3a0
mov eax, edi
push eax
call fcn.00405d90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x412248
push edi
call fcn.0040cb70
add esp, 0x10
push edi
call fcn.00405d90
push dword [esi + 0x415a34]
mov ebx, eax
call fcn.00405d90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040acc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ad90
push edi
push ebx
call fcn.0040ada0
push 0x412228
push ebx
call fcn.0040ada0
push dword [esi + 0x415a34]
push ebx
call fcn.0040ada0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040f0fd
add esp, 0x2c
jmp 0x40a42c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x415a34]
push dword [esi]
call fcn.00405d90
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.004071e0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40af03
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x415460]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40af34
xor eax, eax
jmp 0x40b0bd
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x416ca0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40af70
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040f23a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b04b
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40b089
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40afd4
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40afc5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40afa5
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b014
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40b01d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40af96
jmp 0x40b01f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40b0b8
cmp dword [ebp - 0x6c], edi
je 0x40b089
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40b07e
call fcn.0040b800
mov dword [eax], 9
call fcn.0040b809
mov dword [eax], esi
jmp 0x40b0b3
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b073
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40b01f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40b01f
push dword [ebp - 0x6c]
call fcn.0040b812
pop ecx
jmp 0x40b0b3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b0a1
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40b0a1
xor eax, eax
jmp 0x40b0bb
call fcn.0040b800
mov dword [eax], 0x1c
call fcn.0040b809
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40b0bb
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004071e0
add ebp, 0x3a0
leave
ret
Function at 0x40d9dc
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.0040acc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40da77
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 [0x416724]
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 0x40da77
cmp eax, 1
je 0x40da98
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 0x40da77
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40da44
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40da73
xor eax, eax
inc eax
jmp 0x40dab7
cmp edi, eax
jae 0x40da7b
xor eax, eax
jmp 0x40dab7
cmp eax, esi
jae 0x40da82
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 [0x416724]
jmp 0x40da9b
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 0x40dc81
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 0x40dcaf
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 0x40dcb6
cmp ebx, dword [eax + 4]
jae 0x40dcb6
xor eax, eax
jmp 0x40dea6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40dcc7
xor eax, eax
inc eax
jmp 0x40dea5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40dcdd
cmp ecx, edx
jae 0x40de22
cmp dword [eax + 4], 0
je 0x40dce6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40dcce
cmp dword [ebp + 8], 0
je 0x40dd08
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40de22
cmp eax, esi
jae 0x40de22
mov eax, dword [0x416908]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40dd2d
cmp dword [esi*4 + 0x416910], edi
je 0x40de26
inc esi
cmp esi, eax
jl 0x40dd1b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dea2
cmp dword [ebp - 8], 0x1000000
jne 0x40dea2
test byte [ebp - 0xc], 0xcc
je 0x40ddab
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40dea2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40dea2
cmp word [eax + 0x18], 0x10b
jne 0x40dea2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40dea2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ddab
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ddab
test byte [ecx + 0x27], 0x80
jne 0x40de22
push 1
push 0x416950
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40dcbf
mov ecx, dword [0x416908]
test ecx, ecx
mov edx, ecx
jle 0x40dddf
lea eax, [ecx*4 + 0x41690c]
cmp dword [eax], edi
je 0x40dddf
dec edx
sub eax, 4
test edx, edx
jg 0x40ddd3
test edx, edx
jne 0x40de10
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ddec
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40de04
lea eax, [edx*4 + 0x416910]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40ddf2
cmp ecx, 0x10
jge 0x40de10
inc ecx
mov dword [0x416908], ecx
push 0
push 0x416950
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40dcbf
xor eax, eax
jmp 0x40dea5
test esi, esi
jle 0x40dcbf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x416950
call ebx
test eax, eax
jne 0x40dcbf
cmp dword [esi*4 + 0x416910], edi
je 0x40de7c
mov eax, dword [0x416908]
lea esi, [eax - 1]
test esi, esi
jl 0x40de6a
cmp dword [esi*4 + 0x416910], edi
je 0x40de66
dec esi
jns 0x40de5a
test esi, esi
jge 0x40de7a
cmp eax, 0x10
jge 0x40de75
inc eax
mov dword [0x416908], eax
lea esi, [eax - 1]
jmp 0x40de7c
je 0x40de94
xor ecx, ecx
test esi, esi
jl 0x40de94
lea eax, [ecx*4 + 0x416910]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40de82
push 0
push 0x416950
call ebx
jmp 0x40dcbf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f0fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41696c], ebx
push esi
push edi
jne 0x40f17d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f1b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41696c], eax
je 0x40f1b8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x416970], eax
call esi
cmp dword [0x416724], 2
mov dword [0x416974], eax
jne 0x40f17d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41697c], eax
je 0x40f17d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x416978], eax
mov eax, dword [0x416978]
test eax, eax
je 0x40f1c2
call eax
test eax, eax
je 0x40f1a9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41697c]
test eax, eax
je 0x40f1a9
test byte [ebp - 8], 1
jne 0x40f1c2
cmp dword [0x416730], 4
jb 0x40f1bc
or byte [ebp + 0x12], 0x20
jmp 0x40f1e1
xor eax, eax
jmp 0x40f1f1
or byte [ebp + 0x12], 4
jmp 0x40f1e1
mov eax, dword [0x416970]
test eax, eax
je 0x40f1e1
call eax
mov ebx, eax
test ebx, ebx
je 0x40f1e1
mov eax, dword [0x416974]
test eax, eax
je 0x40f1e1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41696c]
pop edi
pop esi
pop ebx
leave
ret