joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d720
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x47d7d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x47d7f0
call fcn.0047765c
push dword [ebp - 0xc]
push 0x47d804
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov cl, byte [ebp - 1]
mov eax, 0x47d810
call fcn.0047d5e4
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404c14
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404d54
push eax
call fcn.0047d4f4
mov esi, eax
test esi, esi
je 0x47d7be
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x47d7b8
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
mov dword [edx - 4], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d7e0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004048b8
ret

Function at 0x47da60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x47dad1
mov ebx, 0x5f040000
jmp 0x47dabf
cmp dword [esp + 0x10], 0x10000
jne 0x47da9d
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x47dad1
cmp dword [esp + 0xc], 0x10000
jae 0x47dab1
mov dword [esp + 0xc], 0x10000
jmp 0x47dab9
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x47da7d
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x47dc38
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x4be9cc]
cmp eax, 0x1c
jne 0x47dcb3
cmp dword [ebp - 0xc], 0x1000
jne 0x47dcae
cmp dword [ebp - 0x18], 0
je 0x47dcae
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x47dcae
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x47dc8d
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x47dcb3
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4be99c]
cmp eax, 0
je 0x47dcae
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4be9e4]
add ebx, dword [ebp - 0x10]
jmp 0x47dc4f
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x482b0c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404d44
xor eax, eax
push ebp
push 0x482bcc
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x482bb6
cmp dword [ebp - 4], 0
jne 0x482b59
lea edx, [ebp - 8]
mov eax, esi
call fcn.00482954
test al, al
je 0x482bb6
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.00482954
test al, al
je 0x482ba7
cmp dword [ebp - 4], 0
je 0x482b87
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x482b9e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [ebp - 8], 0
je 0x482bb6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482bd3
lea eax, [ebp - 4]
call fcn.00404894
ret

Function at 0x482bdc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d44
xor eax, eax
push ebp
push 0x482c62
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.00404ee0
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x482c39
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x482c34
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x482c29
add ebx, 2
jmp 0x482c3f
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.00404b54
add eax, dword [edi]
cmp eax, esi
ja 0x482c17
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482c69
lea eax, [ebp - 4]
call fcn.00404894
ret
Function at 0x482c70
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x482dc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jne 0x482cbd
mov word [ebp - 0x212], 0x2e
mov word [ebp - 0x210], 0
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrlenW
cmp word [ebp + eax*2 - 0x214], 0x5c
je 0x482ce5
push 0x482dd4
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [ebp - 0x226]
push eax
lea edx, [ebp - 0x22c]
mov eax, 0x482de0
call fcn.0047765c
mov eax, dword [ebp - 0x22c]
call fcn.00404d54
push eax
call fcn.0047cc70
push ebx
push 0
lea eax, [ebp - 0x226]
push eax
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
jne 0x482d41
lea eax, [ebp - 0x212]
push eax
push ebx
call sub.kernel32.dll_lstrcpyW
lea eax, [ebp - 0x226]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x482da2
lea edx, [ebp - 4]
mov eax, 0x482df4
call fcn.00482bdc
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b54
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x482d94
mov eax, dword [ebp - 4]
call fcn.00404b54
cmp eax, dword [ebp - 8]
je 0x482d98
xor ebx, ebx
jmp 0x482d9a
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x482da4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482dcc
lea eax, [ebp - 0x22c]
call fcn.00404894
lea eax, [ebp - 4]
call fcn.00404894
ret
Function at 0x484580
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4845d4
push esi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x4845bd
test ebx, ebx
je 0x4845b5
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x4845b5
push ebx
push esi
call sub.advapi32.dll_EqualSid
test eax, eax
jne 0x4845b9
xor eax, eax
jmp 0x4845d6
mov al, 1
jmp 0x4845d6
test ebx, ebx
je 0x4845cf
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x4845cf
xor eax, eax
jmp 0x4845d6
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x484da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00484ae4
pop ecx
test al, al
jne 0x484ec8
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00484ae4
pop ecx
test al, al
jne 0x484ec8
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x4c0668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4c0668]
push eax
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00484ae4
pop ecx
test al, al
jne 0x484ec8
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.00484ae4
pop ecx
test al, al
jne 0x484ec8
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.00484ae4
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x485538
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x485563
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x485577
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x48557b
xor eax, eax
jmp 0x48557d
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4856ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x485783
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0048550c
test al, al
je 0x485783
cmp word [ebp - 2], 0x5a4d
jne 0x485783
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0048550c
test al, al
je 0x485783
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0048550c
test al, al
je 0x485783
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x485783
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x485787
xor eax, eax
jmp 0x485789
mov al, 1
test al, al
je 0x4857a6
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x48737c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.0047b638
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4874c9
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4874c9
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4874c9
cmp dword [esi + 0x20], 0
je 0x487445
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4874c9
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4874c9
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x4874c9
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4874c9
cmp byte [ebp - 0x16], 0xe8
jne 0x4874c9
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x4874c9
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
call sub.kernel32.dll_VirtualProtect
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x487d44
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x487e05
xor ecx, ecx
push ebp
push 0x487dfe
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x487de7
mov eax, dword [ebp - 8]
add eax, eax
call fcn.004027ac
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x487de0
mov eax, dword [ebx]
dec eax
test eax, eax
jl 0x487dcc
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
or dword [ebx + ecx*4 + 0xc], 2
inc edx
dec eax
jne 0x487dc0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, ebx
call fcn.004027cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487e05
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x489c54
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x489d75
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov edx, dword [0x4bf99c]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4bf99c]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x489d8c
call fcn.0040a310
mov eax, dword [ebp - 4]
call fcn.0049d89c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4bf758]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x4bf960]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x489da8
call fcn.0040a310
mov eax, dword [ebp - 0x10]
call fcn.0049d89c
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x489920
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x489dc8
call fcn.0040a310
mov eax, dword [ebp - 0x24]
call fcn.0049d89c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x489de0
call fcn.0040a310
mov eax, dword [ebp - 0x28]
call fcn.0049d89c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489d7c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004048b8
lea eax, [ebp - 0x10]
call fcn.00404894
lea eax, [ebp - 4]
call fcn.00404894
ret
Function at 0x490088
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4900d6
mov edx, dword [ebx + 0x48]
cmp dword [edx + 0x13c], 0
je 0x4900d6
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x13c]
mov eax, dword [eax + 0x14]
jmp 0x4900e6
mov edx, dword [ebx + 0x48]
mov edx, dword [edx + 0x138]
test edx, edx
je 0x4900e6
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4900ff
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.0048df20
jmp 0x490142
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x34]
call fcn.00423884
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x14]
call fcn.00422f30
mov esi, eax
mov eax, dword [ebx + 0x48]
mov edx, dword [eax + 0xa8]
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x10]
call fcn.00422c58
mov edx, esp
mov eax, dword [ebx + 0x34]
call fcn.004234c8
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.00422c58
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x494de0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov edi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.004667e8
mov ebx, eax
mov dx, word [edi + 4]
mov eax, ebp
call fcn.00494c8c
mov esi, eax
test esi, esi
je 0x494e2d
mov al, byte [0x494e40]
cmp al, bl
jne 0x494e2d
mov edx, esi
mov eax, ebp
call fcn.00494c34
mov dword [edi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x494e35
mov edx, edi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x497c30
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409e20
add esp, 0x3ec
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
call fcn.00461874
mov edi, eax
dec edi
test edi, edi
jl 0x4990c3
inc edi
xor esi, esi
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00461884
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x49905a
je 0x49907b
dec eax
je 0x49909c
jmp 0x4990bb
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00461884
cmp byte [ebx + 0x15c], 0
setne dl
call fcn.004617a0
jmp 0x4990bb
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00461884
cmp byte [ebx + 0x15c], 1
setne dl
call fcn.004617a0
jmp 0x4990bb
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.00461884
cmp byte [ebx + 0x15c], 2
setne dl
call fcn.004617a0
inc esi
dec edi
jne 0x49903b
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x4990e8
cmp eax, dword [esp]
pop edx
pop eax
jae 0x499149
jmp 0x4990ec
pop edx
pop eax
jge 0x499149
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x130]
test byte [eax + 0x50], 2
je 0x499125
cmp byte [ebx + 0x159], 2
je 0x499125
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xec]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x499165
push 0
mov eax, dword [ebx + 0x124]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0xfc]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x499165
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0043141c
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x124]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a1ccc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1e16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4a1dfb
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409e20
mov dl, 1
mov eax, dword [0x488858]
call fcn.004888b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x417374]
call fcn.00403a50
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.0048892c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4a1df8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, 0x4a1e2c
call fcn.00488c78
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x4a1df1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
call fcn.0041bab4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a1e34
mov eax, dword [ebp - 0xc]
call fcn.00409968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1df8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00403a80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00403a80
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1e1d
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004048b8
ret