joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410dba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41ab64], ebx
push esi
push edi
jne 0x410e3a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410e75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x416fa8
push edi
call esi
test eax, eax
mov dword [0x41ab64], eax
je 0x410e75
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41ab68], eax
call esi
cmp dword [0x41a880], 2
mov dword [0x41ab6c], eax
jne 0x410e3a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41ab74], eax
je 0x410e3a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41ab70], eax
mov eax, dword [0x41ab70]
test eax, eax
je 0x410e7f
call eax
test eax, eax
je 0x410e66
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41ab74]
test eax, eax
je 0x410e66
test byte [ebp - 8], 1
jne 0x410e7f
cmp dword [0x41a88c], 4
jb 0x410e79
or byte [ebp + 0x12], 0x20
jmp 0x410e9e
xor eax, eax
jmp 0x410eae
or byte [ebp + 0x12], 4
jmp 0x410e9e
mov eax, dword [0x41ab68]
test eax, eax
je 0x410e9e
call eax
mov ebx, eax
test ebx, ebx
je 0x410e9e
mov eax, dword [0x41ab6c]
test eax, eax
je 0x410e9e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41ab64]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411318
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040b370
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4113ad
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41a880]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4113ad
cmp eax, 1
je 0x4113c5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4113ad
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x411382
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4113a9
xor eax, eax
inc eax
jmp 0x4113e1
cmp esi, ebx
jae 0x4113b1
xor eax, eax
jmp 0x4113e1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41a880]
jmp 0x4113c7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402dc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402da4
xor eax, eax
push ebp
push 0x402d9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402de0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402da4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x416020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40384c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x4038ad
cmp word [0x417218], 0xd7b2
jne 0x403875
cmp dword [0x417220], 0
jbe 0x403875
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x416068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4038d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41602c], 0
jne 0x4038c9
push 0
push 0x416060
push 0x416068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a7c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404cac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404aff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404cac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404aff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404cc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b88
xor eax, eax
push ebp
push 0x404b81
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004048c4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b66
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ce8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b66
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b88
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404ca2
cmp byte [ebp - 0xd], 0
jne 0x404bcf
cmp byte [ebp - 0x12], 0
je 0x404ca2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404be8
dec ebx
cmp byte [ebx], 0x2e
je 0x404bf7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404be7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404ca2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404c34
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404ca2
cmp byte [ebp - 0xd], 0
je 0x404ca2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404ca2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405338
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40539e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c38
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402920
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405388
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053a5
lea eax, [ebp - 0x10]
call fcn.004039c8
ret

Function at 0x4095b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4095e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ab8
jmp 0x4095f2
mov eax, ebx
mov edx, esi
call fcn.00403a1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4095fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40961d
mov al, byte [esp]
jmp 0x40961f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409ca4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409b1c
mov eax, dword [0x4166c4]
cmp byte [eax], 0
je 0x409d20
mov eax, dword [0x416504]
call fcn.0040289c
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406f64
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409d68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4164c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x417660]
call fcn.00404888
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40aa04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40aa68
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403c38
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406b24
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa6f
lea eax, [ebp - 0xc]
call fcn.004039c8
ret
Function at 0x403945
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 8]
push 8
mov dword [esi + 0x3274], ecx
push edx
call dword [sym.imp.WINMM.DLL_timeGetDevCaps]
mov ecx, dword [ebp - 8]
push 0
push esi
mov dword [esi + 0x3008], ecx
push 0
call fcn.0045f0c4
push ebx
push esi
call fcn.0044f563
lea edx, [ebx + 0xfb4]
push edx
mov dword [ebx + 0x38c], 0xffffffff
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
add esp, 0x14
cmp byte [ebx + 0x18b4], 0
je 0x4039c0
push ebx
push esi
push 0
call fcn.0042deb8
add esp, 0xc
test eax, eax
je 0x4039c0
mov byte [ebx + 0x18b4], 0
cmp byte [ebx + 0x11b4], 0
je 0x4039d3
push ebx
push esi
call fcn.0042b1a0
add esp, 8
cmp byte [ebx + 0x12b4], 0
je 0x4039e6
push ebx
push esi
call fcn.0042b3df
add esp, 8
cmp byte [ebx + 0x13b4], 0
je 0x4039f9
push ebx
push esi
call fcn.0042b608
add esp, 8
push ebx
push esi
call fcn.0044f311
push ebx
push esi
call fcn.0044ebce
mov ecx, dword [ebx + 0x684]
mov dword [esi + 0x24d8], ecx
add esp, 0x10
mov edx, dword [ebx + 0x690]
cmp edx, 0x89c
je 0x403a2c
cmp edx, 0x89b
jne 0x403a4e
mov ecx, dword [ebx + 0x744]
mov dword [esi + 0x2b08], ecx
mov edx, dword [ebx + 0x748]
mov dword [esi + 0x2b0c], edx
mov dword [esi + 0x24d8], 0x835
mov ecx, dword [esi + 0x24d8]
cmp ecx, 0x838
je 0x403a64
cmp ecx, 0x837
jne 0x403a74
push 6
push dword [esi + 0x20fc]
call fcn.0045e378
add esp, 8
push 0
mov edx, dword [ebx + 0x6c4]
and edx, 1
xor edx, 1
lea ecx, [ebx + 0xc74]
mov dword [ebx + 0x20], edx
lea edx, [ebx + 0xc5c]
mov dword [esi + 0x3220], ecx
mov dword [esi + 0x3224], edx
call dword [sym.imp.ole32.DLL_CoInitialize]
cmp eax, 1
mov dword [ebx + 0x2c], eax
jne 0x403ac0
mov dword [0x47a004], eax
mov dword [0x47a008], 0x46a540
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4040c7
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
add eax, 0x2bb0
push ebx
push 0x10
push 0
mov dword [ebp - 4], 0x10
push eax
call fcn.0046071c
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
push 0x404121
call dword [sym.imp.USER32.DLL_EnumWindows]
add esp, 0xc
cmp dword [ebp - 4], 1
jne 0x40411a
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x2bb0]
mov eax, ebx
mov dword [edx + 0x2bac], ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop ebx
mov esp, ebp
xor eax, eax
pop ebp
ret
Function at 0x4041f6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp eax, 0xffffffff
jne 0x404235
mov dword [0x47a004], 1
mov dword [0x47a008], 0x46a71c
pop edi
mov eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, 0x46997a
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x12c], 0x128
push esi
call ebx
test eax, eax
je 0x4042a6
push edi
lea edx, [ebp - 0x108]
mov ebx, 0x4699fe
push edx
call fcn.004604a0
add esp, 8
test eax, eax
jne 0x404241
push dword [ebp - 0x124]
push 0
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
test eax, eax
je 0x4042a6
cmp dword [ebp + 0x10], 1
jne 0x40429f
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e67
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x20fc]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x20f8], 0
je 0x405e96
push ebx
call fcn.00410ebb
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + reloc.USER32.DLL_EndPaint], 0
je 0x405eae
push ebx
call fcn.00406035
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + reloc.USER32.DLL_CreateWindowExA], 0
je 0x405ec6
push ebx
call fcn.00406068
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x688], 0
je 0x405ee7
push 0
push 0
push 0
push ecx
call fcn.004096c0
add esp, 0x10
cmp dword [esi + 0x38c], 0x25
jne 0x405f65
push 0
push esi
push ebx
call fcn.00403f90
push 0
push 0
mov dword [ebp - 8], eax
push dword [esi + 0x1c]
push 0x25
call dword [sym.imp.USER32.DLL_SystemParametersInfoA]
push esi
push ebx
call fcn.00409a90
push 0
call dword [sym.imp.USER32.DLL_ClipCursor]
add esp, 0x14
push esi
push ebx
push dword [ebp - 4]
call fcn.00404e80
add esp, 0xc
test eax, eax
je 0x405f30
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, dword [ebx + 0x2de4]
test edx, edx
mov dword [ebp - 0xc], eax
je 0x405f4c
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push 0
call dword [sym.imp.USER32.DLL_PostQuitMessage]
push 0
push esi
push ebx
call fcn.00403f90
add esp, 0xc
cmp eax, dword [ebp - 8]
jge 0x405f6d
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407e80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x2df0]
push esi
test eax, eax
push edi
je 0x40809f
cmp eax, 1
jne 0x407f3b
mov dword [ebx + 0x2df0], 0xffffffff
mov dword [0x474f44], 0x200
push dword [0x474f44]
lea eax, [ebx + 0x2be0]
push 0
push eax
call fcn.0046071c
xor ecx, ecx
push 0x474f44
mov dword [0x474f44], ecx
mov dword [0x474f48], ecx
push 0x404010
call dword [sym.imp.USER32.DLL_EnumWindows]
xor edx, edx
mov dword [ebx + 0x2bac], edx
mov dword [ebx + 0x2ba8], edx
mov dword [ebx + 0x2df0], 2
push 0x31
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp + 0xc]
push ebx
call fcn.00451c2f
mov dword [0x474f4c], eax
add esp, 0x14
test eax, eax
je 0x40809f
push eax
push ebx
call fcn.0041b618
mov dword [ebx + 0x2df0], 4
add esp, 8
jmp 0x40809f
cmp eax, 2
jne 0x40801c
push 0x474f44
push 0x404060
call dword [sym.imp.USER32.DLL_EnumWindows]
cmp dword [ebx + 0x2ba8], 0
je 0x407fed
mov dword [ebx + 0x2df0], 3
push dword [ebx + 0x2ba8]
call fcn.00406e45
lea esi, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
push esi
add edi, 0x3b4
push edi
push dword [ebx + 0x2ba8]
call fcn.00450d23
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebx + 0x2ba8]
call dword [sym.imp.USER32.DLL_MoveWindow]
push dword [ebx + 0x2ba8]
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0x2ba8]
call dword [sym.imp.USER32.DLL_SetWindowPos]
add esp, 0x10
cmp dword [ebx + 0x32bc], 0xffffffdf
jne 0x40809f
push 0
push ebx
call fcn.0041b618
add esp, 8
jmp 0x40809f
inc dword [0x474f48]
mov edx, dword [0x474f48]
cmp edx, 0x10
jle 0x40809f
push 0xffffffffffffffdf
mov dword [ebx + 0x2df0], 4
push ebx
call fcn.0041b618
add esp, 8
jmp 0x40809f
cmp eax, 3
jne 0x40806d
push dword [ebx + 0x2ba8]
call dword [sym.imp.USER32.DLL_IsWindowVisible]
test eax, eax
jne 0x40803d
mov dword [ebx + 0x2df0], 4
jmp 0x40809f
cmp dword [ebx + 0x2bac], 0
jne 0x408051
push ebx
call fcn.004040c7
add esp, 4
jmp 0x40809f
push dword [ebx + 0x2bac]
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
jne 0x40809f
mov dword [ebx + 0x2bac], 0
jmp 0x40809f
cmp eax, 4
jne 0x40809f
mov dword [ebx + 0x2df0], 0
push ebx
call fcn.00419db8
xor ecx, ecx
mov dword [ebx + 0x2ba8], ecx
push ecx
call fcn.00406e45
push dword [ebx + 0x20f8]
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24d8]
push esi
cmp eax, 0x835
push edi
je 0x409ab7
cmp eax, 0x837
je 0x409ab7
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x70c]
mov esi, dword [edx + 0x24]
push esi
push ecx
push ebx
call fcn.00451f99
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
je 0x409af3
push esi
push ebx
call fcn.00452068
mov dword [0x47a008], 0x46b648
mov dword [0x47a004], 0x6e
add esp, 8
mov edi, dword [ebx + 0x2de4]
test edi, edi
je 0x409b1a
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [ebx + 0x2de4], 0
mov dword [ebx + 0x2de8], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40eac1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
lea eax, [ebp - 8]
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x40ebb7
mov ecx, dword [ebx + 0x20f8]
test ecx, ecx
je 0x40eb1b
lea edx, [ebp - 0x18]
push edx
push ecx
call dword [sym.imp.USER32.DLL_GetWindowRect]
lea esi, [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.DLL_PtInRect]
test eax, eax
je 0x40eb1b
mov dword [0x475054], 1
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + reloc.USER32.DLL_CreateWindowExA]
test edi, edi
je 0x40eb44
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowRect]
lea ecx, [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.DLL_PtInRect]
test eax, eax
jne 0x40ebb7
cmp dword [ebx + reloc.USER32.DLL_EndPaint], 0
je 0x40eb70
lea edi, [ebp - 0x18]
push edi
push dword [ebx + reloc.USER32.DLL_EndPaint]
call dword [sym.imp.USER32.DLL_GetWindowRect]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.USER32.DLL_PtInRect]
test eax, eax
jne 0x40ebb7
jmp 0x40ebad
lea edx, [ebp - 0x18]
push edx
push dword [ebx + 0x20fc]
call dword [sym.imp.USER32.DLL_GetWindowRect]
lea esi, [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.DLL_PtInRect]
test eax, eax
je 0x40ebad
push 1
call dword [sym.imp.USER32.DLL_GetKeyState]
test ax, ax
jns 0x40ebad
push dword [ebx + 0x20fc]
call dword [sym.imp.USER32.DLL_SetFocus]
cmp word [ebx + 0x24f8], 0
jle 0x40ebc0
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x475054], 0
je 0x40ebdd
mov dword [0x475054], 0
push 0
call fcn.0044e4dc
add esp, 4
pop edi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret