joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479c10
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 0x479cc9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x479ce0
call fcn.00473b4c
push dword [ebp - 0xc]
push 0x479cf4
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, 0x479d00
call fcn.00479ad4
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a3c
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404b7c
push eax
call fcn.004799e4
mov esi, eax
test esi, esi
je 0x479cae
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x479ca8
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 0x479cd0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004046e0
ret

Function at 0x479f50
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 0x479fc1
mov ebx, 0x5f040000
jmp 0x479faf
cmp dword [esp + 0x10], 0x10000
jne 0x479f8d
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x479fc1
cmp dword [esp + 0xc], 0x10000
jae 0x479fa1
mov dword [esp + 0xc], 0x10000
jmp 0x479fa9
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 0x479f6d
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 0x47a128
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 [0x4c494c]
cmp eax, 0x1c
jne 0x47a1a3
cmp dword [ebp - 0xc], 0x1000
jne 0x47a19e
cmp dword [ebp - 0x18], 0
je 0x47a19e
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x47a19e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x47a17d
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x47a1a3
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4c491c]
cmp eax, 0
je 0x47a19e
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4c4964]
add ebx, dword [ebp - 0x10]
jmp 0x47a13f
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x47effc
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.00404b6c
xor eax, eax
push ebp
push 0x47f0bc
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 0x47f0a6
cmp dword [ebp - 4], 0
jne 0x47f049
lea edx, [ebp - 8]
mov eax, esi
call fcn.0047ee44
test al, al
je 0x47f0a6
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.0047ee44
test al, al
je 0x47f097
cmp dword [ebp - 4], 0
je 0x47f077
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 0x47f08e
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 0x47f0a6
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 0x47f0c3
lea eax, [ebp - 4]
call fcn.004046bc
ret

Function at 0x47f0cc
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.00404b6c
xor eax, eax
push ebp
push 0x47f152
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.00404d08
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x47f129
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x47f124
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x47f119
add ebx, 2
jmp 0x47f12f
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.0040497c
add eax, dword [edi]
cmp eax, esi
ja 0x47f107
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f159
lea eax, [ebp - 4]
call fcn.004046bc
ret
Function at 0x47f160
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 0x47f2b5
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 0x47f1ad
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 0x47f1d5
push 0x47f2c4
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [ebp - 0x226]
push eax
lea edx, [ebp - 0x22c]
mov eax, 0x47f2d0
call fcn.00473b4c
mov eax, dword [ebp - 0x22c]
call fcn.00404b7c
push eax
call fcn.00479160
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 0x47f231
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 0x47f292
lea edx, [ebp - 4]
mov eax, 0x47f2e4
call fcn.0047f0cc
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040497c
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x47f284
mov eax, dword [ebp - 4]
call fcn.0040497c
cmp eax, dword [ebp - 8]
je 0x47f288
xor ebx, ebx
jmp 0x47f28a
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x47f294
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f2bc
lea eax, [ebp - 0x22c]
call fcn.004046bc
lea eax, [ebp - 4]
call fcn.004046bc
ret
Function at 0x480a70
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 0x480ac4
push esi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x480aad
test ebx, ebx
je 0x480aa5
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x480aa5
push ebx
push esi
call sub.advapi32.dll_EqualSid
test eax, eax
jne 0x480aa9
xor eax, eax
jmp 0x480ac6
mov al, 1
jmp 0x480ac6
test ebx, ebx
je 0x480abf
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x480abf
xor eax, eax
jmp 0x480ac6
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x481290
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.00480fd4
pop ecx
test al, al
jne 0x4813b8
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.00480fd4
pop ecx
test al, al
jne 0x4813b8
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x4c7668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4c7668]
push eax
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00480fd4
pop ecx
test al, al
jne 0x4813b8
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.00480fd4
pop ecx
test al, al
jne 0x4813b8
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.00480fd4
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x481a28
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 0x481a53
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x481a67
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 0x481a6b
xor eax, eax
jmp 0x481a6d
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x481bdc
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 0x481c73
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.004819fc
test al, al
je 0x481c73
cmp word [ebp - 2], 0x5a4d
jne 0x481c73
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.004819fc
test al, al
je 0x481c73
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.004819fc
test al, al
je 0x481c73
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x481c73
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x481c77
xor eax, eax
jmp 0x481c79
mov al, 1
test al, al
je 0x481c96
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 0x48386c
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.00477b28
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 0x4839b9
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 0x4839b9
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 0x4839b9
cmp dword [esi + 0x20], 0
je 0x483935
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 0x4839b9
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 0x4839b9
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x4839b9
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 0x4839b9
cmp byte [ebp - 0x16], 0xe8
jne 0x4839b9
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 0x4839b9
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 0x484234
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 0x4842f5
xor ecx, ecx
push ebp
push 0x4842ee
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 0x4842d7
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 0x4842d0
mov eax, dword [ebx]
dec eax
test eax, eax
jl 0x4842bc
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
or dword [ebx + ecx*4 + 0xc], 2
inc edx
dec eax
jne 0x4842b0
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 0x4842f5
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 0x48a9a4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48aa5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404df0
mov eax, dword [0x4c5e58]
cmp byte [eax], 0
je 0x48aa13
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405150
mov eax, dword [ebx]
call fcn.00404f7c
push eax
mov eax, dword [ebx]
call fcn.00404f6c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404f7c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405150
jmp 0x48aa45
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409b54
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48aa65
lea eax, [ebp - 0x3f0]
call fcn.004046bc
ret

Function at 0x48dbc4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x48dc1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.0048dc28
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dc25
ret
Function at 0x4934d0
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x493506
jmp 0x4935ac
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x49354a
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x168], 0
je 0x49354a
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x14]
jmp 0x49355a
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x164]
test edx, edx
je 0x49355a
mov eax, dword [edx + 0x14]
test eax, eax
je 0x493573
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.0048feb0
jmp 0x4935ac
mov dl, 1
mov eax, dword [0x421080]
call fcn.00423064
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00423ad4
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.00422c14
mov edx, esp
mov eax, esi
call fcn.00423768
mov eax, esi
call fcn.00403888
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x495b78
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00452798
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0044bd84
pop ebx
ret
Function at 0x49bba0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49bc5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404df0
mov eax, dword [0x4c5e58]
cmp byte [eax], 0
je 0x49bc0f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405150
mov eax, dword [ebx]
call fcn.00404f7c
push eax
mov eax, dword [ebx]
call fcn.00404f6c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404f7c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405150
jmp 0x49bc41
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409b54
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bc61
lea eax, [ebp - 0x3f0]
call fcn.004046bc
ret

Function at 0x49bc68
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.00409b54
add esp, 0x3ec
pop ebx
ret

Function at 0x49be28
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov ebp, edx
mov esi, eax
mov edx, ebp
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
cmp dword [ebp + 0xc], 0
jne 0x49bee1
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00462d0c
mov ebx, eax
mov dx, word [ebp + 4]
mov eax, esi
call fcn.0049bae4
mov edi, eax
test edi, edi
je 0x49be87
mov al, byte [0x49beec]
cmp al, bl
jne 0x49be87
mov edx, edi
mov eax, esi
call fcn.0049ba1c
mov dword [ebp + 0xc], 1
mov byte [esi + 0x31], 1
jmp 0x49bee1
cmp byte [esi + 0x161], 2
jne 0x49beb2
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp + 4]
mov eax, dword [0x4c61e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov edx, 0xb006
call fcn.0044d018
test eax, eax
jne 0x49bee1
jmp 0x49bedc
mov eax, dword [0x4c60e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
cmp eax, dword [esi + 0x128]
je 0x49bedc
mov edx, dword [ebp + 8]
push edx
movzx ecx, word [ebp + 4]
mov edx, dword [0x4c60e4]
mov edx, 0xb006
call fcn.0044d018
xor eax, eax
mov dword [ebp + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a1e48
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
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x4a1e7c
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4a1eb8
jmp 0x4a1e80
pop edx
pop eax
jge 0x4a1eb8
mov eax, dword [0x4c61e8]
mov eax, dword [eax]
mov dword [eax + 0x44], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0049ccc0
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4a1edd
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4a1edd
cmp dword [ebx + 0x11c], 0
je 0x4a1edd
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00430f50
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4ac99c
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 0x4acb0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4acaf2
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.00409b54
mov dl, 1
mov eax, dword [0x484d58]
call fcn.00484db0
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x417400]
call fcn.00403858
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00484e2c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4acaef
mov dl, 1
mov eax, dword [0x4860a0]
call fcn.00486108
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x4acb24
call fcn.0048524c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004049c8
xor eax, eax
push ebp
push 0x4acae8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00486408
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004acb2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acaef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00403888
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403888
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403888
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acb14
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046e0
ret