joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e570
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47adc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004738d6
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043df10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00473804
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004700c8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004700c8
push 1
push 0
push 0
mov ecx, esi
call fcn.00470070
push 1
push 0
push 1
mov ecx, esi
call fcn.00470070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00473948
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e6f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ade8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004738d6
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043df10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00473804
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e7b4
cmp dword [esp + 0x40], 1
jne 0x43e7b2
cmp ecx, eax
jge 0x43e7b4
mov eax, ecx
cmp eax, 0xc8
jge 0x43e7c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e570
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00473948
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ef40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ae53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046e4e8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00473b7e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047509a
test eax, eax
je 0x43f05c
mov ecx, dword [esp + 0x3c]
call fcn.00473bab
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f020
push edi
mov ecx, esi
call fcn.00471216
mov ecx, esi
call fcn.0043f1c0
cmp dword [esp + 0x38], 1
jne 0x43f055
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00471351
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441a90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441ac3
push esi
call fcn.00444ba0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441abc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441b49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441b32
mov eax, dword [esi + 8]
test eax, eax
je 0x441ae7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441b2e
cmp eax, 2
je 0x441b32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441ada
cmp eax, 3
je 0x441b0d
cmp eax, 1
jne 0x441ada
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441ada
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441ada
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441b70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441b58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441b70
add esp, 4
pop esi
ret

Function at 0x44d690
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44d733
test eax, eax
jbe 0x44d733
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44d733
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44d6de
xor esi, esi
jmp 0x44d6e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44d70f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044f5a0
add esi, eax
push esi
mov ebx, esi
call fcn.0044f5a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44d6f0
pop ebp
test edi, edi
pop edi
jne 0x44d733
test ebx, ebx
je 0x44d733
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045def0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44d875
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44d98d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d98d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046e93a
mov esi, eax
test esi, esi
je 0x44d98d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44d98d
mov ecx, esi
call fcn.0044d7e0
cmp edi, eax
jge 0x44d98d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44d913
mov dword [esp + 0x34], 1
jmp 0x44d96e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44d98d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044cdd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x456570
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4565bc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4565bc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4565a6
push eax
call ebp
test ax, ax
jl 0x4565b4
inc esi
add edi, 4
cmp esi, 6
jb 0x456598
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00456270
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45a3e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x45a440
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x45a440
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x45a440
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x45a440
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45a450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46f2de
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46f316
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046d392
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046d36a
jmp 0x46f322
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4709d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x470a12
call fcn.00476610
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x470a12
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470a09
xor eax, eax
jmp 0x470a1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00470a20
pop edi
pop esi
pop ebx
ret 4

Function at 0x476b40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x476b6e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476b8c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476aa6
jmp 0x476b8c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476b8c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476aa6
test edi, edi
mov eax, edi
jne 0x476b76
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x30001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x3000102e
cmp bl, 0xd7
je 0x3000102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x3000104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x30001023
jmp 0x3000104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.30001af0
cmp bl, 0xd8
jne 0x3000104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x3000104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x30001045
pop esi
pop ebx
pop ebp
ret

Function at 0x300010c1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x14]
push esi
push 0x8000040
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x300010fc
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x3000112a
push 0x40
push 0x101000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x3000112a
push esi
mov eax, 0x30001130
push esi
push eax
push eax
push 0x80030008
call fcn.30001057
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x30001315
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x30001371
push esi
push edi
push ebx
mov edi, 0x400
push ebx
lea eax, [ebp - 0x800]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x400]
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
push ebx
push ebx
call esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
pop esi
jmp 0x3000137d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
cmp ebp, 0x100
push edi
jle 0x401015
mov ebp, 0x100
mov esi, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x40101d
mov edi, dword [esp + 0x14]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor bl, bl
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
mov al, byte [ecx + esi]
and edx, 0xff
mov dl, byte [edx + edi]
mov byte [0x40809e], al
add dl, al
add bl, dl
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x1c]
and eax, 0xff
add eax, esi
mov dl, byte [eax]
mov byte [ecx + esi], dl
mov dl, byte [0x40809e]
mov byte [eax], dl
mov al, byte [esp + 0x18]
inc al
and eax, 0xff
cdq
idiv ebp
inc ecx
cmp ecx, 0x100
mov byte [esp + 0x18], dl
jl 0x40103e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4010a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x401153
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jl 0x401153
push edi
mov edi, dword [esp + 0x14]
mov al, byte [edi + 0x101]
mov dl, byte [edi + 0x100]
mov byte [esp + 0xc], al
xor eax, eax
test ecx, ecx
jle 0x40113b
push ebx
push esi
inc dl
mov bl, byte [esp + 0x14]
mov byte [esp + 0x1c], dl
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
lea esi, [ecx + edi]
mov cl, byte [ecx + edi]
add bl, cl
mov byte [0x40809e], cl
mov byte [esp + 0x14], bl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
add ecx, edi
mov bl, byte [ecx]
mov byte [esi], bl
mov bl, byte [0x40809e]
mov byte [ecx], bl
mov cl, byte [esi]
mov bl, byte [0x40809e]
add ecx, ebx
mov bl, byte [eax + ebp]
and ecx, 0xff
mov cl, byte [ecx + edi]
xor bl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax + ebp], bl
inc eax
cmp eax, ecx
jl 0x4010d7
pop esi
pop ebx
mov byte [edi + 0x100], dl
mov dl, byte [esp + 0xc]
mov byte [edi + 0x101], dl
pop edi
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40f34f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a0b5
and dword [ebp - 4], 0
cmp dword [0x418b2c], 0
mov ebx, eax
jne 0x40f400
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f4b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f4b1
push eax
call fcn.0040a043
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418b2c], eax
call esi
push eax
call fcn.0040a043
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418b30], eax
call esi
push eax
call fcn.0040a043
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418b34], eax
call esi
push eax
call fcn.0040a043
pop ecx
mov dword [0x418b3c], eax
test eax, eax
je 0x40f400
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a043
pop ecx
mov dword [0x418b38], eax
mov eax, dword [0x418b38]
cmp eax, ebx
je 0x40f458
cmp dword [0x418b3c], ebx
je 0x40f458
push eax
call fcn.0040a0be
push dword [0x418b3c]
mov esi, eax
call fcn.0040a0be
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f458
test edi, edi
je 0x40f458
call esi
test eax, eax
je 0x40f44f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f44f
test byte [ebp - 0xc], 1
jne 0x40f458
or dword [ebp + 0x10], 0x200000
jmp 0x40f491
mov eax, dword [0x418b30]
cmp eax, ebx
je 0x40f491
push eax
call fcn.0040a0be
pop ecx
test eax, eax
je 0x40f491
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f491
mov eax, dword [0x418b34]
cmp eax, ebx
je 0x40f491
push eax
call fcn.0040a0be
pop ecx
test eax, eax
je 0x40f491
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b2c]
call fcn.0040a0be
pop ecx
test eax, eax
je 0x40f4b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f4b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10574
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
push ebx
push esi
mov dword [ebp - 0x14], ecx
add ecx, edx
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [ecx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x18]
xor ebx, ebx
add edi, edx
add eax, edx
add esi, edx
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ecx
jbe 0x10626
movzx ecx, word [edi + ebx*2]
mov ecx, dword [eax + ecx*4]
mov ebx, dword [ebp - 0x14]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
jb 0x105cc
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp dword [ebp - 0x10], ecx
jb 0x1061a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [esi + ecx*4]
add ecx, edx
mov dword [ebp - 8], ecx
mov cl, byte [ecx]
mov ebx, dword [ebp - 4]
mov byte [ebp + 0xb], cl
cmp cl, byte [ebx]
jne 0x10611
test cl, cl
je 0x1060d
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + 1]
mov byte [ebp + 0xb], cl
cmp cl, byte [ebx + 1]
jne 0x10611
mov ecx, dword [ebp - 8]
add dword [ebp - 4], 2
inc ecx
inc ecx
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], ecx
jne 0x105dd
xor ecx, ecx
jmp 0x10616
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x1062f
mov ebx, dword [ebp - 0xc]
inc ebx
cmp ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
jb 0x105b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 0x10]
add eax, edx
jmp 0x10628

Function at 0x10636
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call edi
cmp eax, 0x8000001a
je 0x106d8
push esi
push 0x4d5a444d
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
je 0x106d7
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x106cf
mov ax, word [esi + 0xc]
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
lea eax, [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
Function at 0x106e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 0x24]
push eax
xor ebx, ebx
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x1c], 0x119e4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
je 0x10728
or eax, 0xffffffff
jmp 0x10869
push esi
push edi
push ebx
push dword [ebp - 4]
call fcn.00010636
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esi, eax
cmp esi, ebx
je 0x10860
push dword [ebp - 4]
call edi
push ebx
push esi
mov dword [ebp - 4], esi
call fcn.00010636
mov esi, eax
cmp esi, ebx
je 0x10860
push dword [ebp - 4]
call edi
push ebx
push esi
mov dword [ebp - 4], esi
call fcn.00010636
mov esi, eax
cmp esi, ebx
je 0x10860
push dword [ebp - 4]
call edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 1
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov dword [ebp - 4], esi
push dword [ebp - 4]
xor esi, esi
call ebx
cmp eax, 0x8000001a
je 0x10860
push 0x4d5a444d
push dword [ebp - 8]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10860
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 1
push esi
push dword [ebp - 4]
call ebx
test eax, eax
mov edx, dword [ebp - 0xc]
jne 0x10857
cmp dword [edx + 0xc], 0x5c
jb 0x10857
mov eax, dword [edx + 8]
add eax, edx
cmp dword [eax], 0x50434146
jne 0x10857
mov cx, word [eax + 0x30]
mov word [0x1339e], cx
mov cl, byte [eax + 0x34]
mov byte [0x13398], cl
mov cl, byte [eax + 0x35]
mov byte [0x133b0], cl
mov cx, word [eax + 0x38]
mov word [0x133a4], cx
mov si, word [eax + 0x40]
mov word [0x1339a], si
mov bl, byte [eax + 0x58]
shr bl, 1
movzx si, bl
add si, cx
mov word [0x133a2], si
mov cx, word [eax + 0x3c]
mov word [0x133a8], cx
mov si, word [eax + 0x44]
mov word [0x133a0], si
mov al, byte [eax + 0x58]
shr al, 1
movzx ax, al
add ax, cx
xor esi, esi
mov word [0x133aa], ax
inc esi
push 0
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 4]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret