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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 1
push ebx
push str.SoftwareFour_FWinObjEx
push 0x80000001
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40528d
push esi
push 0x2c
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x41fde8
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405283
mov dword [ebp - 0x58], esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call esi
push 1
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00405096
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x3c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x405266
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x405266
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
cmp eax, dword [ebp - 0x2c]
jge 0x40520b
mov ecx, dword [ebp - 0x2c]
push ebx
sub ecx, eax
lea eax, [ebp - 0x1c]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
jle 0x40521e
sub eax, dword [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jge 0x405229
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jge 0x40523e
mov ecx, dword [ebp - 0x28]
sub ecx, eax
lea eax, [ebp - 0x1c]
push ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x10], eax
jle 0x405251
sub eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call esi
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jge 0x40525c
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x50], 2
jne 0x405273
mov dword [ebp - 0x50], 1
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x405293
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0xc]
xor edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
mov ebx, 0x2001f
push edi
push ebx
push edi
push edi
push edi
push str.SoftwareFour_FWinObjEx
push 0x80000001
call esi
test eax, eax
jne 0x40536a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push str.Menu
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x405361
mov ebx, dword [sym.imp.USER32.dll_GetMenuState]
push edi
push 0x9c4a
push dword [0x424e1c]
call ebx
movzx eax, al
and eax, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push edi
push str.ksrt
push dword [ebp - 4]
call esi
push edi
push 0x9c4b
push dword [0x424e1c]
call ebx
movzx eax, al
and eax, 8
push 4
mov dword [ebp - 8], eax
pop ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push edi
push str.ksel
push dword [ebp - 4]
call esi
push ebx
push 0x424e44
push ebx
push edi
push 0x41fe08
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40536f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push 0x9c4a
push dword [0x424e1c]
call edi
push 8
push 0x9c4b
push dword [0x424e1c]
call edi
mov esi, 0x9c55
push 0
push esi
push esi
push 0x9c54
mov dword [0x424e44], 2
push dword [0x424e1c]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.SoftwareFour_FWinObjEx
push 0x80000001
call ebx
test eax, eax
jne 0x4054d0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.Menu
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x4054c7
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.ksrt
mov dword [ebp - 4], 4
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x405435
push dword [ebp - 8]
push 0x9c4a
push dword [0x424e1c]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.ksel
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x405468
push dword [ebp - 8]
push 0x9c4b
push dword [0x424e1c]
call edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x41fe08
mov dword [ebp - 4], 4
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x4054be
cmp dword [ebp - 8], edi
jne 0x40549e
mov dword [0x424e44], edi
mov eax, 0x9c54
jmp 0x4054aa
mov dword [0x424e44], 2
mov eax, esi
push edi
push eax
push esi
push 0x9c54
push dword [0x424e1c]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40656a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
lea eax, [ebp - 0x30]
push 0x1f
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0x31
mov dword [ebp - 4], eax
push dword [0x424e38]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 4]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x5c]
push dword [ebp - 8]
and dword [eax], 0
inc edx
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc]
sub edx, ecx
push edi
inc edx
mov dword [eax + 4], ecx
inc edx
mov dword [eax + 0xc], edx
call esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
leave
ret 8

Function at 0x407124
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00414be0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x407175
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x407192
cmp dword [ebp - 0x8c], 2
jne 0x407192
cmp dword [ebp - 0x98], 5
jb 0x407192
push 1
pop eax
cmp dword [ebp - 0x94], eax
jae 0x407194
xor eax, eax
pop esi
leave
ret
Function at 0x407197
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or dword [ebp - 0x20], 0xffffffff
or byte [ebp - 1], 0xff
push ebx
push esi
mov eax, 0x200
push edi
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], eax
call fcn.0040505d
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x407219
mov eax, 0x4000
push eax
mov dword [ebp - 0xc], eax
call fcn.0040505d
push esi
mov esi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push dword [ebp - 0xc]
mov ebx, eax
push ebx
push 0x10
call esi
mov edi, 0xc0000004
cmp eax, edi
jne 0x407220
push ebx
call fcn.00405081
mov eax, dword [ebp - 0xc]
cmp eax, 0x1000000
ja 0x407219
add eax, eax
push eax
mov dword [ebp - 0xc], eax
call fcn.0040505d
push 0
mov ebx, eax
push dword [ebp - 0xc]
push ebx
push 0x10
call esi
jmp 0x4071ec
xor al, al
jmp 0x407349
xor esi, esi
lea eax, [ebx + 4]
cmp dword [ebx], esi
jbe 0x407310
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 8], 0
je 0x407243
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
je 0x407280
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
je 0x407263
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x407286
mov dword [ebp - 0x24], 1
jmp 0x4072f7
cmp dword [ebp - 0x24], 0
jne 0x4072f7
push 2
push 0
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
movzx eax, word [eax + 6]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4072f7
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 2
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryObject]
cmp eax, edi
jne 0x4072e3
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00405081
push dword [ebp - 0x18]
call fcn.0040505d
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push dword [ebp - 0x18]
push eax
jmp 0x4072b1
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call fcn.00415020
pop ecx
test eax, eax
pop ecx
je 0x407306
add dword [ebp - 0x1c], 0x10
inc esi
cmp esi, dword [ebx]
jb 0x407230
jmp 0x407310
shl esi, 4
mov al, byte [esi + ebx + 8]
mov byte [ebp - 1], al
cmp dword [ebp - 8], 0
je 0x40731f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x40732e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x40733c
push dword [ebp - 0x14]
call fcn.00405081
test ebx, ebx
je 0x407346
push ebx
call fcn.00405081
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40756d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4075bf
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push esi
push 0x424d10
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4075b6
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x407f0a
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x407ff1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push 8
push eax
lea eax, [ebp + 8]
push 4
push eax
push 0x8000e014
call fcn.00404ec8
test eax, eax
jne 0x407ff1
cmp dword [ebp - 4], 8
jne 0x407ff1
mov esi, 0x4000
push esi
call fcn.0040505d
mov edi, eax
test edi, edi
je 0x407ff1
push 0
push esi
push edi
push 5
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
je 0x407f85
push edi
call fcn.00405081
shl esi, 2
cmp esi, 0x800000
ja 0x407ff1
jmp 0x407f52
test edi, edi
je 0x407ff1
mov esi, dword [ebp - 0xc]
mov eax, edi
cmp dword [eax + 0x44], esi
je 0x407fa4
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
sete dl
add eax, ecx
test edx, edx
je 0x407f8e
jmp 0x407feb
push dword [ebp - 8]
push esi
push dword [eax + 0x3c]
lea eax, [ebp - 0x10c]
push str._by__ws__PID:_0x_X__TID:_0x_X_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x10c]
push eax
call fcn.00414f0b
add esp, 0x18
lea eax, [eax + eax + 2]
push eax
call fcn.0040505d
mov ebx, eax
test ebx, ebx
je 0x407feb
lea eax, [ebp - 0x10c]
push eax
push ebx
call fcn.004150ff
pop ecx
pop ecx
push edi
call fcn.00405081
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x408e88
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
or dword [ebp - 0x28], 0xffffffff
push ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x10], 0x1f
xor ebx, ebx
push dword [ebp - 4]
lea eax, [ebp - 0x134]
push ebx
push 1
push 1
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
test eax, eax
jl 0x408f09
mov eax, dword [ebp - 0xf8]
shr eax, 1
mov word [ebp + eax*2 - 0xf4], bx
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
push eax
push ebx
push 0x104d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], bl
jmp 0x408eaa
pop ebx
leave
ret 8

Function at 0x409591
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
or dword [ebp - 0x30], 0xffffffff
push ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x18], 0x20
xor ebx, ebx
push dword [ebp - 4]
lea eax, [ebp - 0x434]
push ebx
push 1
push 1
push 0x400
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
test eax, eax
jl 0x40961c
cmp dword [ebp - 0xc], ebx
jl 0x40961c
cmp dword [ebp - 8], ebx
je 0x40961c
mov eax, dword [ebp - 0x3f8]
shr eax, 1
mov word [ebp + eax*2 - 0x3f4], bx
lea eax, [ebp - 0x3f4]
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x30]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
push ebx
push 0x104d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], bl
jmp 0x4095b3
pop ebx
leave
ret 8

Function at 0x409a43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, dword [esp + 0x14]
push 0xe
push eax
push edi
call esi
test eax, eax
jne 0x409a69
push 0xe
push dword [esp + 0x1c]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x20], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx eax, ax
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
mov dword [esp + 0x20], eax
call ebx
push eax
call ebp
push 0
push 0x32
mov ebx, eax
call esi
push eax
push 0x31
call esi
push eax
push 0x30000
push 1
push dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x409fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str._shell32.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 2
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, edi
je 0x40a018
push 3
push esi
call fcn.00409a43
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40c4d1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ntdll.dll_ZwQueryKey]
xor ebx, ebx
push eax
push ebx
push ebx
push 2
push dword [ebp + 0xc]
call edi
cmp dword [ebp - 4], ebx
je 0x40c5ed
push dword [ebp - 4]
call fcn.0040505d
mov esi, eax
cmp esi, ebx
je 0x40c5ed
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x40c5e7
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x12]
push eax
call fcn.004074ae
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push str._d:_02d:_02d___d__s__d
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0x20
lea eax, [ebp - 0x228]
push eax
push 0x400
push dword [ebp + 8]
call ebx
push dword [esi + 0x14]
lea eax, [ebp - 0x228]
push 0x41f1bc
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x3ff
push dword [ebp + 8]
call ebx
push dword [esi + 0x20]
lea eax, [ebp - 0x228]
push 0x41f1bc
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x401
push dword [ebp + 8]
call ebx
push esi
call fcn.00405081
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40c67c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x188
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40c744
push 1
pop ebx
test bl, al
je 0x40c744
push esi
push esi
push 0x18b
push dword [ebp + 8]
call edi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x26
mov dword [ebp - 0xc], eax
call esi
test bl, al
je 0x40c6d3
mov dword [ebp - 8], ebx
push 0x21
call esi
test bl, al
je 0x40c6de
mov dword [ebp - 8], ebx
push 0x25
call esi
test bl, al
je 0x40c6e9
mov dword [ebp - 8], ebx
push 0x23
call esi
test bl, al
je 0x40c6f7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40c707
push 2
jmp 0x40c708
push ebx
call esi
test bl, al
je 0x40c711
mov dword [ebp - 8], ebx
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x40c71d
dec dword [ebp - 4]
jmp 0x40c720
inc dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x40c72e
add eax, 0xfffffffe
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ecx
jge 0x40c736
mov dword [ebp - 4], ecx
push ecx
push dword [ebp - 4]
push 0x186
push dword [ebp + 8]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cd52
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401a50
push 0x414d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0x57
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40cee8
mov esi, dword [ebp + 0x10]
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00414be0
add esp, 0xc
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x40cee8
push 8
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x40cecf
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push ebx
push 3
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40cec6
add eax, 0x168
push eax
call fcn.0040505d
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x40cec6
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
push edi
push 3
push dword [ebp - 0x3c]
call esi
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x40cebe
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jae 0x40ce80
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x44], ebx
lea eax, [ebx + 8]
cmp dword [ebp - 0x30], eax
jb 0x40ce77
push dword [edi]
push dword [ebp + 0xc]
call esi
push 0x423ad4
push dword [ebp + 0xc]
call esi
push 0xfffffffffffffffd
pop eax
sub eax, ebx
add dword [ebp - 0x30], eax
inc dword [ebp - 0x4c]
add edi, 0x24
mov dword [ebp - 0x40], edi
xor ebx, ebx
jmp 0x40ce34
mov dword [ebp - 0x24], 0xea
xor ebx, ebx
cmp dword [ebp - 0x24], 0xea
jne 0x40ce95
push 0x423aa8
push dword [ebp + 0xc]
call esi
jmp 0x40cebe
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x40cebb
mov dword [ebp - 0x50], esi
add eax, esi
cmp byte [eax - 2], 0x2c
jne 0x40cebb
cmp byte [eax - 1], 0x20
jne 0x40cebb
and byte [eax - 2], 0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x1c]
call fcn.00405081
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40cee8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret