joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cd08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, ecx
add ecx, ecx
add ecx, eax
and ecx, ecx
je 0x42cdf2
shr ecx, 3
and ecx, ecx
je 0x42cdc6
shl ecx, 3
add esi, ecx
add edi, ecx
shr ecx, 3
neg ecx
mov ebx, dword [esi + ecx*8]
mov eax, dword [edi + ecx*8]
mov edx, eax
not edx
xor eax, ebx
and edx, ebx
mov ebx, eax
not ebx
sub eax, edx
sub eax, edx
and ebx, 0xfefefefe
shr ebx, 1
add edx, ebx
and edx, 0x80808080
mov ebx, edx
shl ebx, 1
shr edx, 7
add edx, 0x7f7f7f7f
xor edx, 0x80808080
add eax, ebx
and edx, eax
mov dword [edi + ecx*8], edx
mov ebx, dword [esi + ecx*8 + 4]
mov eax, dword [edi + ecx*8 + 4]
mov edx, eax
not edx
xor eax, ebx
and edx, ebx
mov ebx, eax
not ebx
sub eax, edx
sub eax, edx
and ebx, 0xfefefefe
shr ebx, 1
add edx, ebx
and edx, 0x80808080
mov ebx, edx
shl ebx, 1
shr edx, 7
add edx, 0x7f7f7f7f
xor edx, 0x80808080
add eax, ebx
and edx, eax
mov dword [edi + ecx*8 + 4], edx
inc ecx
jne 0x42cd3c
mov ecx, dword [ebp + 0x10]
mov eax, ecx
add ecx, ecx
add ecx, eax
and ecx, 7
je 0x42cdf2
nop
nop
nop
nop
add esi, ecx
add edi, ecx
neg ecx
mov bl, byte [esi + ecx]
mov al, byte [edi + ecx]
sub al, bl
sbb dl, dl
not dl
and al, dl
mov byte [edi + ecx], al
inc ecx
jne 0x42cdde
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42cdfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shl ecx, 2
and ecx, ecx
je 0x42cee0
shr ecx, 3
and ecx, ecx
je 0x42ceb7
shl ecx, 3
add esi, ecx
add edi, ecx
shr ecx, 3
neg ecx
mov ebx, dword [esi + ecx*8]
mov eax, dword [edi + ecx*8]
mov edx, eax
not edx
xor eax, ebx
and edx, ebx
mov ebx, eax
not ebx
sub eax, edx
sub eax, edx
and ebx, 0xfefefefe
shr ebx, 1
add edx, ebx
and edx, 0x80808080
mov ebx, edx
shl ebx, 1
shr edx, 7
add edx, 0x7f7f7f7f
xor edx, 0x80808080
add eax, ebx
and edx, eax
mov dword [edi + ecx*8], edx
mov ebx, dword [esi + ecx*8 + 4]
mov eax, dword [edi + ecx*8 + 4]
mov edx, eax
not edx
xor eax, ebx
and edx, ebx
mov ebx, eax
not ebx
sub eax, edx
sub eax, edx
and ebx, 0xfefefefe
shr ebx, 1
add edx, ebx
and edx, 0x80808080
mov ebx, edx
shl ebx, 1
shr edx, 7
add edx, 0x7f7f7f7f
xor edx, 0x80808080
add eax, ebx
and edx, eax
mov dword [edi + ecx*8 + 4], edx
inc ecx
jne 0x42ce2d
mov ecx, dword [ebp + 0x10]
shl ecx, 2
and ecx, 7
je 0x42cee0
nop
nop
nop
nop
add esi, ecx
add edi, ecx
neg ecx
mov bl, byte [esi + ecx]
mov al, byte [edi + ecx]
sub al, bl
sbb dl, dl
not dl
and al, dl
mov byte [edi + ecx], al
inc ecx
jne 0x42cecc
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42cee8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shl ecx, 2
and ecx, ecx
je 0x42cfcc
shr ecx, 3
and ecx, ecx
je 0x42cfa3
shl ecx, 3
add esi, ecx
add edi, ecx
shr ecx, 3
neg ecx
mov ebx, dword [esi + ecx*8]
mov eax, dword [edi + ecx*8]
mov edx, eax
not edx
xor eax, ebx
and edx, ebx
mov ebx, eax
not ebx
sub eax, edx
sub eax, edx
and ebx, 0xfefefefe
shr ebx, 1
add edx, ebx
and edx, 0x80808080
mov ebx, edx
shl ebx, 1
shr edx, 7
add edx, 0x7f7f7f7f
xor edx, 0x80808080
add eax, ebx
and edx, eax
mov dword [edi + ecx*8], edx
mov ebx, dword [esi + ecx*8 + 4]
mov eax, dword [edi + ecx*8 + 4]
mov edx, eax
not edx
xor eax, ebx
and edx, ebx
mov ebx, eax
not ebx
sub eax, edx
sub eax, edx
and ebx, 0xfefefefe
shr ebx, 1
add edx, ebx
and edx, 0x80808080
mov ebx, edx
shl ebx, 1
shr edx, 7
add edx, 0x7f7f7f7f
xor edx, 0x80808080
add eax, ebx
and edx, eax
mov dword [edi + ecx*8 + 4], edx
inc ecx
jne 0x42cf19
mov ecx, dword [ebp + 0x10]
shl ecx, 2
and ecx, 7
je 0x42cfcc
nop
nop
nop
nop
add esi, ecx
add edi, ecx
neg ecx
mov bl, byte [esi + ecx]
mov al, byte [edi + ecx]
sub al, bl
sbb dl, dl
not dl
and al, dl
mov byte [edi + ecx], al
inc ecx
jne 0x42cfb8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43f0fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp esi, dword [ebp + 8]
jge 0x43f12b
mov ebx, edx
movzx edx, dx
xor bl, byte [ecx]
and ebx, 0xff
sar edx, 8
mov bx, word [eax + ebx*2 + 6]
xor bx, dx
mov edx, ebx
inc esi
inc ecx
mov ebx, dword [ebp + 8]
cmp esi, ebx
jl 0x43f108
mov eax, edx
pop esi
pop ebx
pop ebp
ret 4

Function at 0x440840
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
push esp
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x440860
cmp eax, 0x104
jl 0x440864
xor eax, eax
jmp 0x44089a
xor ebx, ebx
push ebx
lea eax, [esp + 4]
push eax
push str._sHyTmp_03d.HyPack
push esi
call fcn.004c32c0
add esp, 0x10
mov eax, esi
call sym.NDA.exe__FileIsExist_qqrpc
test al, al
je 0x44088e
inc ebx
cmp ebx, 0x3e8
jl 0x440866
cmp ebx, 0x3e8
setne al
and eax, 1
add esp, 0x104
pop esi
pop ebx
ret
Function at 0x447430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
test dl, dl
push ebx
push esi
mov byte [ebp - 0x10], dl
jle 0x447444
call fcn.004cf878
mov ebx, ecx
mov byte [ebp - 0x31], dl

Function at 0x44b3dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov byte [ebp - 1], 0
push 2
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test eax, eax
je 0x44b4f7
push esi
push ebx
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov ebx, eax
push 0x28
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.004bfb94
add esp, 0xc
add ebx, 0x28
cmp word [ebp - 0x1e], 8
jne 0x44b4f7
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x44b43e
mov si, word [ebp - 0xc]
jmp 0x44b442
mov si, 0x100
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44b483
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jne 0x44b463
push 0x400
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
movzx eax, si
shl eax, 2
push eax
push ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push eax
call fcn.004bfb94
movzx edx, si
shl edx, 2
add esp, 0xc
add ebx, edx
jmp 0x44b48b
movzx ecx, si
shl ecx, 2
add ebx, ecx
test edi, edi
je 0x44b4d5
mov eax, dword [edi]
test eax, eax
jne 0x44b4a6
mov edx, dword [ebp - 0x28]
imul edx, dword [ebp - 0x24]
push edx
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [edi], eax
mov esi, dword [ebp - 0x24]
dec esi
test esi, esi
jl 0x44b4d5
mov eax, dword [ebp - 0x28]
push eax
push ebx
mov edx, dword [edi]
mov ecx, esi
imul ecx, eax
add edx, ecx
push edx
call fcn.004bfb94
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 3
and eax, 0xfffffffc
add ebx, eax
dec esi
test esi, esi
jge 0x44b4ae
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x44b4e4
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x44b4f3
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4504b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff78
mov edi, eax
xor ebx, ebx
push 0x8001
call sub.KERNEL32.DLL_SetErrorMode
mov esi, eax
push 0x4000
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.DLL_OpenFile
test eax, eax
jle 0x4504ee
push edi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4504ee
test al, 0x10
jne 0x4504ee
mov bl, 1
push esi
call sub.KERNEL32.DLL_SetErrorMode
mov eax, ebx
add esp, 0x88
pop edi
pop esi
pop ebx
ret

Function at 0x450500
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x450518
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x450530
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x18]
add esp, 0x20
ret

Function at 0x450548
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x1c]
add esp, 0x20
ret
Function at 0x462b40
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.004bbb90
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x462b8f
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.004bbdc0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468d4c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x468d52
ret

Function at 0x46b4f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x46b541
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x46b528
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x46b518
jmp 0x46b541
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x46b529
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473e54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5298c0
cmp dword [edi], 0
jne 0x473ed0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5298bc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x514788
mov ecx, 2
call fcn.004ba960
mov edx, 0x473e2c
lea eax, [esi + 5]
call fcn.00473e4c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00473e4c
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 0x473ea5
mov dword [0x5298bc], 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 0x473fec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x47403c]
test si, 4
je 0x474000
or bl, 1
test si, 8
je 0x47400a
or bl, 4
test si, 1
je 0x474014
or bl, 8
test si, 2
je 0x47401e
or bl, 0x10
test si, 0x10
je 0x474028
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x474037
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x474040
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x474078]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x474059
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x474068
or bl, 4
test esi, 0x20000000
je 0x474073
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47a5c8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47a5da
add esp, 0xfffffff0
call fcn.004bb234
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004ae0c0
mov eax, ebx
call fcn.0047a914
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x4770b8
push eax
push 0
push 0
mov eax, dword [0x5260c0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x468274]
call fcn.004697ac
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x468274]
call fcn.004697ac
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x468274]
call fcn.004697ac
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0047ad84
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ac58
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ac58
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ac58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47a6e9
call fcn.004bb28c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47aa3c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47abe7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x47abc8
mov dl, 1
mov eax, dword [0x4a5cd8]
call fcn.004baec4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004bbb90
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47abb7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00491228
test al, al
je 0x47abaa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x47abf8
lea eax, [ebp - 0x254]
call fcn.004b623c
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x47abaa
xor eax, eax
push ebp
push 0x47aba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x47ac30
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x47ab8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004bbdc0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x47ab8c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004bbdc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47abaa
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47aaad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004a93f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47abee
lea eax, [ebp - 0x260]
call fcn.004bbb90
ret

Function at 0x47b47c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5298b0]
cmp byte [eax + 0x95], 0
jne 0x47b4ed
cmp dword [0x5298cc], 0
jne 0x47b4ae
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x47b438
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x5298cc], eax
cmp dword [0x5298c8], 0
jne 0x47b4c9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x5298c8], eax
cmp dword [0x5298d0], 0
jne 0x47b4ed
push esp
push 0
push 0
push 0x47b3dc
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5298d0], eax
pop edx
ret
Function at 0x47b5e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47b5fb
add esp, 0xfffffff0
call fcn.004bb234
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004ae0c0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4a5824]
call fcn.004baec4
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x468c04]
call fcn.004702cc
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x47b770
mov eax, dword [0x526254]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0047069c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47d194
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x526254]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.004b75f4
test eax, eax
je 0x47b6ee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004b5bdc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004b761c
test eax, eax
je 0x47b702
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004bbdc0
mov eax, dword [0x52625c]
cmp byte [eax], 0
jne 0x47b733
mov eax, ebx
call fcn.0047b85c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47b765
call fcn.004bb28c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47bacc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5298b0]
cmp dword [eax + 0x24], 0
je 0x47bb6f
cmp dword [ebx + 0x84], 0
jne 0x47bb69
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47ba5c
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x47bb69
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 0x47bb32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47bb69
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.004a7384
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47bb41
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x47c57c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x47c5b1
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004bbc78
jmp 0x47c5bb
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004bbbe4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47d508
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x47d540
mov eax, esi
call fcn.0048cf48
test al, al
je 0x47d540
mov eax, dword [ebx + 0x74]
call fcn.0048cc4c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x47d540
push 0
mov eax, dword [ebx + 0x74]
call fcn.0048cc4c
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x4848f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x52994c], 0
sete dl
or al, dl
jne 0x484a38
mov eax, dword [0x529950]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x52994c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x484a07
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x52994c]
call fcn.004a7384
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4849ff
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4849ff
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4849ff
mov eax, dword [ebp - 0x14]
call fcn.0048cc4c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4849ff
push ebp
call fcn.004848b4
pop ecx
test al, al
jne 0x4849ff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4849bb
mov eax, dword [ebp - 0x14]
call fcn.0048b5d8
dec eax
jle 0x4849ff
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.004bb0d0
cmp byte [ebp - 1], 0
je 0x4849ff
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4849ff
mov edx, dword [ebp - 0x14]
mov eax, dword [0x529950]
call fcn.00484100
inc edi
dec esi
jne 0x48494e
mov eax, dword [0x529950]
cmp dword [eax + 8], 0
jle 0x484a1f
mov eax, dword [0x529950]
call fcn.00484190
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x484a38
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0048471c
pop ecx
test al, al
jne 0x484a38
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret