joyce8/EMBER2024-capa huggingface dataset:
Function at 0x92e250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x942808
push 0x932288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x92e329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x92e329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009311d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x92e329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x92e329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x92e32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0092e351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x92ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x92ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x92ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x92ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x92ed94
push eax
push esi
call fcn.0093120b
add esp, 8
pop esi
ret 0x10

Function at 0x92eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x92ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x92ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x947320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00930dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x92edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x92ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x92eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x92eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x947320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00930dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x92eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x92ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x92f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x92f131
push esi
call fcn.00932145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00921080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x92f131
push 0
push ebp
call fcn.009213a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00921260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x92f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009212f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x92f121
push 0x947918
push edi
call fcn.009303f0
push eax
push ebx
push esi
call fcn.0092ef60
push 0x9478f8
push edi
call fcn.009303f0
push eax
push ebx
push esi
call fcn.0092ef60
push 0x9478d8
push edi
call fcn.009303f0
push eax
push ebx
push esi
call fcn.0092ef60
push 0x9478c0
push edi
call fcn.009303f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0092ef60
push 0x9478a0
push edi
call fcn.009303f0
push eax
push ebx
push esi
call fcn.0092ef60
push 0x947888
push edi
call fcn.009303f0
push eax
push ebx
push esi
call fcn.0092ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9301b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00930140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00930140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00930140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00930140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x930bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x930c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x94287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x930c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x930c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x406f77
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41c458
call fcn.0040bd54
mov edi, 0x94
mov eax, edi
call fcn.0040beb0
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 [0x42381c], ecx
mov eax, dword [esi + 4]
mov dword [0x423828], eax
mov edx, dword [esi + 8]
mov dword [0x42382c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x423820], esi
cmp ecx, 2
je 0x406fd7
or esi, 0x8000
mov dword [0x423820], esi
shl eax, 8
add eax, edx
mov dword [0x423824], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x407012
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407012
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40702a
cmp eax, 0x20b
je 0x407017
mov dword [ebp - 0x1c], esi
jmp 0x40703e
cmp dword [ecx + 0x84], 0xe
jbe 0x407012
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x407038
cmp dword [ecx + 0x74], 0xe
jbe 0x407012
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00409fbe
pop ecx
test eax, eax
jne 0x40706a
cmp dword [0x4237b0], 1
jne 0x407057
call fcn.0040b4ac
push 0x1c
call fcn.0040b30b
push 0xff
call fcn.0040b13a
pop ecx
pop ecx
call fcn.0040bcca
mov dword [ebp - 4], esi
call fcn.0040bafc
test eax, eax
jge 0x407083
push 0x1b
call fcn.00406ed8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x425304], eax
call fcn.0040b9da
mov dword [0x4237a8], eax
call fcn.0040b938
test eax, eax
jge 0x4070a9
push 8
call fcn.00406ed8
pop ecx
call fcn.0040b705
test eax, eax
jge 0x4070ba
push 9
call fcn.00406ed8
pop ecx
push 1
call fcn.0040b1a0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4070d0
push eax
call fcn.00406ed8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040b6a8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4070f1
movzx eax, word [ebp - 0x40]
jmp 0x4070f4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401168
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x407112
push edi
call fcn.0040b2cb
call fcn.0040b2ed
jmp 0x407144
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040bd8f
ret
Function at 0x40b20a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42385c], esi
push edi
jne 0x40b22a
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 [0x423858], esi
mov byte [0x423854], al
jne 0x40b290
mov ecx, dword [0x423f54]
test ecx, ecx
je 0x40b271
mov eax, dword [0x423f50]
sub eax, 4
cmp eax, ecx
jmp 0x40b26a
mov eax, dword [eax]
test eax, eax
je 0x40b25c
call eax
mov eax, dword [0x423f50]
sub eax, 4
cmp eax, dword [0x423f54]
mov dword [0x423f50], eax
jae 0x40b254
mov eax, 0x421950
mov esi, 0x421b58
cmp eax, esi
mov edi, eax
jae 0x40b290
mov eax, dword [edi]
test eax, eax
je 0x40b289
call eax
add edi, 4
cmp edi, esi
jb 0x40b281
mov eax, 0x421c5c
mov esi, 0x421e64
cmp eax, esi
mov edi, eax
jae 0x40b2af
mov eax, dword [edi]
test eax, eax
je 0x40b2a8
call eax
add edi, 4
cmp edi, esi
jb 0x40b2a0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40b2c9
push dword [ebp + 8]
mov dword [0x42385c], 1
call fcn.0040b13a
pop ebp
ret

Function at 0x40b30b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4223e0]
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 + 0x422840]
je 0x40b340
inc eax
cmp eax, 0x13
jb 0x40b331
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x422840]
jne 0x40b466
mov eax, dword [0x4237b0]
cmp eax, 1
je 0x40b43e
cmp eax, edx
jne 0x40b370
cmp dword [0x422378], 1
je 0x40b43e
cmp ecx, 0xfc
je 0x40b466
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 0x40b3a6
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040bf80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407160
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b3da
mov eax, edi
push eax
call fcn.00407160
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d0a0
push edi
call fcn.0040d8c0
add esp, 0x10
push edi
call fcn.00407160
push dword [esi + 0x422844]
mov ebx, eax
call fcn.00407160
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040beb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040bf80
push edi
push ebx
call fcn.0040bf90
push 0x41d080
push ebx
call fcn.0040bf90
push dword [esi + 0x422844]
push ebx
call fcn.0040bf90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040fde5
add esp, 0x2c
jmp 0x40b466
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x422844]
push dword [esi]
call fcn.00407160
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.00408774
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40c0f3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x423e00]
mov eax, dword [0x4223e0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40c2b9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x423e40]
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 0x40c2b9
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40c15d
xor eax, eax
jmp 0x40c2cd
test al, 0x20
je 0x40c16e
push 2
push edi
push edi
push ecx
call fcn.00410276
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c243
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40c28a
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40c1d0
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40c1c1
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 0x40c1a3
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 0x40c210
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40c21c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40c197
jmp 0x40c21e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40c2b4
cmp dword [ebp + 0x3a4], edi
je 0x40c28a
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40c27c
mov dword [0x423814], eax
jmp 0x40c2c0
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 0x40c26e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40c21e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40c21e
push dword [ebp + 0x3a4]
call fcn.00410217
pop ecx
jmp 0x40c2ca
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40c2a2
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40c156
mov dword [0x423810], 0x1c
mov dword [0x423814], edi
jmp 0x40c2ca
sub eax, dword [ebp - 0x7c]
jmp 0x40c2cd
and dword [0x423814], 0
mov dword [0x423810], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00408774
add ebp, 0x39c
leave
ret
Function at 0x40e72c
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.0040beb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e7c7
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 [0x42381c]
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 0x40e7c7
cmp eax, 1
je 0x40e7e8
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 0x40e7c7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e794
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e7c3
xor eax, eax
inc eax
jmp 0x40e807
cmp edi, eax
jae 0x40e7cb
xor eax, eax
jmp 0x40e807
cmp eax, esi
jae 0x40e7d2
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 [0x42381c]
jmp 0x40e7eb
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 0x40fde5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x423a38], ebx
push esi
push edi
jne 0x40fe65
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40fea0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x423a38], eax
je 0x40fea0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x423a3c], eax
call esi
cmp dword [0x42381c], 2
mov dword [0x423a40], eax
jne 0x40fe65
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x423a48], eax
je 0x40fe65
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x423a44], eax
mov eax, dword [0x423a44]
test eax, eax
je 0x40feaa
call eax
test eax, eax
je 0x40fe91
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x423a48]
test eax, eax
je 0x40fe91
test byte [ebp - 8], 1
jne 0x40feaa
cmp dword [0x423828], 4
jb 0x40fea4
or byte [ebp + 0x12], 0x20
jmp 0x40fec9
xor eax, eax
jmp 0x40fed9
or byte [ebp + 0x12], 4
jmp 0x40fec9
mov eax, dword [0x423a3c]
test eax, eax
je 0x40fec9
call eax
mov ebx, eax
test ebx, ebx
je 0x40fec9
mov eax, dword [0x423a40]
test eax, eax
je 0x40fec9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x423a38]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ffee
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 0x41001c
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 0x410023
cmp ebx, dword [eax + 4]
jae 0x410023
xor eax, eax
jmp 0x410213
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410034
xor eax, eax
inc eax
jmp 0x410212
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41004a
cmp ecx, edx
jae 0x41018f
cmp dword [eax + 4], 0
je 0x410053
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41003b
cmp dword [ebp + 8], 0
je 0x410075
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41018f
cmp eax, esi
jae 0x41018f
mov eax, dword [0x423a50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41009a
cmp dword [esi*4 + 0x423a58], edi
je 0x410193
inc esi
cmp esi, eax
jl 0x410088
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41020f
cmp dword [ebp - 8], 0x1000000
jne 0x41020f
test byte [ebp - 0xc], 0xcc
je 0x410118
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41020f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41020f
cmp word [eax + 0x18], 0x10b
jne 0x41020f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41020f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410118
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410118
test byte [ecx + 0x27], 0x80
jne 0x41018f
push 1
push 0x423a98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41002c
mov ecx, dword [0x423a50]
test ecx, ecx
mov edx, ecx
jle 0x41014c
lea eax, [ecx*4 + 0x423a54]
cmp dword [eax], edi
je 0x41014c
dec edx
sub eax, 4
test edx, edx
jg 0x410140
test edx, edx
jne 0x41017d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410159
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410171
lea eax, [edx*4 + 0x423a58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41015f
cmp ecx, 0x10
jge 0x41017d
inc ecx
mov dword [0x423a50], ecx
push 0
push 0x423a98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41002c
xor eax, eax
jmp 0x410212
test esi, esi
jle 0x41002c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x423a98
call ebx
test eax, eax
jne 0x41002c
cmp dword [esi*4 + 0x423a58], edi
je 0x4101e9
mov eax, dword [0x423a50]
lea esi, [eax - 1]
test esi, esi
jl 0x4101d7
cmp dword [esi*4 + 0x423a58], edi
je 0x4101d3
dec esi
jns 0x4101c7
test esi, esi
jge 0x4101e7
cmp eax, 0x10
jge 0x4101e2
inc eax
mov dword [0x423a50], eax
lea esi, [eax - 1]
jmp 0x4101e9
je 0x410201
xor ecx, ecx
test esi, esi
jl 0x410201
lea eax, [ecx*4 + 0x423a58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4101ef
push 0
push 0x423a98
call ebx
jmp 0x41002c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret