joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6902dc98
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x6902dd50
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0xc], 0
je 0x6902dd25
test bl, bl
je 0x6902dd1d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x6902dd60
push 0
push 0x6902dd64
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x6902dd19
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x6902dd64
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0xc]
call fcn.6902d370
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0xc]
call fcn.6902d4b8
jmp 0x6902dd25
xor ebx, ebx
jmp 0x6902dd25
mov eax, dword [esi + 0xc]
call fcn.6902d554
mov byte [esi + 0x1b], bl
push esi
push 0x6902da44
call fcn.6902d044
mov edx, esi
call fcn.6902a970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6902dd57
lea eax, [ebp - 0xc]
call fcn.69005214
ret

Function at 0x69033834
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor eax, eax
mov ecx, edx
test ecx, ecx
je 0x69033843
sub ecx, 4
mov ecx, dword [ecx]
test ecx, ecx
jle 0x69033864
mov ebx, 1
mov esi, eax
add esi, esi
add esi, esi
shr eax, 0x1e
or esi, eax
movzx eax, byte [edx + ebx - 1]
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x6903384c
pop esi
pop ebx
ret
Function at 0x6903510c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x69035276
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.690052ac
mov eax, dword [ebp - 4]
call fcn.69034ba4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x6903515e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.6900574c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.690358d8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x69035233
xor eax, eax
push ebp
push 0x6903522c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.69034d50
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.690352a4
test al, al
je 0x6903520a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.69005304
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x6903520a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.690056a4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x69035204
mov eax, dword [ebp - 8]
call fcn.690056a4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.6900540c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.6903510c
dec ebx
cmp ebx, 0xffffffff
jne 0x690351bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69035233
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.69034d50
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.690056a4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.69034d3c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6903527d
lea eax, [ebp - 0x3c]
call fcn.69005214
lea eax, [ebp - 8]
mov edx, 2
call fcn.69005238
ret

Function at 0x690352a4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.69003ab4
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x6915dc30]
cmp byte [edx + 0xc], 0
je 0x69035308
mov edx, dword [0x6915dc18]
cmp dword [edx], 2
jne 0x69035308
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x6903530c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x690353c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.690352a4
test al, al
je 0x690353a6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.69005304
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x690353a6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.690056a4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 4]
call fcn.690056a4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.6900540c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x6903535f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x690353cb
lea eax, [ebp - 0x2c]
call fcn.69005214
lea eax, [ebp - 4]
call fcn.69005214
ret

Function at 0x690353d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x6903548c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.690352a4
test al, al
je 0x6903546e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.69005304
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x6903546e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.690056a4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 4]
call fcn.690056a4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.6900540c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x69035427
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69035493
lea eax, [ebp - 0x2c]
call fcn.69005214
lea eax, [ebp - 4]
call fcn.69005214
ret
Function at 0x690357ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.69034bb8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.690056a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x6903584b
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6915d908]
mov dl, 1
mov eax, dword [0x69034974]
call fcn.6901071c
call fcn.69004b04
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x69035854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.690056a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x690358ac
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6915dc44]
mov dl, 1
mov eax, dword [0x69034974]
call fcn.6901071c
call fcn.69004b04
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.69034be8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x6903af74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6903b02b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.6903a0b8
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x10]
call fcn.69039204
mov edi, dword [ebp - 8]
dec edi
test edi, edi
jl 0x6903b015
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.6903ad1c
add eax, 8
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.69038478
lea edx, [ebp - 0x18]
pop eax
call fcn.69014ac8
mov edx, ebx
mov eax, esi
call fcn.6903ad1c
add eax, 0x18
call fcn.69005214
mov edx, ebx
mov eax, esi
call fcn.6903ad1c
add eax, 8
call fcn.6901acd0
xor al, 1
push eax
mov edx, ebx
mov eax, esi
call fcn.6903ad1c
pop edx
mov byte [eax + 4], dl
inc ebx
dec edi
jne 0x6903afbb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6903b032
lea eax, [ebp - 0x18]
call fcn.690147b4
ret
Function at 0x6903b0b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test dl, dl
je 0x6903b0c9
add esp, 0xfffffff0
call fcn.690044f0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.690056a4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
call sub.kernel32.dll_GetLastError
mov esi, eax
cmp ebx, 0xffffffff
jne 0x6903b11f
cmp esi, 0x20
jne 0x6903b11f
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp + 8]
jbe 0x6903b0d9
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.690245a4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x6903b15b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x6915dad4]
mov dl, 1
mov eax, dword [0x6901eb6c]
call fcn.6901071c
call fcn.69004b04
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x6903b173
call fcn.69004548
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x6903db00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.690056a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x6903db58
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6915dc44]
mov dl, 1
mov eax, dword [0x6903d60c]
call fcn.6901071c
call fcn.69004b04
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.6903d714
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x6903ece8
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 0x6903ecee
ret
Function at 0x6904da78
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.69005694
xor eax, eax
push ebp
push 0x6904dbad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x6904db80
xor edx, edx
push ebp
push 0x6904db79
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x6904dac5
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6904db4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x6904db3d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x6904db04
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.690056a4
lea ecx, [ebx + 1]
mov edx, esi
call fcn.69003510
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6904db44
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x6915d64c]
mov dl, 1
mov eax, dword [0x6900a588]
call fcn.690106e0
call fcn.69004b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6904dbb4
lea eax, [ebp - 4]
call fcn.69005214
ret
Function at 0x6904dbbc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6904dd77
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.69005998
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x6904dd90
call fcn.6900552c
mov eax, ebx
call fcn.6902907c
mov edi, eax
dec edi
test edi, edi
jl 0x6904dc74
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.69029050
mov edx, dword [0x69049cc8]
call fcn.69004358
test al, al
je 0x6904dc70
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.69029050
lea edx, [ebp - 0x14]
call fcn.6906f1ac
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.69005998
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.690055a8
inc esi
dec edi
jne 0x6904dc22
movzx eax, byte [0x6904dd94]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x6904dda0
mov eax, dword [ebp - 8]
call fcn.69011e48
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.690052ac
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.6906f1ac
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x6904dd90
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.6906f1ac
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x6904dd90
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x6904dd90
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x6904ddac
call fcn.6900d00c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6904dd7e
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.69005238
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.69005238
lea eax, [ebp - 0x14]
call fcn.69005214
lea eax, [ebp - 0x10]
call fcn.69005214
lea eax, [ebp - 8]
mov edx, 2
call fcn.69005238
ret
Function at 0x69051548
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x69051569
test edi, 0x40000
je 0x69051583
test bl, bl
jne 0x69051604
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x69051604
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x690515b6
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x690515cb
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x690515da
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x690515eb
cmp byte [esp + 2], 0
je 0x69051604
cmp byte [esp + 2], 0
je 0x690515fc
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x69051604
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x690518a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x690518ce
mov eax, esp
push eax
push 0x69051870
call sub.user32.dll_EnumWindows
jmp 0x690518e1
mov eax, esp
push eax
push 0x69051850
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x6905196c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x690519c0]
test si, 4
je 0x69051981
or bl, 1
test si, 8
je 0x6905198b
or bl, 4
test si, 1
je 0x69051995
or bl, 8
test si, 2
je 0x6905199f
or bl, 0x10
test si, 0x10
je 0x690519a9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x690519b8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x690519c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x69051a00]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x690519de
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x690519ed
or bl, 4
test esi, 0x20000000
je 0x690519f8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x69059a6c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x69059a7e
add esp, 0xfffffff0
call fcn.690044f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.69028a3c
mov eax, dword [0x6915d6ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x69059e10
mov eax, dword [0x6915d6fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x69059e1c
mov eax, ebx
call fcn.69059e28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x6901efac]
call fcn.69004194
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x6901efac]
call fcn.69004194
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x6901efac]
call fcn.69004194
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x6901efac]
call fcn.69004194
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x6901efac]
call fcn.69004194
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x690552d0
push eax
push 0
push 0
mov eax, dword [0x6915d8fc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x6903e014]
call fcn.6903f868
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x6903e014]
call fcn.6903f868
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x6903e014]
call fcn.6903f868
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.6905a2a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x6905a170
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x6905a170
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x6905a170
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x69059bbb
call fcn.69004548
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x69059f54
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 0x6905a0ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x6905a0e0
mov dl, 1
mov eax, dword [0x6901f57c]
call fcn.69004194
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.69005214
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x6905a0cf
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.6907c8e0
test al, al
je 0x6905a0c2
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, 0x6905a110
lea eax, [ebp - 0x254]
call fcn.6900cf8c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x6905a0c2
xor eax, eax
push ebp
push 0x6905a0bb
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 0x6905a148
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x6905a0a4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.69005484
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 0x6905a0a4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.69005484
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6905a0c2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x69059fc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.69024078
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 0x6905a106
lea eax, [ebp - 0x260]
call fcn.69005214
ret

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

Disassembly:
push ecx
mov eax, dword [0x69165f38]
cmp byte [eax + 0xad], 0
jne 0x6905aae9
cmp dword [0x69165f54], 0
jne 0x6905aaaa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x6905aa34
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x69165f54], eax
cmp dword [0x69165f50], 0
jne 0x6905aac5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x69165f50], eax
cmp dword [0x69165f58], 0
jne 0x6905aae9
push esp
push 0
push 0
push 0x6905a9d8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x69165f58], eax
pop edx
ret