joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c4b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478868
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42c4e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42c5fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42c4fd
mov eax, 0xffffffc7
jmp 0x42c5fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42c50e
cmp dword [esi + 8], eax
jne 0x42c4fd
cmp dword [esi + 8], eax
jne 0x42c527
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42c527
mov eax, 0xffffffc7
jmp 0x42c5fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42c53b
push eax
mov ecx, ebx
call fcn.0042bce0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401750
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42c56c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401770
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042b450
test eax, eax
mov dword [esp + 0x38], eax
je 0x42c59f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x75d3a8
call fcn.00401950
mov eax, dword [esp + 0x38]
jmp 0x42c5fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042c310
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42c5e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042c330
mov esi, eax
test esi, esi
jne 0x42c613
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042c310
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42c5b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x75d3a8
call fcn.00401950
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x75d3a8
call fcn.00401950
mov eax, esi
jmp 0x42c5fe

Function at 0x430fc0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431020
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431020
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431020
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431020
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 0x431060
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 0x43cb70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479158
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.0047228d
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c4d0
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.004721bb
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.0046eab0
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.0046eab0
push 1
push 0
push 0
mov ecx, esi
call fcn.0046ea58
push 1
push 0
push 1
mov ecx, esi
call fcn.0046ea58
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004722ff
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ccf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479178
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.0047228d
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c4d0
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.004721bb
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 0x43cdb4
cmp dword [esp + 0x40], 1
jne 0x43cdb2
cmp ecx, eax
jge 0x43cdb4
mov eax, ecx
cmp eax, 0xc8
jge 0x43cdc0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cb70
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.004722ff
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d5b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479223
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.0046ceea
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.00472535
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473a51
test eax, eax
je 0x43d6cc
mov ecx, dword [esp + 0x3c]
call fcn.00472562
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 0x43d690
push edi
mov ecx, esi
call fcn.0046fbc9
mov ecx, esi
call fcn.0043d870
cmp dword [esp + 0x38], 1
jne 0x43d6c5
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.0046fd04
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 0x43f8c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f8f3
push esi
call fcn.0044dc80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f8ec
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 0x43f979
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f962
mov eax, dword [esi + 8]
test eax, eax
je 0x43f917
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 0x43f95e
cmp eax, 2
je 0x43f962
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f90a
cmp eax, 3
je 0x43f93d
cmp eax, 1
jne 0x43f90a
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 0x43f90a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f90a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f9a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f988
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f9a0
add esp, 4
pop esi
ret

Function at 0x440220
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x440241
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x440241
mov eax, dword [eax + 0x44]
test eax, eax
je 0x440241
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46dcc6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46dcfe
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.0046bd94
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bd6c
jmp 0x46dd0a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f3b4
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 0x46f3f6
call fcn.00474d31
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f3f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f3ed
xor eax, eax
jmp 0x46f3fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f404
pop edi
pop esi
pop ebx
ret 4
Function at 0x475261
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 0x47528f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4752ad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004751c7
jmp 0x4752ad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4752ad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004751c7
test edi, edi
mov eax, edi
jne 0x475297
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x457ba7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
call fcn.004d24e0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
jl 0x457cc3
mov dword [esp], 0
call fcn.004bd46b
sub esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x457cb9
mov dword [ebp - 0x14], 0xffffffff
call fcn.00461392
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x457c75
call fcn.004c0855
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [0x117804c]
cmp dword [ebp - 0x24], eax
jne 0x457c41
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004559d3
sub esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
nop
jmp 0x457c73
cmp dword [ebp - 0x24], 0
jne 0x457c5f
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0043f586
sub esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
nop
jmp 0x457c73
mov dword [esp], 3
call fcn.004bccd8
sub esp, 4
mov dword [ebp - 0x28], eax
jmp 0x457c88
jmp 0x457c88
nop
mov dword [esp], 5
call fcn.004bccd8
sub esp, 4
mov dword [ebp - 0x34], eax
mov dword [esp], 0x1b
call sub.USER32.dll_GetKeyState
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jle 0x457cac
mov dword [0x1178000], 1
jmp 0x457cba
nop
mov dword [0x1178000], 0
jmp 0x457cba
nop
add dword [ebp - 0xc], 1
jmp 0x457bce
nop
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x461b3d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004d2950
sub esp, 4
call fcn.004d24e0
mov dword [ebp - 0x3c], 0
mov eax, dword [0x1178164]
test eax, eax
jne 0x461b9b
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.USER32.dll_FindWindowW
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [0x1178168], eax
mov dword [0x1178164], 1
jmp 0x461bc5
nop
mov eax, dword [0x1178168]
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.USER32.dll_GetWindow
sub esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x1178168], eax
mov eax, dword [0x1178168]
test eax, eax
je 0x461cc0
mov eax, dword [0x1178168]
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xfffffff0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.USER32.dll_GetWindowLongW
sub esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 0x10000000
test eax, eax
je 0x461cba
mov eax, dword [0x1178168]
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffec
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.USER32.dll_GetWindowLongW
sub esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
and eax, 0x80
test eax, eax
jne 0x461cbd
call fcn.004d2540
call fcn.004d2540
call fcn.004d2590
mov dword [esp + 4], eax
mov dword [esp], 0x100
call fcn.004d0600
sub esp, 8
call fcn.004d2590
mov dword [esp + 4], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004d2770
sub esp, 8
mov eax, dword [0x1178168]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextW
sub esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0x11781cc
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.004d28e0
test eax, eax
je 0x461cda
jmp 0x461cbe
nop
jmp 0x461ccb
nop
jmp 0x461ccb
nop
mov dword [0x1178164], 0
mov eax, dword [0x1178168]
test eax, eax
je 0x461cdd
nop
jmp 0x461b64
nop
jmp 0x461cde
nop
call fcn.004d2540
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004d2710
sub esp, 4
call fcn.004d2690
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004d2920
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x461d0f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xb4
mov dword [ebp - 0xc], 0
call fcn.004d24e0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.004d2990
sub esp, 8
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x70]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 1
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x461d9f
mov word [ebp - 0x40], 0
jmp 0x461da6
nop
mov word [ebp - 0x40], 1
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateProcessW
sub esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x461e76
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x461e6a
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov dword [esp], 1
call fcn.004bccd8
sub esp, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x84]
cmp eax, 0x103
jne 0x461e6d
nop
jmp 0x461e27
nop
jmp 0x461e6e
nop
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xc], eax
jmp 0x461e7e
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004d2920
sub esp, 4
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
leave
ret 8
Function at 0x461ec1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov byte [ebp - 0xa], 0
call fcn.004d24e0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], 0
mov eax, 0
mov edx, 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 9], 0
mov byte [ebp - 9], 0
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x28
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.dll_OpenProcessToken
sub esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x462015
lea eax, [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov edx, 0x1161660
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
sub esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x462001
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 2
lea eax, [ebp - 0x64]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x10
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
sub esp, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov byte [ebp - 9], al
jmp 0x462002
nop
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x34], eax
jmp 0x462016
nop
movzx eax, byte [ebp - 9]
mov byte [ebp - 0xa], al
nop
movzx eax, byte [ebp - 0xa]
leave
ret
Function at 0x478cc7
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x478d5f
push edi
push 0x11f18bc
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x1178238]
test edi, edi
je 0x478d33
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x478d2c
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x1178238
call fcn.004d1c3c
pop ecx
pop ecx
jmp 0x478d2e
mov edi, dword [edi]
test edi, edi
jne 0x478d03
pop ebx
mov eax, dword [0x1174284]
mov esi, eax
inc eax
push 0x10
push 0x1178238
mov dword [0x1174284], eax
call fcn.004d1c7c
pop ecx
pop ecx
push 0x11f18bc
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x478e24
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00478dd8
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ebx, 0x11f18bc
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [0x1178238]
jmp 0x478e55
cmp dword [esi + 0xc], edi
je 0x478e5b
mov esi, dword [esi]
test esi, esi
jne 0x478e4e
jmp 0x478e73
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0x1178238
call fcn.004d1c3c
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x479174
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4791c9
push dword [esp + 0x10]
push 0x4790f3
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x1178240]
test esi, esi
je 0x479222
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4791c1
cmp byte [esi + 0x10], 0
je 0x4791c1
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x47919d
jmp 0x479222
mov esi, dword [0x1178240]
test esi, esi
je 0x479222
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x47921b
cmp byte [esi + 0x11], 0
je 0x4791f7
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x47920e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x1178240
call fcn.004d1c3c
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4791d6
pop ebp
pop edi
pop esi
pop ebx
ret 4