joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476a3c
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 0x476be7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x476bc8
mov dl, 1
mov eax, dword [0x418148]
call fcn.00403d00
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c70
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x476bb7
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.004675e8
test al, al
je 0x476baa
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, 0x476bf8
lea eax, [ebp - 0x254]
call fcn.0040a794
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x476baa
xor eax, eax
push ebp
push 0x476ba3
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 0x476c30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x476b8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ef0
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 0x476b8c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476baa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x476aad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041cb24
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 0x476bee
lea eax, [ebp - 0x260]
call fcn.00404c70
ret

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

Disassembly:
push ecx
mov eax, dword [0x4fccd0]
cmp byte [eax + 0xad], 0
jne 0x4775d1
cmp dword [0x4fccec], 0
jne 0x477592
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47751c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4fccec], eax
cmp dword [0x4fcce8], 0
jne 0x4775ad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4fcce8], eax
cmp dword [0x4fccf0], 0
jne 0x4775d1
push esp
push 0
push 0
push 0x4774c0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4fccf0], eax
pop edx
ret
Function at 0x4777d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4777eb
add esp, 0xfffffff0
call fcn.00404094
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423084
mov eax, dword [0x4f6df0]
cmp word [eax + 2], 0
jne 0x477813
mov eax, dword [0x4f6df0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00479534
mov eax, dword [0x4f6efc]
cmp word [eax + 2], 0
jne 0x47782d
mov eax, dword [0x4f6efc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00479740
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417a78]
call fcn.00403d00
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417a78]
call fcn.00403d00
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417a78]
call fcn.00403d00
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x429054]
call fcn.00431254
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4779e4
mov eax, dword [0x4f6cb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00431628
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x479e14
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f6cb0]
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.0040e07c
test eax, eax
je 0x477934
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a0f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e0b0
test eax, eax
je 0x477948
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404ef0
mov byte [ebx + 0xd4], 0
push ebx
push 0x478fa8
call fcn.00424200
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4f6b18]
cmp byte [eax], 0
jne 0x477999
mov eax, ebx
call fcn.00477b28
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0047a028
mov eax, ebx
call fcn.0047ab8c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4779d9
call fcn.004040ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477da8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x477e47
cmp dword [ebx + 0x94], 0
jne 0x477e41
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x477d30
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x477e41
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 0x477e07
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x477e41
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.0041a3c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x477e16
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x478060
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4fccd0]
cmp dword [eax + 0x30], 0
je 0x4781bd
test bl, bl
jne 0x47810e
cmp dword [esi + 0x9c], 0
jne 0x478103
mov eax, esi
call fcn.0047aa08
push eax
push 0x477f8c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4780d4
mov eax, dword [0x4fccd0]
call fcn.0047b0e8
test al, al
je 0x4780d4
mov eax, dword [0x4fccf4]
call fcn.004060d0
mov edi, eax
cmp edi, 0
jl 0x4780d4
push 0
mov eax, dword [0x4fccf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4780be
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x478103
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041a3c0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4780e3
inc dword [esi + 0x9c]
jmp 0x4781bd
cmp dword [esi + 0x9c], 0
jle 0x4781bd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4781bd
cmp dword [esi + 0x44], 0
je 0x478169
mov eax, dword [0x4fccd0]
call fcn.0047b0e8
test al, al
je 0x478169
mov eax, dword [0x4fccf4]
call fcn.004060d0
mov edi, eax
cmp edi, 0
jl 0x478169
push 5
mov eax, dword [0x4fccf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x478153
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x478198
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041a3c0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x478178
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4fccf4
mov ecx, 1
mov edx, dword [0x477f6c]
call fcn.00406284
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x478ca4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x478d0e
mov eax, ebx
call fcn.0047b0e8
test al, al
jne 0x478d0e
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.00404d60
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x478cfb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x478d1b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cc4
jmp 0x478d1b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cc4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x47a20c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47a27a
mov eax, esi
call fcn.0046218c
test al, al
je 0x47a27a
mov eax, dword [ebx + 0x84]
call fcn.00461dec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47a27a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x47a26e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00461dec
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00459bdc
jmp 0x47a27a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0047a048
pop esi
pop ebx
ret

Function at 0x47b4e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, 0x4fcd08
test ecx, ecx
je 0x47b4f8
test edx, edx
jne 0x47b4ff
xor eax, eax
jmp 0x47b5ed
xor eax, 0xffffffff
cmp ecx, 8
jb 0x47b5cb
mov ebx, edx
movzx edi, byte [ebx]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx edi, byte [ebx + 1]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx edi, byte [ebx + 2]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx edi, byte [ebx + 3]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx edi, byte [ebx + 4]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx edi, byte [ebx + 5]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx edi, byte [ebx + 6]
xor edi, eax
and edi, 0xff
mov edi, dword [esi + edi*4]
shr eax, 8
xor edi, eax
mov eax, edi
movzx ebx, byte [ebx + 7]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
shr eax, 8
xor ebx, eax
mov eax, ebx
add edx, 8
sub ecx, 8
cmp ecx, 8
jae 0x47b50b
test ecx, ecx
jbe 0x47b5ea
movzx ebx, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
test ecx, ecx
ja 0x47b5cf
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x48a094
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 1
je 0x48a0bb
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48a244
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48a23d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x48a10a
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
test edi, edi
je 0x48a100
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, ebx
call edi
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.user32.dll_GetWindowRect
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 4
je 0x48a222
mov edx, dword [ebp - 4]
test al, 8
je 0x48a186
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x48a16b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004582c0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x14
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x48a1a8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004582c0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x318
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004582c0
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 0x10
je 0x48a200
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x28], 0x1e
lea eax, [ebp - 0x34]
push eax
push 0x489fd0
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 0x20
je 0x48a222
mov byte [ebp - 0x34], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0x489fd0
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a244
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48a550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x48a607
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x190
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x48a618
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48a5f1
mov dword [ebp - 0xc], 0x20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x48a630
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp esi, 2
je 0x48a5f1
test esi, esi
jne 0x48a5c8
cmp dword [ebp - 8], 1
je 0x48a5cc
xor ebx, ebx
jmp 0x48a5f1
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, 0x20
call fcn.00404ef0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x10]
call fcn.00403700
mov ebx, eax
cmp dword [ebp - 0x10], 0
je 0x48a5f1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a60e
lea eax, [ebp - 0x34]
call fcn.00404c70
ret

Function at 0x48b55c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x48b61b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f6cb8]
cmp dword [eax], 5
jl 0x48b58d
mov eax, dword [0x4f70cc]
cmp dword [eax], 2
je 0x48b591
mov bl, 1
jmp 0x48b605
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x48b634
push esi
push 0x48b660
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405014
mov eax, dword [ebp - 0x14]
call fcn.00405110
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48b605
mov dword [ebp - 0x10], 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x48b5f3
cmp word [ebp - 0xc], 0
jne 0x48b5fa
cmp eax, 0xea
jne 0x48b5fc
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b622
lea eax, [ebp - 0x14]
call fcn.00404c70
ret
Function at 0x48b6e0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x48b768
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x1004
push 0
call sub.user32.dll_GetKeyboardLayout
and eax, 0xffff
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x48b750
mov byte [ebp - 5], 0
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 0x10
call fcn.00404ef0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call fcn.00405eb0
mov ebx, eax
cmp dword [ebp - 4], 0
jne 0x48b74c
push ebx
call sub.kernel32.dll_IsValidCodePage
test eax, eax
jne 0x48b752
xor ebx, ebx
jmp 0x48b752
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b76f
lea eax, [ebp - 0x18]
call fcn.00404c70
ret

Function at 0x490270
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046218c
test al, al
je 0x4903c5
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00461dec
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetUpdateRect
test eax, eax
je 0x4902dc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_EqualRect
test eax, eax
je 0x4902dc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0048d208
jmp 0x4903c5
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4903b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x14]
push edi
mov esi, dword [ebp - 0x18]
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
push 0
push 0
push 0x85
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
push 0
mov ebx, dword [ebp - 0xc]
push ebx
push 0x14
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
push 0
push ebx
push 0xf
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push edi
push esi
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4903ba
cmp dword [ebp - 0xc], 0
je 0x490396
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteDC
cmp dword [ebp - 0x10], 0
je 0x4903a5
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ReleaseDC
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494e64
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, eax
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyA
mov ebx, eax
shl ebx, 0x10
test ebx, ebx
je 0x494ea4
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextA
test eax, eax
jle 0x494ea4
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404ef0
jmp 0x494eb0
mov eax, esi
mov edx, 0x494ec4
call fcn.00404cc4
add esp, 0x100
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00405460
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x49a4ae
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405610
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a4b4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x49a4bc
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49a6a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x38]
call fcn.0040564c
test eax, eax
jle 0x49a512
mov esi, 1
mov edx, dword [ebx + 0x38]
cmp word [edx + esi*2 - 2], 9
jne 0x49a50e
mov eax, dword [ebp - 4]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebx + 0x38]
call fcn.004057f4
jmp 0x49a65c
inc esi
dec eax
jne 0x49a4ea
cmp word [ebx + 0x9a], 0
jne 0x49a529
mov eax, dword [ebp - 4]
call fcn.00405460
jmp 0x49a65c
movzx eax, byte [ebx + 0x9a]
mov byte [ebp - 5], al
mov eax, dword [0x4f70cc]
cmp dword [eax], 2
jne 0x49a55b
movzx eax, byte [ebp - 5]
add al, 0xf8
sub al, 2
jb 0x49a55b
sub al, 3
je 0x49a55b
sub al, 0xe
je 0x49a55b
add al, 0xfb
sub al, 9
jb 0x49a55b
add al, 0xfc
sub al, 2
jae 0x49a57a
lea edx, [ebp - 0xc]
movzx eax, word [ebx + 0x9a]
call fcn.0044cd08
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040562c
jmp 0x49a65c
movzx eax, byte [ebp - 5]
add al, 0xd0
sub al, 0xa
jb 0x49a590
add al, 0xf9
sub al, 0x1a
jb 0x49a590
add al, 0xfb
sub al, 0xa
jae 0x49a5a8
push 2
movzx eax, byte [ebp - 5]
push eax
call sub.user32.dll_MapVirtualKeyW
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040557c
jmp 0x49a5b7
mov edx, dword [ebp - 4]
movzx eax, word [ebx + 0x9a]
call fcn.0049a460
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor edx, edx
call fcn.00405770
je 0x49a65c
test byte [ebx + 0x9b], 0x80
je 0x49a5fa
lea edx, [ebp - 0x14]
mov eax, dword [0x4f6bfc]
call fcn.00406f3c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040562c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [ebp - 4]
call fcn.004056b8
test byte [ebx + 0x9b], 0x40
je 0x49a62b
lea edx, [ebp - 0x1c]
mov eax, dword [0x4f6b8c]
call fcn.00406f3c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.0040562c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [ebp - 4]
call fcn.004056b8
test byte [ebx + 0x9b], 0x20
je 0x49a65c
lea edx, [ebp - 0x24]
mov eax, dword [0x4f6b28]
call fcn.00406f3c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0040562c
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [ebp - 4]
call fcn.004056b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a6a9
lea eax, [ebp - 0x24]
call fcn.00404c70
lea eax, [ebp - 0x20]
call fcn.00405460
lea eax, [ebp - 0x1c]
call fcn.00404c70
lea eax, [ebp - 0x18]
call fcn.00405460
lea eax, [ebp - 0x14]
call fcn.00404c70
lea eax, [ebp - 0x10]
call fcn.00405460
lea eax, [ebp - 0xc]
call fcn.00404c70
ret