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

Disassembly:
push 0xffffffffffffffff
push 0x4712b8
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.00469f28
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c650
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.00469e56
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.0046671c
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.0046671c
push 1
push 0
push 0
mov ecx, esi
call fcn.004666c4
push 1
push 0
push 1
mov ecx, esi
call fcn.004666c4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469f9a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ce30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4712d8
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.00469f28
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c650
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.00469e56
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 0x43cef4
cmp dword [esp + 0x40], 1
jne 0x43cef2
cmp ecx, eax
jge 0x43cef4
mov eax, ecx
cmp eax, 0xc8
jge 0x43cf00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ccb0
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.00469f9a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d680
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471343
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.00464b37
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.0046a1d0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046b6ec
test eax, eax
je 0x43d79c
mov ecx, dword [esp + 0x3c]
call fcn.0046a1fd
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 0x43d760
push edi
mov ecx, esi
call fcn.00467867
mov ecx, esi
call fcn.0043d900
cmp dword [esp + 0x38], 1
jne 0x43d795
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.004679a2
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 0x4401b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4401e3
push esi
call fcn.004432b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4401dc
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 0x440269
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440252
mov eax, dword [esi + 8]
test eax, eax
je 0x440207
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 0x44024e
cmp eax, 2
je 0x440252
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4401fa
cmp eax, 3
je 0x44022d
cmp eax, 1
jne 0x4401fa
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 0x4401fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4401fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440290
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440278
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440290
add esp, 4
pop esi
ret

Function at 0x44bdc0
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 0x44be63
test eax, eax
jbe 0x44be63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44be63
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 0x44be0e
xor esi, esi
jmp 0x44be14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44be3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403140
add esi, eax
push esi
mov ebx, esi
call fcn.00403140
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44be20
pop ebp
test edi, edi
pop edi
jne 0x44be63
test ebx, ebx
je 0x44be63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00454840
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44bfa5
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 0x44c0bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c0bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00464f89
mov esi, eax
test esi, esi
je 0x44c0bd
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 0x44c0bd
mov ecx, esi
call fcn.0044bf10
cmp edi, eax
jge 0x44c0bd
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 0x44c043
mov dword [esp + 0x34], 1
jmp 0x44c09e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44c0bd
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.0044b500
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 0x44f4b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44f4fa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44f529
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44f56b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46592d
Capabilities:
Get graphical window text

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

Function at 0x467024
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 0x467066
call fcn.0046cad7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467066
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46705d
xor eax, eax
jmp 0x46706e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467074
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d007
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 0x46d035
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d053
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cf6d
jmp 0x46d053
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d053
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cf6d
test edi, edi
mov eax, edi
jne 0x46d03d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407620
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x40a170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push 0x405
mov dword [esp + 0x18], ecx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [esp + 0x34]
mov ebp, eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ecx
push 2
push ebx
push 2
mov dword [esp + 0x24], ebx
call sub.MPR.dll_WNetOpenEnumA
cmp eax, ebx
je 0x40767d
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ebp
pop ebx
add esp, 0x28
ret 4
push edi
push esi
push 0x4000
push 0x40
mov dword [esp + 0x28], 0x4000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push esi
push eax
push ecx
mov dword [esp + 0x20], 0xffffffff
call sub.MPR.dll_WNetEnumResourceA
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x407797
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, ebx
jbe 0x40779e
add esi, 8
mov edx, dword [esi + 4]
and edx, 2
cmp dl, 2
jne 0x407768
cmp dword [esi], 2
jne 0x40777e
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x40f48c
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jle 0x40773e
add eax, 2
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call fcn.00408d0a
cmp ebp, ebx
je 0x407757
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x20]
push edx
push ebx
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00408d0a
mov eax, dword [esp + 0x10]
inc edi
add esi, 0x20
cmp edi, eax
jb 0x4076d4
mov esi, dword [esp + 0x14]
jmp 0x40779e
mov ecx, dword [esp + 0x14]
shl edi, 5
add edi, ecx
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00407620
mov esi, dword [esp + 0x14]
jmp 0x40779e
cmp eax, 0x103
jne 0x4077ac
cmp dword [esp + 0x28], 0x103
jne 0x40769a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x18]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [esp + 0x1c]
mov esi, eax
mov ecx, ebp
mov eax, dword [edx + 0x60]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp esi, ebx
pop esi
pop edi
pop ebp
sete al
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x4092c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cce0
push 0x4094c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x40f7a8], 0xffffffff
mov dword [0x40f7ac], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f79c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40f798]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40f7a4], ecx
call fcn.00407ea0
mov eax, dword [0x40f630]
test eax, eax
jne 0x409351
push 0x4094b0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00409490
push 0x40f024
push 0x40f020
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40f794]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x40f790]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40f01c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40945f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4093c5
cmp al, 0x22
jne 0x4093b7
cmp byte [esi], 0x22
jne 0x4093ce
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4093de
cmp al, 0x20
ja 0x4093de
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4093ce
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4093ff
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x409404
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x409444
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4093ce
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40945f
Function at 0x409acf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421410]
jne 0x409ad9
repz ret
jmp fcn.0040f90a

Function at 0x40c30c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040527b
and dword [ebp - 0x14], 0
cmp dword [0x422d0c], 0
mov dword [ebp - 0x18], eax
jne 0x40c3bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c467
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c467
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422d0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422d10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422d14], eax
call edi
push eax
call esi
mov dword [0x422d1c], eax
test eax, eax
je 0x40c3bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422d18], eax
mov eax, dword [0x422d18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c418
cmp dword [0x422d1c], ecx
je 0x40c418
push eax
call esi
push dword [0x422d1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c418
test ebx, ebx
je 0x40c418
call edi
test eax, eax
je 0x40c40f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c40f
test byte [ebp - 8], 1
jne 0x40c418
or dword [ebp + 0x10], 0x200000
jmp 0x40c44b
mov eax, dword [0x422d10]
cmp eax, dword [ebp - 0x18]
je 0x40c44b
push eax
call esi
test eax, eax
je 0x40c44b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c44b
mov eax, dword [0x422d14]
cmp eax, dword [ebp - 0x18]
je 0x40c44b
push eax
call esi
test eax, eax
je 0x40c44b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422d0c]
call esi
test eax, eax
je 0x40c467
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c469
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409acf
leave
ret
Function at 0x440a10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49c66b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004910b6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x440a92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048efcd
mov eax, dword [eax]
push 0x57b1c4
push eax
call fcn.00481e34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00491341
test bl, bl
je 0x440a92
push 0x57b1c4
lea ecx, [esp + 0xc]
call fcn.004916d1
push 0x57ed3c
lea ecx, [esp + 0xc]
call fcn.004916d1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x440ace
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00491341
jmp 0x440b99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x440b52
lea edx, [esp + 0x7c]
push 0x57ed38
push edx
call fcn.00481e34
add esp, 8
test eax, eax
je 0x440b52
lea eax, [esp + 0x7c]
push 0x57ed34
push eax
call fcn.00481e34
add esp, 8
test eax, eax
je 0x440b52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x440ae2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00491341
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x441390
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4413f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc