joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43d7c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x43d78f
cmp eax, 2
jne 0x43d7ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x43d7bb
test ecx, ecx
je 0x43d7b6
test cl, 1
jne 0x43d7ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x43d7bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43def0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x43df05
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x43df10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43df10
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43f810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x43f838
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x43f340
push 0
push 0
call fcn.004da73c
add esp, 0x18
mov dword [esi + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x1c], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x43f900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0044d0e0
mov esi, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x43f9ce
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
test ecx, ecx
je 0x43f959
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x43f9bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x43f9bb
push dword [ebp - 4]
push eax
call fcn.0044be80
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov edi, eax
test edi, edi
jne 0x43f9a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x43f9c3
test ebx, ebx
je 0x43f9c3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43f9c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x43f9ce
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4447d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x5444c8]
push edi
push 0xf0
movzx eax, ax
mov edi, 1
push eax
push esi
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x444960
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x444960
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x444960
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x44494b
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x4448c0
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00445c90
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x444938
push eax
call fcn.004d92bb
add esp, 4
jmp 0x444938
cmp dx, ax
jne 0x44493d
push 3
lea eax, [ebp - 0x104]
mov dword [ebp - 0x134], 1
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00445c90
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x444912
push eax
call fcn.004d92bb
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x444838
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 4
Function at 0x4478a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbf08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4478e9
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x420
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 8], eax
test eax, eax
je 0x447967
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x447967
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x10]
mov edx, 1
or esi, 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x44794a
push 0x104
mov ecx, edi
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
push 0x104
push eax
push dword [ebp + 8]
mov ebx, 1
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x44796d
mov byte [ebp + 0xb], bl
jmp 0x447971
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
test bl, 1
je 0x4479a9
cmp esi, 0xffffffff
jne 0x447993
mov eax, dword [edi]
test eax, eax
jne 0x447985
xor esi, esi
jmp 0x447997
push dword [eax - 8]
push eax
call fcn.004d9e5f
add esp, 8
mov esi, eax
test esi, esi
js 0x447a11
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x447a11
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
cmp byte [ebp + 0xb], 0
je 0x447a1b
mov ecx, dword [0x543a90]
test ecx, ecx
je 0x447a1b
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x447a1e
push ecx
push eax
call fcn.004d9e7e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x447a1b
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x447a1e
mov ecx, dword [0x543a94]
test ecx, ecx
je 0x447a1e
cmp dword [eax - 0xc], 0
jl 0x447a1e
push ecx
push eax
call fcn.004d9e7e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x447a1b
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x447a1e
mov esi, 1
jmp 0x447a20
push 0x80070057
call fcn.0043a9b0
mov eax, dword [ebp - 0x10]
xor esi, esi
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x447a41
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x447b40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbf08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x447b89
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x421
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 8], eax
test eax, eax
je 0x447c07
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x447c07
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x10]
mov edx, 1
or esi, 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x447bea
push 0x104
mov ecx, edi
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
push 0x104
push eax
push dword [ebp + 8]
mov ebx, 1
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x447c0d
mov byte [ebp + 0xb], bl
jmp 0x447c11
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
test bl, 1
je 0x447c49
cmp esi, 0xffffffff
jne 0x447c33
mov eax, dword [edi]
test eax, eax
jne 0x447c25
xor esi, esi
jmp 0x447c37
push dword [eax - 8]
push eax
call fcn.004d9e5f
add esp, 8
mov esi, eax
test esi, esi
js 0x447cb1
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x447cb1
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
cmp byte [ebp + 0xb], 0
je 0x447cbb
mov ecx, dword [0x543a90]
test ecx, ecx
je 0x447cbb
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x447cbe
push ecx
push eax
call fcn.004d9e7e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x447cbb
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x447cbe
mov ecx, dword [0x543a94]
test ecx, ecx
je 0x447cbe
cmp dword [eax - 0xc], 0
jl 0x447cbe
push ecx
push eax
call fcn.004d9e7e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x447cbb
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x447cbe
mov esi, 1
jmp 0x447cc0
push 0x80070057
call fcn.0043a9b0
mov eax, dword [ebp - 0x10]
xor esi, esi
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x447ce1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x447e60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x120], 0x11c
push 0xfe
push eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.004d9060
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447f05
mov eax, dword [ebp - 0x11c]
cmp eax, 6
ja 0x447ef2
jne 0x447f05
cmp dword [ebp - 0x118], 2
jb 0x447f05
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret

Function at 0x447fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x448053
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x448052
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x448052
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.004d8a10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x44803e
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.00447f20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x448052
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44b4b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x44b4f4
push eax
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esi + 0x64]
xor edi, edi
mov ecx, esi
push dword [esi + 0x20]
cmp dword [esi + 0x244], edi
je 0x44b55a
call fcn.00447d60
mov ecx, esi
test eax, eax
je 0x44b545
push dword [esi + 0x20]
call fcn.00447a60
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
je 0x44b567
call fcn.00445450
test eax, eax
je 0x44b57c
mov dword [esi + 0x64], 2
jmp 0x44b577
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call fcn.00445570
test eax, eax
je 0x44b57c
mov dword [esi + 0x64], edi
jmp 0x44b577
call fcn.00447dc0
test eax, eax
je 0x44b57c
mov ecx, esi
jmp 0x44b51e
call fcn.00444d90
test eax, eax
je 0x44b57c
mov dword [esi + 0x64], 1
mov edi, 1
push dword [esi + 0x20]
mov ecx, esi
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
call fcn.00447d60
test eax, eax
je 0x44b5b2
mov dword [esi + 0x228], 1
push dword [esi + 0x20]
mov ecx, esi
call fcn.00447dc0
test eax, eax
je 0x44b5ca
mov dword [esi + 0x22c], 1
push dword [esi + 0x20]
mov ecx, esi
call fcn.00447a60
test eax, eax
je 0x44b5e2
mov dword [esi + 0x230], 1
test edi, edi
je 0x44b4dc
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, dword [esi + 0x64]
je 0x44b5fc
push 0
push dword [esi + 0x3c]
call edi
mov eax, dword [esi + 0x64]
sub eax, 0
je 0x44b654
dec eax
je 0x44b62f
dec eax
jne 0x44b677
movdqu xmm0, xmmword [ebp - 0x14]
sub esp, 0x10
mov ecx, esi
mov eax, esp
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [eax], xmm0
call fcn.00449330
jmp 0x44b677
movdqu xmm0, xmmword [ebp - 0x14]
sub esp, 0x10
mov ecx, esi
mov eax, esp
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [eax], xmm0
call fcn.004492a0
jmp 0x44b677
movdqu xmm0, xmmword [ebp - 0x14]
sub esp, 0x10
mov ecx, esi
mov eax, esp
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [eax], xmm0
call fcn.004493c0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x44b4e3
cmp dword [esi + 0x8c], 5
je 0x44b698
push 8
push dword [esi + 0x3c]
call edi
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
Function at 0x4576e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push str.Chrome_WidgetWin_1
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4569c0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], 0
jne 0x457737
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x457758
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4584c0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
test ecx, ecx
jne 0x4584d9
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowW]
jmp 0x4584fb
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x457450
mov dword [ebp - 4], 0
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x458508
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x458541
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x45854b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
test eax, eax
jne 0x45856c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x458580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9f58
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004d9060
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x100000
mov dword [ebp - 0x3c], str.open
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 5
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4585ff
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45862c
push edi
call eax
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45864d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x459130
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x459154
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x458e40
push 0
push 0
call fcn.004da73c
add esp, 0x18
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi + 4], eax
pop esi
setne al
ret

Function at 0x45c9b0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x70], eax
test eax, eax
jne 0x45c9cc
xor eax, eax
pop esi
ret
mov ecx, esi
call fcn.0045bd80
test eax, eax
je 0x45c9c8
lea eax, [esi + 0x78]
push eax
push 0
push esi
push 0x45ca00
push 0
push 0
call fcn.004da73c
xor ecx, ecx
mov dword [esi + 0x74], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x461e20
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x210], eax
test eax, eax
jne 0x461e3f
xor eax, eax
pop esi
ret
mov ecx, esi
call fcn.00461100
test eax, eax
je 0x461e3b
lea eax, [esi + 0x194]
push eax
push 0
push esi
push 0x461e80
push 0
push 0
call fcn.004da73c
xor ecx, ecx
mov dword [esi + 0x214], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x462d50
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x147c
call fcn.004dae70
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1478], eax
lea eax, [ebp - 0x147c]
push eax
mov dword [ebp - 0x1464], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x146c]
push eax
lea eax, [ebp - 0x1468]
push eax
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
mov edx, dword [ebp - 0x1468]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x1458], esi
mov dword [ebp - 0x145c], ecx
nop
cmp esi, dword [ebp - 0x146c]
jae 0x462f47
cmp dword [ebp + 0x10], 0
jne 0x462de1
mov eax, dword [ecx + edx]
cmp eax, dword [ebp - 0x147c]
jne 0x462f2f
mov ebx, dword [ebp - 0x1478]
mov eax, dword [ecx + edx + 4]
mov dword [ebp - 0x1474], eax
mov dword [ebx], eax
xor ebx, ebx
mov eax, dword [ecx + edx + 8]
mov dword [ebp - 0x1470], eax
mov dword [ebp - 0x1460], ebx
cmp dword [edi + 4], ebx
je 0x462f2f
mov ecx, dword [edi + 8]
xor esi, esi
test ecx, ecx
je 0x462e30
mov edi, dword [edi]
mov eax, edi
jmp 0x462e20
cmp dword [eax], ebx
jne 0x462ec9
inc esi
add eax, 4
cmp esi, ecx
jb 0x462e20
xor esi, esi
test esi, esi
je 0x462f1d
lea ebx, [ebx]
test ebx, ebx
jne 0x462f17
mov eax, dword [ebp - 0x1470]
test eax, eax
je 0x462f60
push eax
push dword [esi]
call fcn.004da111
add esp, 8
test eax, eax
jne 0x462edc
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x462ed1
push dword [ebp - 0x1474]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x462edc
push 0xa28
lea eax, [ebp - 0x1454]
push eax
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x462ec0
push 1
push dword [esi + 4]
lea eax, [ebp - 0x1454]
push eax
call fcn.004627b0
add esp, 0xc
test eax, eax
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x1460], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x462edc
mov esi, dword [edi + esi*4]
jmp 0x462e32
mov ebx, 1
mov dword [ebp - 0x1460], ebx
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x462f0d
mov ebx, dword [ebp - 0x1464]
xor edx, edx
mov eax, dword [esi + 0xc]
mov edi, dword [ebx + 8]
div edi
inc edx
cmp edx, edi
jae 0x462f07
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x462ef4
mov ebx, dword [ebp - 0x1460]
mov esi, ecx
test ecx, ecx
jne 0x462e40
mov edx, dword [ebp - 0x1468]
mov esi, dword [ebp - 0x1458]
mov ecx, dword [ebp - 0x145c]
mov edi, dword [ebp - 0x1464]
inc esi
add ecx, 0x10
mov dword [ebp - 0x1458], esi
mov dword [ebp - 0x145c], ecx
test ebx, ebx
je 0x462dc0
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0043a9b0
int3