joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461a48
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 0x461bf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461bd4
mov dl, 1
mov eax, dword [0x41b2c4]
call fcn.00403448
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040432c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461bc3
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.0044f59c
test al, al
je 0x461bb6
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, 0x461c04
lea eax, [ebp - 0x254]
call fcn.00409c24
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x461bb6
xor eax, eax
push ebp
push 0x461baf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x461c3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461b98
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040459c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x461b98
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040459c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461bb6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461ab9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041f628
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461bfa
lea eax, [ebp - 0x260]
call fcn.0040432c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4bbbbc]
cmp byte [eax + 0xa5], 0
jne 0x462599
cmp dword [0x4bbbd4], 0
jne 0x46255a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4624e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4bbbd4], eax
cmp dword [0x4bbbd0], 0
jne 0x462575
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4bbbd0], eax
cmp dword [0x4bbbd8], 0
jne 0x462599
push esp
push 0
push 0
push 0x462488
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4bbbd8], eax
pop edx
ret
Function at 0x462690
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4626a7
add esp, 0xfffffff0
call fcn.0040379c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423a58
mov eax, dword [0x4b9df4]
cmp word [eax + 2], 0
jne 0x4626cf
mov eax, dword [0x4b9df4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463d80
mov eax, dword [0x4b9f48]
cmp word [eax + 2], 0
jne 0x4626e9
mov eax, dword [0x4b9f48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463f78
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ac60]
call fcn.00403448
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ac60]
call fcn.00403448
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425fc4]
call fcn.0042d8c4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x462870
mov eax, dword [0x4b9c58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042dc94
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464528
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b9c58]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040da54
test eax, eax
je 0x4627de
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409604
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040da7c
test eax, eax
je 0x4627f2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040459c
mov eax, dword [0x4b9a18]
cmp byte [eax], 0
jne 0x462826
mov eax, ebx
call fcn.00462998
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00464704
mov eax, ebx
call fcn.004650c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462866
call fcn.004037f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462c18
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bbbbc]
cmp dword [eax + 0x30], 0
je 0x462cc2
cmp dword [ebx + 0x94], 0
jne 0x462cbc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462ba8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462cbc
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 0x462c82
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462cbc
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.0041d290
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x462c91
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x463824
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 0x463859
push pe_nt_image_headers32
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.0040441c
jmp 0x463866
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404380
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4648e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464921
mov eax, esi
call fcn.0044ab64
test al, al
je 0x464921
mov eax, dword [ebx + 0x84]
call fcn.0044a860
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464921
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a860
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x467fe8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x468016
mov eax, ebx
call fcn.00468a9c
cmp dword [ebx + 0x40], 0
je 0x46800f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x468087
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x468079
cmp dword [ebx + 8], 0
je 0x468038
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46804a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x468079
cmp dword [ebx + 8], 0
je 0x46802b
cmp eax, 3
je 0x46805d
dec eax
jne 0x46802b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46802b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46802b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4680a5
cmp dword [ebx + 0x14], 0xcc
je 0x4680a5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004680b0
pop ebx
ret
Function at 0x494d10
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x494d35
cmp dword [esp + 4], 5
jb 0x494d35
mov al, 1
jmp 0x494d37
xor eax, eax
add esp, 0x94
ret
Function at 0x4a5620
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4b9158]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x4a565c
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4a5674
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4a566d
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402e20
xor edx, edx
mov eax, 0x4b9358
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4a56de
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4a5692
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4a591c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4a5935
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4a592e
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4a5947
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4a5940
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004a5510
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4a5961
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.004a5620
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4a59e6
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4a5a03
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004a55a0
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4a5a2c
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a5a44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4a5a5d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4a5a56
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4a5a71
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a5408
test bl, bl
jne 0x4a5b44
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4bbc3c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4a5aa8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4a5abc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a591c
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4a5aee
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x4a5a9d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4a5b11
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4a5b22
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4a5b36
jmp 0x4a5bff
cmp bl, 1
jne 0x4a5bff
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4bbc96
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4a5b64
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4a5b78
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a591c
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4a5baa
sub ebx, 6
inc dword [ebp - 8]
jne 0x4a5b59
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4a5bd1
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4a5be2
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4a5bf6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004a548c
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4a7268
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 0x4a74c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a72cb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a6d80
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d5cc
cmp al, 1
jne 0x4a72cb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a7048
test al, al
je 0x4a7457
cmp dword [ebp - 8], 0
jge 0x4a72e9
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.004a6d80
mov eax, dword [ebp - 0x210]
call fcn.004045ec
cmp ebx, eax
jge 0x4a7333
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a6d80
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ba184]
and eax, 0xff
bt dword [edx], eax
jae 0x4a7333
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a7347
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a7244
cmp ebx, dword [ebp - 8]
je 0x4a7449
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4a7373
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403674
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b93d0]
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 0x4a7436
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403674
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b93d0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044a860
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403674
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b93d0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044a860
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a743d
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 0x4a74aa
cmp dword [ebp - 8], 0
jge 0x4a7462
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a6d80
mov eax, dword [ebp - 0x218]
call fcn.004045ec
cmp eax, dword [ebp - 8]
jg 0x4a749c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a6d80
mov eax, dword [ebp - 0x21c]
call fcn.004045ec
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a7244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a74cf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404350
ret
Function at 0x4b5640
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004097b4
add esp, 0x108
pop ebx
ret

Function at 0x4b566c
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebx
mov ebx, eax
xor edx, edx
mov eax, dword [ebx + 0x36c]
call fcn.00433e38
xor edx, edx
mov eax, dword [ebx + 0x358]
call fcn.00433e38
mov dl, 1
mov eax, dword [0x4bc098]
call fcn.0045d264
push 3
push 0
push 0
push 0
push 0
push 0
mov eax, ebx
call fcn.0044a860
push eax
call sub.user32.dll_SetWindowPos
push 0x40
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x40]
push eax
push 0xffffffffffffffff
mov eax, dword [0x4bc098]
call fcn.0044a860
push eax
call sub.user32.dll_SetWindowPos
push 0x4bc1c4
push 2
call sub.shell32.dll_Shell_NotifyIconA
push 0
mov eax, dword [0x4bb668]
push eax
push 0x4b1a60
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4bc09c], eax
push 0
push 0x4b5718
call sub.user32.dll_FindWindowA
push 0
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x4bc22c
call fcn.0040432c
pop ebx
ret
Function at 0x4b5728
Capabilities:
Access peb ldr_data
Find taskbar
Hide graphical window
Hide the windows taskbar
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
mov esi, 0x4bc1c4
xor eax, eax
push ebp
push 0x4b588c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebx + 0x300]
call fcn.004440a8
xor edx, edx
mov eax, dword [ebx + 0x32c]
call fcn.004a6e28
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00456068
xor edx, edx
call fcn.004560a0
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x34]
mov edx, 1
call fcn.00456068
xor edx, edx
call fcn.004560a0
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x34]
mov edx, 2
call fcn.00456068
xor edx, edx
call fcn.004560a0
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x34]
mov edx, 5
call fcn.00456068
xor edx, edx
call fcn.004560a0
mov eax, dword [0x4bc09c]
push eax
call sub.user32.dll_UnhookWindowsHookEx
push 0
call sub.user32.dll_ClipCursor
push 0
push 0x4b5898
call sub.user32.dll_FindWindowA
push 5
push eax
call sub.user32.dll_ShowWindow
push 0x80
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [0x4b9f14]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowPos
mov eax, ebx
call fcn.00460770
mov dword [esi], 0x58
mov eax, ebx
call fcn.0044a860
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], 7
mov dword [esi + 0x10], 0x7e8
mov eax, dword [0x4b9f14]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.0042da00
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
mov ecx, dword [0x4bc22c]
mov edx, 0x4b58b0
call fcn.00404638
mov eax, dword [ebp - 4]
call fcn.004047ec
mov edx, eax
lea eax, [esi + 0x18]
call fcn.00409604
push esi
push 0
call sub.shell32.dll_Shell_NotifyIconA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5893
lea eax, [ebp - 4]
call fcn.0040432c
ret

Function at 0x4b5b5c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0
push 0
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x4b5b6c
mov al, 1
ret
xor eax, eax
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x67f008], 0x8088405
inc edx
mov dword [ebx + 0x67f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret