joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b72b4
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
mov esi, 3
mov eax, ebx
call fcn.004594e8
mov edi, eax
call sub.user32.dll_GetActiveWindow
cmp edi, eax
jne 0x4b72f7
mov eax, ebx
call fcn.004594e8
mov edi, eax
call sub.user32.dll_GetForegroundWindow
cmp edi, eax
jne 0x4b72f7
mov eax, ebx
call fcn.004594e8
call fcn.004b7284
jmp 0x4b73a6
mov eax, ebx
call fcn.004594e8
call fcn.004b7284
mov eax, dword [0x53dafc]
mov eax, dword [eax]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x4b739a
push edi
call sub.user32.dll_GetLastActivePopup
mov ebp, eax
test ebp, ebp
je 0x4b739a
cmp edi, ebp
je 0x4b739a
push ebp
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b739a
push ebp
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4b739a
call sub.user32.dll_GetForegroundWindow
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [esp + 4], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [esp], eax
push 0xffffffffffffffff
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_AttachThreadInput
push ebp
call sub.user32.dll_SetForegroundWindow
push 0
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_AttachThreadInput
push 0x4b73b4
push 0x4b73c8
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0x4b739a
push 0
push edi
call ebp
mov eax, ebx
call fcn.004594e8
call fcn.004b7284
dec esi
jne 0x4b72c2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b8be4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b8ce6
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [esi + 0x3d8]
call fcn.004392b8
test bl, bl
je 0x4b8c54
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004b8474
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x4b8cfc
call fcn.0040abd0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b8d14
call fcn.004a81a8
mov eax, 0x4b8d14
call fcn.004bfc74
mov byte [esi + 0x410], 1
mov eax, dword [0x53db7c]
mov byte [eax], 0
push 0
mov eax, esi
call fcn.004594e8
push eax
call sub.user32.dll_ShowWindow
mov eax, esi
call fcn.00445464
mov eax, esi
call fcn.004b935c
call fcn.004befa0
push 0
push 0
call fcn.004a2e1c
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [0x53d78c]
cmp byte [eax], 0
je 0x4b8cc9
jmp 0x4b8cac
mov eax, dword [0x53dafc]
mov eax, dword [eax]
call fcn.00449100
push 0
push 0
call fcn.004a2e1c
sub eax, dword [ebp - 8]
sbb edx, dword [ebp - 4]
cmp edx, 0
jne 0x4b8cc7
cmp eax, 5
jbe 0x4b8ca0
jmp 0x4b8cc9
jle 0x4b8ca0
mov eax, esi
call fcn.004452c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8ced
lea eax, [ebp - 0x10]
call fcn.00404e80
ret
Function at 0x4bae98
Capabilities:
Set global application hook

Disassembly:
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4ba9d8
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5440cc], eax
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4badcc
push 0xc
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5440d0], eax
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4bae54
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5440d4], eax
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4bae10
push 4
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5440d8], eax
ret

Function at 0x4bafe4
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebp, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp]
lea ebx, [eax + 0x18]
movzx edx, word [eax + 0x14]
add ebx, edx
movzx esi, word [eax + 6]
dec esi
test esi, esi
jl 0x4bb0ac
inc esi
mov ecx, dword [ebp + 4]
add ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x4bb06b
mov eax, dword [esp + 8]
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4bb043
cmp dword [esp + 0x10], 0
jbe 0x4bb0a2
jmp 0x4bb045
jle 0x4bb0a2
push 0x40
push 0x1000
mov eax, dword [esp + 0x18]
push eax
push ecx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov dword [ebx + 8], edi
mov eax, edi
xor ecx, ecx
mov edx, dword [esp + 0x10]
call fcn.004036e8
jmp 0x4bb0a2
mov eax, edi
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push 0x40
push 0x1000
mov eax, dword [esp + 0x18]
push eax
push ecx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov eax, dword [esp]
mov edx, dword [ebx + 0x14]
lea edx, [eax + edx]
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004082cc
mov dword [ebx + 8], edi
add ebx, 0x28
dec esi
jne 0x4bb019
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4bb3d0
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov edi, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov ecx, dword [edi]
lea eax, [ecx + 0x18]
xor edx, edx
push edx
push eax
movzx eax, word [ecx + 0x14]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ebx, eax
movzx esi, word [ecx + 6]
dec esi
test esi, esi
jl 0x4bb51c
inc esi
xor ecx, ecx
mov eax, dword [ebx + 0x24]
mov edx, eax
and edx, 0x20000000
cmp edx, 0x20000000
jne 0x4bb429
or ecx, 0x10
mov edx, eax
and edx, 0x40000000
cmp edx, 0x40000000
jne 0x4bb43c
or ecx, 2
mov edx, eax
and edx, 0x80000000
cmp edx, 0x80000000
jne 0x4bb44f
or ecx, 8
mov edx, eax
and edx, 0x4000000
cmp edx, 0x4000000
jne 0x4bb465
or ecx, 0x200
and eax, 0x2000000
cmp eax, 0x2000000
jne 0x4bb492
push 0x4000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
xor edx, edx
or eax, dword [esp + 0x10]
or edx, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualFree_1
jmp 0x4bb515
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4bb4e6
cmp dword [esp + 0x10], 0
jne 0x4bb4e6
mov eax, dword [ebx + 0x24]
mov edx, eax
and edx, 0x40
cmp edx, 0x40
jne 0x4bb4cb
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4bb4e6
and eax, 0x80
cmp eax, 0x80
jne 0x4bb4e6
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4bb4f6
cmp dword [esp + 0x10], 0
jbe 0x4bb512
jmp 0x4bb4f8
jle 0x4bb512
push esp
push ecx
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebx + 8]
xor edx, edx
or eax, dword [esp + 0x14]
or edx, dword [esp + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
add ebx, 0x28
dec esi
jne 0x4bb411
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x4bd964
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
mov eax, dword [ebp - 8]
call fcn.00405300
xor eax, eax
push ebp
push 0x4bdaa7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a160
test al, al
je 0x4bda7f
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.004036e8
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.004036e8
mov dword [ebp - 0x60], 0x44
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
je 0x4bda06
mov edx, dword [ebp - 4]
mov eax, 0x4bdac0
call fcn.0040545c
test eax, eax
jle 0x4bda06
push 0x4bdacc
push dword [ebp - 4]
push 0x4bdacc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405214
jmp 0x4bda11
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404f18
push dword [ebp - 0xc]
push 0x4bdac0
push dword [ebp - 8]
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00405214
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004099a4
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0xc]
call fcn.00404f18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405310
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4bda7d
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov bl, 1
jmp 0x4bda7f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdaae
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00404ea4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ea4
ret

Function at 0x4bdad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
mov eax, dword [ebp - 8]
call fcn.00405300
xor eax, eax
push ebp
push 0x4bdb7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
je 0x4bdb35
mov edx, dword [ebp - 4]
mov eax, 0x4bdb98
call fcn.0040545c
test eax, eax
jle 0x4bdb35
push 0x4bdba4
push dword [ebp - 4]
push 0x4bdba4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405214
jmp 0x4bdb40
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404f18
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405310
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405310
push eax
push 0x4bdba8
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdb86
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ea4
ret
Function at 0x4bdf60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x4be114
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404ed4
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, 8
mov edx, 1
call fcn.00405378
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.00409668
mov eax, dword [ebp - 0x7c]
mov edx, 0x4be12c
call fcn.004052a8
jne 0x4be0e9
lea eax, [ebp - 0x75]
push eax
push 0x69
call sub.kernel32.dll_GetLogicalDriveStringsA
lea ebx, [ebp - 0x75]
mov byte [ebx + 2], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004055a0
lea eax, [ebp - 8]
call fcn.00405370
mov edx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4be014
sub eax, 4
mov eax, dword [eax]
xor ecx, ecx
xchg edx, eax
call fcn.004036e8
push 0x104
lea eax, [ebp - 8]
call fcn.00405370
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jne 0x4be059
call sub.kernel32.dll_GetLastError
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x4be050
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4be059
call sub.kernel32.dll_GetTickCount_1
lea eax, [ebp - 8]
call fcn.00405370
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405078
mov esi, dword [ebp - 8]
test esi, esi
je 0x4be077
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405378
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 8]
call fcn.004052a8
jne 0x4be0dd
mov esi, dword [ebp - 8]
test esi, esi
je 0x4be0a9
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
lea edx, [esi + 1]
mov ecx, 0xffff
mov eax, dword [ebp - 4]
call fcn.00405378
lea edx, [ebp - 0x88]
mov eax, ebx
call fcn.0040a6e0
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.00405198
jmp 0x4be0e9
add ebx, 4
cmp byte [ebx], 0
jne 0x4bdfed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be11b
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00404ea4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ea4
ret
Function at 0x4bf0b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405300
xor eax, eax
push ebp
push 0x4bf171
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [0x408794]
call fcn.004067ac
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.0040a014
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4bf14d
push 0
push ebx
call sub.kernel32.dll_GetFileSize
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x408794]
call fcn.0040668c
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0040a0c4
mov eax, dword [ebp - 8]
call fcn.004064d0
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040a06c
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, esi
mov edx, dword [ebp - 8]
mov ecx, dword [0x408794]
call fcn.004067e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf178
lea eax, [ebp - 8]
mov edx, dword [0x408794]
call fcn.004067ac
lea eax, [ebp - 4]
call fcn.00404e80
ret
Function at 0x4020f0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 4]
push eax
push edi
call esi
test eax, eax
je 0x4021e1
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4021e1
push 0x4115fc
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4021e1
push 0x4115fc
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4021e1
lea edx, [esp + 0x14]
push edx
push eax
call esi
test eax, eax
je 0x4021e1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push 0
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add edx, ecx
cmp edx, eax
push 1
setl bl
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 8]
add edx, ecx
cmp edx, eax
setl al
test bl, bl
pop ebx
je 0x40219e
mov ecx, dword [esp + 0x24]
jmp 0x4021a8
mov ecx, esi
sub ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x2c]
mov edx, dword [esp + 8]
test al, al
je 0x4021b6
mov eax, dword [esp + 0x28]
jmp 0x4021c0
mov eax, edx
sub eax, dword [esp + 0x10]
add eax, dword [esp + 0x30]
sub eax, edx
push eax
sub ecx, esi
push ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 1
lea ecx, [esp + 8]
push ecx
push edi
call fcn.0040c000
add esp, 0xc
pop esi
add esp, 0x30
ret

Function at 0x402bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f987
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x416158]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push str.EFDeskPinsRunning
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x38], edi
call fcn.0040dbf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esi + 0x20]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.0040ae30
lea ecx, [esi + 0x38]
mov byte [esp + 0x34], 3
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push edi
push 0x8000
lea ecx, [esi + 0x5c]
mov byte [esp + 0x3c], 4
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
call fcn.0040bcf0
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x402d50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
cmp dword [0x4161cc], 0
jne 0x402e07
call fcn.00402610
test al, al
je 0x402d77
mov eax, 0x64
mov dword [esp], eax
mov dword [esp + 4], eax
jmp 0x402d86
mov dword [esp], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x14]
push esi
push edi
mov edx, dword [str.EFPinLayerWnd]
push 0
lea eax, [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [0x4161d0]
push eax
push 0
push ecx
push 1
push 1
push edi
push esi
push 0x90000000
push str.DeskPin
push edx
push 0xa8
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4161cc], eax
test eax, eax
je 0x402e05
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_SetCursorPos]
call esi
push 0
push 0
push 0
push 0
push 2
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call esi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4044f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x40fb58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x416158]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
lea ecx, [esp + 0x14]
call fcn.004041f0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esi]
push ecx
push edi
xor ebx, ebx
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, ebx
jne 0x404555
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404563
mov ecx, dword [esp + 0x28]
push esi
push edi
mov bl, 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x4080c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41017c
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push esi
mov eax, dword [0x416158]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0xff
mov dword [esi + 4], 0x64
mov dword [esi + 0xc], 0x3e8
mov eax, 0xa
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], 0
mov ebx, 1
mov byte [esi + 0x15], bl
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0x7a
mov eax, 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], 0x7b
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], 0
call fcn.0040b6d0
lea ecx, [esi + 0x5c]
mov dword [esp + 0x138], 0
mov dword [esi + 0x4c], 0xc8
mov dword [esi + 0x50], 0x64
mov dword [esi + 0x54], 0x2710
mov dword [esi + 0x58], 0x32
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x411a84
lea ecx, [esi + 0x78]
mov byte [esp + 0x13c], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 2
call fcn.0040ea70
cmp dword [eax + 0x11c], ebx
jl 0x4081d0
cmp dword [eax + 4], 5
mov eax, esi
jb 0x4081d2
mov dword [esi + 4], 0x14
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x130
ret
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x130
ret
Function at 0x408a40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push 1
mov esi, ebx
push 0
neg esi
push esi
push edi
call ebp
cmp eax, 0xffffffff
je 0x408a8e
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408a8e
cmp dword [esp + 8], ebx
jne 0x408a8e
push 1
push 0
push esi
push edi
call ebp
cmp eax, 0xffffffff
je 0x408a8e
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop esi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x40a7e0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push esi
push edi
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [eax]
mov eax, ebx
call fcn.0040a530
mov edi, eax
cmp dword [esi], edi
je 0x40a82c
push edi
mov ecx, 0x4161b8
mov dword [esi], edi
call fcn.00401290
mov eax, dword [0x4161ec]
push eax
mov ecx, 0x416214
call fcn.0040bc80
push edi
mov ecx, 0x4161d8
call fcn.0040ada0
test al, al
je 0x40a82c
call fcn.0040a720
push 1
lea ecx, [esp + 0xc]
push ecx
push 0x68
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemInt]
cmp dword [esp + 8], 0
je 0x40a853
cmp eax, dword [esi + 8]
jl 0x40a853
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jle 0x40a856
mov eax, ecx
jmp 0x40a856
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
je 0x40a86a
push eax
push 0x40a730
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
setne dl
pop edi
mov byte [esi + 0x14], dl
pop esi
pop ecx
ret

Function at 0x40b400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41075a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x416158]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
xor ebx, ebx
mov dword [esp + 8], ebx
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.004046a0
mov ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 8], 1
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.TApplication
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40b472
push esi
call fcn.0040bd20
add esp, 4
test al, al
je 0x40b472
mov bl, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret