joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d45c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x4d3f98
call fcn.0049b8e0
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.00499f94
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40d4d1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x40d4d1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.00499fb4
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40d4d1
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x40d4ee
cmp dword [ebp - 0x34], 0
je 0x40d4ee
mov edx, dword [ebp - 0x34]
jmp 0x40d4f3
mov edx, 0x4d3c0c
lea eax, [ebp - 4]
call fcn.004a7ad8
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.00499fa4
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a7c68
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a7c38
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40d571
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414888
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
call fcn.004148dc
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4148aa
lea eax, [ebp - 1]
xor edx, edx
call fcn.00414910
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4148c0
lea eax, [ebp - 1]
mov dl, 2
call fcn.00414910
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4148d6
lea eax, [ebp - 1]
mov dl, 1
call fcn.00414910
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x414f0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4e1e30]
mov eax, dword [eax]
call fcn.00482330
push 0
mov edx, dword [0x4e1e30]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
cmp word [eax + 0x24a], 0
je 0x414f54
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
call dword [ebx + 0x248]
pop ebx
pop ecx
pop ebp
ret

Function at 0x414f58
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4e1e30]
mov eax, dword [eax]
call fcn.004823e0
push 9
mov edx, dword [0x4e1e30]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [0x4e1e30]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_SetForegroundWindow
mov ecx, dword [ebp - 4]
cmp word [ecx + 0x252], 0
je 0x414faf
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
call dword [ebx + 0x250]
pop ebx
pop ecx
pop ebp
ret

Function at 0x41674c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4167a6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0041673c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0042d120
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0042cd20
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4167ad
lea eax, [ebp - 4]
call fcn.00455c50
ret
Function at 0x42093c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x420944
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x420b36
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x420b4c
mov eax, esi
call fcn.0041ca40
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00455ca4
lea ecx, [ebp - 0x10]
mov edx, 0x420b60
mov eax, esi
call fcn.0041ca40
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00455ca4
lea ecx, [ebp - 0x14]
mov edx, 0x420b78
mov eax, esi
call fcn.0041ca40
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00455ca4
lea ecx, [ebp - 0x18]
mov edx, 0x420b94
mov eax, esi
call fcn.0041ca40
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00455ca4
lea ecx, [ebp - 0x1c]
mov edx, 0x420bb0
mov eax, esi
call fcn.0041ca40
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00455ca4
lea ecx, [ebp - 0x24]
mov edx, 0x420bc8
mov eax, esi
call fcn.0041ca40
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00443fc0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004442b8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x420be0
mov eax, esi
call fcn.0041ca40
mov eax, dword [ebp - 0x28]
call fcn.0041bb44
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x420bf0
mov eax, esi
call fcn.0041ca40
mov eax, dword [ebp - 0x2c]
call fcn.0041bb44
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x420c08
mov eax, esi
call fcn.0041ca40
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004442b8
inc eax
je 0x420ad9
lea ecx, [ebp - 0x34]
mov edx, 0x420c08
mov eax, esi
call fcn.0041ca40
mov eax, dword [ebp - 0x34]
call fcn.0044427c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.004459c4
fstp qword [ebp - 0x3c]
wait
call fcn.00445d54
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x420af4
lea ecx, [ebp - 0x40]
mov edx, 0x420c08
mov eax, esi
call fcn.0041ca40
mov eax, dword [ebp - 0x40]
call fcn.0041bb44
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x420c18
mov eax, esi
call fcn.0041ca40
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00455ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420b3d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00455c74
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00455c74
ret

Function at 0x440094
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043ff18
dec esi
jne 0x4400b6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4411e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e2538
cmp dword [edi], 0
jne 0x44125c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4e2534]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d5d84
mov ecx, 2
call fcn.00454108
mov edx, 0x4411b8
lea eax, [esi + 5]
call fcn.004411d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004411d8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x441231
mov dword [0x4e2534], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x442680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00442364
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00456100
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4426de
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e1c38]
mov dl, 1
mov eax, dword [0x442288]
call fcn.00447898
call fcn.004556cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4445fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00456100
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x444615
test al, 0x10
jne 0x444619
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x444620
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00456100
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x444642
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x446ff4
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44702d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00455d40
jmp 0x447036
mov eax, ebx
mov edx, esi
call fcn.00455ca4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x447040
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
test eax, eax
jle 0x447061
mov al, byte [esp]
jmp 0x447063
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4485c0
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 0x448624
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00455eb8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004442b8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44862b
lea eax, [ebp - 0xc]
call fcn.00455c50
ret

Function at 0x454234
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00455c50
test esi, esi
jne 0x45426a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00455d40
jmp 0x454288
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00454148
mov edi, eax
test esi, esi
je 0x454288
cmp dword [ebx], 0
je 0x454288
dec esi
jmp 0x454271
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x454d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d62cc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x454e08
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x454de8
xor eax, eax
push ebp
push 0x454de1
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 0x454e24
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 0x454de8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4d62cc]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d62cc], ax
mov esp, ebp
pop ebp
ret

Function at 0x455a30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2860], 0
je 0x455a91
cmp word [0x4e2a34], 0xd7b2
jne 0x455a59
cmp dword [0x4e2a3c], 0
jbe 0x455a59
mov eax, 0x4e2a30
call dword [0x4e2a4c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x455ab8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4d62dc], 0
jne 0x455aad
push 0
push 0x4d6334
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x455c04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00453ea4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e2861], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x455bcc
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4576e0
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 0x457910
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x457763
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x457910
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x457763
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x45792c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4577ec
xor eax, eax
push ebp
push 0x4577e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00457528
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 0x4577ca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x45794c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4577ca
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 0x4577ec
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 0x457906
cmp byte [ebp - 0xd], 0
jne 0x457833
cmp byte [ebp - 0x12], 0
je 0x457906
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x45784c
dec ebx
cmp byte [ebx], 0x2e
je 0x45785b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x45784b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x457906
inc ebx
cmp byte [ebp - 0x12], 0
je 0x457898
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 0x457906
cmp byte [ebp - 0xd], 0
je 0x457906
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 0x457906
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 0x4580b8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4e2dd4], 1
jae 0x45813e
mov byte [0x4d62c8], 2
mov dword [0x4e2824], 0x4cfd3a
mov dword [0x4e2828], 0x4cfd52
mov byte [0x4e2862], 2
mov dword [0x4e2810], 0x456d04
call fcn.00454d40
test al, al
je 0x4580fb
call fcn.00454d70
call fcn.00454e34
mov word [0x4e2868], 0xd7b0
mov word [0x4e2a34], 0xd7b0
mov word [0x4e2c00], 0xd7b0
call fcn.00456bdc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4e2854], eax
call fcn.00452b40
mov dword [0x4e2850], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4e2848], eax
ret

Function at 0x458b54
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x458aa0
call sub.USER32.DLL_EnumWindows
ret

Function at 0x458c78
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x458cf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004586c4
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x458c9d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0045831c
cmp dword [ebp - 4], 0
je 0x458cdf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00456100
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458cfc
lea eax, [ebp - 4]
call fcn.00455c50
ret

Function at 0x45f37c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00455c50
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45f3cb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00455eb8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x465560
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x465363
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00464dc8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00448044
cmp al, 1
jne 0x465363
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004650e0
test al, al
je 0x4654ef
cmp dword [ebp - 8], 0
jge 0x465381
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00464dc8
mov eax, dword [ebp - 0x210]
call fcn.00455f08
cmp ebx, eax
jge 0x4653cb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00464dc8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4e1c68]
and eax, 0xff
bt dword [edx], eax
jae 0x4653cb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4653df
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004652dc
cmp ebx, dword [ebp - 8]
je 0x4654e1
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46540b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004550fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d64a8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4654ce
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004550fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d64a8]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00491a74
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004550fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d64a8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00491a74
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4654d5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x465542
cmp dword [ebp - 8], 0
jge 0x4654fa
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00464dc8
mov eax, dword [ebp - 0x218]
call fcn.00455f08
cmp eax, dword [ebp - 8]
jg 0x465534
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00464dc8
mov eax, dword [ebp - 0x21c]
call fcn.00455f08
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004652dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465567
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00455c74
ret
Function at 0x4812b0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e2fc0]
cmp byte [eax + 0xa5], 0
jne 0x481321
cmp dword [0x4e2fd8], 0
jne 0x4812e2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x48126c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4e2fd8], eax
cmp dword [0x4e2fd4], 0
jne 0x4812fd
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4e2fd4], eax
cmp dword [0x4e2fdc], 0
jne 0x481321
push esp
push 0
push 0
push 0x481210
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4e2fdc], eax
pop edx
ret

Function at 0x481994
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e2fc0]
cmp dword [eax + 0x30], 0
je 0x481a3e
cmp dword [ebx + 0x94], 0
jne 0x481a38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x481924
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x481a38
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x4819fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x481a38
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00437a64
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x481a0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48251c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x482551
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00455d40
jmp 0x48255e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00455ca4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x483624
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x483665
mov eax, esi
call fcn.00491d78
test al, al
je 0x483665
mov eax, dword [ebx + 0x84]
call fcn.00491a74
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x483665
push 0
mov eax, dword [ebx + 0x84]
call fcn.00491a74
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret