joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66071d1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, dword [ebp + 0xc]
push edi
push esi
and byte [ebp + 0xf], 0
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebx], 2
mov byte [ebp + 0xc], 0x3f
mov byte [ebp + 0xd], 0x5f
mov byte [ebp + 0xe], 3
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x66071d7c
lea ecx, [ebp - 8]
push esi
push ecx
lea ecx, [ebp - 0xc]
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x66071d7c
cmp dword [ebp - 8], 4
je 0x66071da2
call fcn.66072d39
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
je 0x66071d98
cmp dword [ebp + 8], esi
je 0x66071d98
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
push 4
lea edi, [ebp + 0xc]
pop ecx
lea esi, [ebp - 0xc]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x66071db6
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx], ecx
xor esi, esi
jmp 0x66071d84

Function at 0x6607269d
Capabilities:
Get thread local storage value

Disassembly:
mov ecx, dword [0x6610f474]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp ecx, 0xffffffff
jne 0x660726cf
xor eax, eax
test al, al
je 0x660726e4
cmp ecx, 0xffffffff
je 0x660726e0
push ecx
call esi
xor ecx, ecx
cmp dword [eax + 0x38], 2
setge cl
test cl, cl
je 0x660726e4
push 1
pop eax
pop esi
ret
push ecx
call esi
mov ecx, dword [0x6610f474]
neg eax
sbb eax, eax
neg eax
jmp 0x660726b1
xor eax, eax
jmp 0x660726bd
xor eax, eax
pop esi
ret

Function at 0x660739ea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6610f7e0]
push ebx
push esi
mov ecx, eax
mov esi, 0x3ff
push edi
and ecx, esi
xor edi, edi
cmp cx, di
mov bl, 1
je 0x66073a10
cmp cx, 9
jne 0x66073a16
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp dword [0x6610f704], 0x400
jb 0x66073a55
lea ecx, [ebp - 0x20]
push 0x20
movzx eax, ax
push ecx
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x40]
push 3
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x66073a4e
mov bl, byte [ebp - 0x40]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
mov edx, eax
mov ecx, 0x6604f0d4
and edx, esi
cmp word [ecx - 4], dx
jne 0x66073a78
cmp bl, 1
jne 0x66073a6b
mov bl, byte [ecx]
mov si, ax
shr si, 0xa
cmp word [ecx - 2], si
je 0x66073a86
add ecx, 6
inc edi
cmp ecx, 0x6604f1ca
jae 0x66073a4e
jmp 0x66073a5e
lea eax, [edi + edi*2]
mov bl, byte [eax*2 + 0x6604f0d4]
jmp 0x66073a4e

Function at 0x660749fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x66074a15
test al, 0x10
je 0x66074a15
push 1
pop eax
ret 4
xor eax, eax
jmp 0x66074a12
Function at 0x66074b90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov edi, ecx
call fcn.660163a2
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x66074d0a
mov al, byte [eax]
cmp al, bl
je 0x66074d0a
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x66074d0a
cmp eax, 5
je 0x66074d0a
cmp eax, 6
je 0x66074d0a
cmp eax, 2
je 0x66074d0a
mov dword [ebp - 0x10], 0x100
call fcn.66085c10
cmp eax, ebx
jne 0x66074cbf
xor eax, eax
cmp eax, ebx
jl 0x66074cb8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0xc]
call dword [0x66111b6c]
test eax, eax
jne 0x66074d0a
push dword [ebp - 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
call esi
test eax, eax
jne 0x66074d0a
cmp byte [ebp - 0x114], 0x5c
jne 0x66074d0a
push dword [ebp - 0x113]
call esi
test eax, eax
jne 0x66074d0a
cmp byte [ebp - 0x113], 0x5c
jne 0x66074d0a
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.66016198
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov edx, eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x14], edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax + 1]
push eax
push ebx
push dword [0x6610f6c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x66074cca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push eax
call fcn.6607266b
jmp 0x66074c0c
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [edi + 8], ebx
push esi
mov ecx, edi
je 0x66074d03
call fcn.660166a4
push esi
push ebx
push dword [0x6610f6c0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x66074cba
call fcn.6600eba8
jmp 0x66074cef
push 1
pop eax
jmp 0x66074cba
Function at 0x6607a73b
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x28]
push edi
mov dword [esp + 0x10], 1
mov edi, 0x202
mov ecx, dword [eax]
test byte [ecx + 1], 1
je 0x6607a765
test byte [eax + 0x29], 0x80
jne 0x6607a765
mov ebx, dword [ebx + 0x50]
mov ebp, dword [esp + 0x1c]
xor eax, eax
cmp dword [ebx + 0x3c], ebp
mov esi, 0x80018001
sete al
mov dword [esp + 0x18], eax
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x6607a79b
xor ecx, ecx
cmp dword [esp + 0x18], ecx
jne 0x6607a7de
push esi
push ecx
push edi
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
dec eax
neg eax
sbb eax, eax
and eax, 2
inc eax
inc eax
mov dword [esp + 0x10], eax
xor eax, eax
cmp edi, 0x202
setne al
dec eax
and al, 0xfd
add eax, 0x208
cmp dword [esp + 0x10], 4
mov edi, eax
jne 0x6607a77a
push 0
push 0
push 0x1f
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0xc]
cmp eax, ecx
jne 0x6607a7ed
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
push esi
push ecx
push edi
push ebp
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
jmp 0x6607a79b
Function at 0x6607a9a7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x6607a9c0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x6607aa12
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, 0x100
mov edx, dword [edi + 0x28]
cmp esi, ecx
mov dword [ebp + 0x1c], edx
jb 0x6607aa09
mov eax, 0x101
cmp esi, eax
jbe 0x6607aad6
cmp esi, 0x102
je 0x6607aa44
cmp esi, 0x103
jbe 0x6607aa09
cmp esi, 0x105
jbe 0x6607aad6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jge 0x6607aa24
push 2
pop edi
push 0x10
call esi
xor ecx, ecx
test ax, ax
mov eax, dword [ebp + 0x18]
setl cl
mov eax, dword [eax]
shr eax, 0x1b
and eax, 4
or ecx, eax
or ecx, edi
mov dword [ebp - 8], ecx
jmp 0x6607a9cb
mov eax, dword [edi + 0x30]
mov ebx, dword [ebp + 0x14]
mov esi, dword [eax + 0x34]
mov al, byte [ebx]
push eax
xor eax, eax
cmp dword [ebp + 0x20], eax
mov ecx, dword [esi + 0xe6c]
setne al
push eax
push dword [ebp + 0xc]
call fcn.6607ab8a
test eax, eax
jne 0x6607aa09
mov eax, dword [ebp + 0x1c]
movzx eax, byte [eax + 0xf2]
cmp eax, 0xff
mov dword [ebp + 0x14], eax
je 0x6607aa09
movzx ax, byte [ebx]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x6607aaa9
push dword [ebp + 0xc]
mov ecx, dword [esi + 0xe6c]
call fcn.6607acf0
xor ecx, ecx
mov cl, al
mov ch, byte [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
push edi
call fcn.66022e97
mov ecx, 0x16c
cmp eax, ecx
jne 0x6607ab2a
mov eax, ecx
jmp 0x6607aa0b
cmp esi, ecx
je 0x6607ab26
cmp esi, 0x104
je 0x6607ab26
push 7
pop ecx
movzx ecx, byte [edx + ecx + 0xec]
cmp ecx, 0xff
je 0x6607aa09
mov ebx, dword [ebp + 0x14]
cmp esi, eax
jne 0x6607ab1b
mov eax, dword [0x6610fa1c]
and ax, 0x3ff
cmp ax, 0x12
jne 0x6607ab1b
cmp dword [ebx], 0xe5
je 0x6607aa09
lea eax, [ebp - 8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
jmp 0x6607aabb
push 5
jmp 0x6607aae4
cmp esi, 0x102
jne 0x6607ab6a
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp dword [ebp + 0x20], eax
push dword [ebp + 0x1c]
setne al
push eax
mov eax, dword [edi + 0x30]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + 0xe6c]
call fcn.6607ad1b
test eax, eax
jl 0x6607ab82
xor eax, eax
test eax, eax
jne 0x6607aa0b
movzx ecx, word [ebp - 4]
mov dword [ebx], ecx
test eax, eax
jne 0x6607aa0b
cmp dword [ebx], eax
jne 0x6607aa0b
or eax, 0xffffffff
jmp 0x6607aa0b
push eax
call fcn.6607268f
jmp 0x6607ab5c
Function at 0x6607bae8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, eax
and esi, 0x3ff
cmp si, 9
je 0x6607bb38
lea ecx, [ebp - 4]
push 4
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x6607bb38
cmp si, 4
je 0x6607bb1e
and byte [ebp - 2], 0
lea eax, [ebp - 4]
push eax
push 0x6604f8a0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret 4
mov eax, dword [ebp + 8]
and byte [eax + 1], 0
mov byte [eax], 0x2a
jmp 0x6607bb33

Function at 0x6607c037
Capabilities:
Get keyboard layout

Disassembly:
cmp dword [0x661118a0], 0
push esi
push edi
je 0x6607c052
push dword [esp + 0xc]
call dword [0x66111870]
mov esi, eax
test esi, esi
jne 0x6607c059
xor eax, eax
pop edi
pop esi
ret 4
mov eax, dword [0x6610fa1c]
and ax, 0x3ff
cmp ax, 4
jne 0x6607c090
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call dword [0x6611188c]
mov edi, eax
push edi
push esi
call dword [0x66111874]
push esi
push dword [esp + 0x10]
call dword [0x66111884]
mov eax, edi
jmp 0x6607c054
push esi
call dword [0x66111880]
mov edi, eax
jmp 0x6607c081

Function at 0x6607c73d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
test ax, ax
jge 0x6607c774
push 2
pop ebx
push 0x12
call esi
test ax, ax
jge 0x6607c778
push 4
pop edi
push 0x10
call esi
xor ecx, ecx
test ax, ax
setl cl
or ecx, edi
pop edi
or ecx, ebx
pop esi
mov eax, ecx
pop ebx
ret
xor ebx, ebx
jmp 0x6607c752
xor edi, edi
jmp 0x6607c75e
Function at 0x6607d126
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0xe
push dword [ebp + 8]
call edi
mov ebx, eax
inc ebx
push ebx
push esi
push dword [0x6610f6c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x6607d160
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
push esi
push ebx
push 0xd
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0xb0
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
je 0x6607d1a5
cmp byte [esi + eax], 0
je 0x6607d19e
mov ecx, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
mov al, byte [esi + eax]
mov byte [esi + ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x6607d183
mov eax, dword [ebp - 4]
and byte [esi + eax], 0
push esi
call fcn.66087284
push esi
push 0
push dword [0x6610f6c0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x6607d159
Function at 0x6608223c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x6608227a
and byte [ebx], 0
cmp dword [ebp + 0x14], esi
jne 0x6608228a
lea eax, [ebp + 0x14]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
je 0x66082283
cmp eax, esi
mov dword [ebp + 0x14], esi
je 0x66082283
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov dword [ebp - 0xc], 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.6608754e
push dword [ebp - 4]
lea eax, [ebp - 0x90]
push 0x6604fd5c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x90]
push ebx
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0xc], edi
call esi
test eax, eax
mov dword [ebp + 0x10], eax
je 0x660822e8
push edi
push ebx
push 0x7ea1
push dword [0x6610f6c8]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x66082326
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoIsOle1Class]
test eax, eax
je 0x66082326
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.660875cb
lea eax, [ebp + 0xc]
mov dword [ebp - 8], 1
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp + 0xc], edi
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x66082326
and dword [ebp + 0xc], 0
cmp dword [ebp - 8], 0
je 0x6608233a
mov eax, dword [0x6610f6c4]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [0x6610f6c4]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0xc], 0
je 0x66082357
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
jmp 0x6608227c

Function at 0x66082e72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
mov eax, 0x660583e0
push 0x660583d0
push eax
mov dword [ebp - 4], 0x14
push dword [ebp + 8]
mov edi, 0xff
push eax
push 0x6601bdb0
lea eax, [ebp - 0x118]
push 0x6604fd88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp + 8]
xor esi, esi
push eax
push 0x20019
lea eax, [ebp - 0x118]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x66082f34
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 0x66058470
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x66082f2b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x18]
push 0x66058450
push eax
call esi
test eax, eax
jne 0x66082f0a
push 1
pop edi
lea eax, [ebp - 0x18]
push 0x66058460
push eax
call esi
test eax, eax
je 0x66082f28
lea eax, [ebp - 0x18]
push 0x66058468
push eax
call esi
test eax, eax
jne 0x66082f2b
push 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x66085140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
xor esi, esi
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x6608518f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp ebx, 0xffffffff
je 0x6608519a
imul ebx, ebx, 0x3e8
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x660851c5
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x660851be
cmp dword [ebp + 0x10], esi
jne 0x660851c5
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 4]
jmp 0x66085188

Function at 0x66087b44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + edi*2]
shl eax, 2
push eax
push 0
push dword [0x6610f6c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x66087b73
mov eax, 0x8007000e
pop edi
pop ebp
ret 0x10
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push ebx
add edi, eax
mov ebx, eax
cmp eax, edi
jae 0x66087bce
mov al, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov cl, al
and ecx, 0xff
cmp cx, 0x41
jb 0x66087bb4
cmp cx, 0x5a
ja 0x66087bb4
mov byte [esi], 0x11
mov word [esi + 2], cx
mov word [esi + 4], 1
add esi, 6
mov byte [esi], 0x15
jmp 0x66087bbc
test ah, 1
mov byte [esi], 0x11
jne 0x66087baf
mov word [esi + 2], cx
mov word [esi + 4], 1
add esi, 6
inc ebx
cmp ebx, edi
jb 0x66087b82
mov ecx, dword [ebp + 0x14]
mov eax, esi
push 6
sub eax, dword [ecx]
pop ecx
pop ebx
pop esi
cdq
idiv ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x66087b6e
Function at 0x660884e0
Capabilities:
Get thread local storage value
Resume thread
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x6610f6c0]
and dword [eax], 0
push 0x100
push 8
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x6608852b
mov dword [eax], edi
add eax, 4
test eax, eax
je 0x6608852b
push 1
mov ecx, eax
call fcn.6600dfca
mov edi, eax
test edi, edi
jne 0x6608852f
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 4
xor edi, edi
jmp 0x6608851b
push esi
mov ecx, edi
call fcn.66087f9c
mov ebx, eax
test ebx, ebx
jge 0x6608854d
push 0
push 1
push edi
mov ecx, esi
call fcn.66019724
mov eax, ebx
jmp 0x66088524
lea eax, [esi + 0x68]
lea ecx, [ebp - 4]
push eax
call fcn.6600355f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov ecx, esi
mov ebx, eax
call fcn.6600e0e7
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 4]
call fcn.66003592
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
mov ecx, edi
call fcn.660880e5
mov ebx, eax
test ebx, ebx
jge 0x6608859a
push 1
jmp 0x6608853f
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x66088549
Function at 0x6608ae94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
and dword [ebp - 8], 0
push esi
push edi
lea eax, [ebp - 0x40]
push 0x27
push eax
mov dword [ebp - 4], 0x104
push dword [ebp + 8]
call fcn.6601bc33
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
push 0x66050174
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x6608afd4
lea eax, [ebp - 0x180]
shr eax, 0x10
test ax, ax
je 0x6608afc9
lea edi, [ebp - 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and al, 0xfc
call fcn.660300d8
lea ecx, [ebp - 0x180]
mov eax, esp
push ecx
push eax
call fcn.660035e5
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x6608afd4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
push 0x66050160
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x6608afd4
lea eax, [ebp + 8]
push 0x10
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.6600e7ab
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 0x2e
jne 0x6608afa5
lea ecx, [ebp + 8]
push 0x10
inc eax
push ecx
push eax
call fcn.6600e7ab
add esp, 0xc
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [0x6610fa1c]
push dword [ebp - 8]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
lea esp, [ebp - 0x18c]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x180]
jmp 0x6608af34
lea eax, [ebp - 4]
push 1
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0x104
call fcn.6608b12b
test eax, eax
jne 0x6608affc
mov eax, 0x80004005
jmp 0x6608afbc
lea eax, [ebp - 0x180]
shr eax, 0x10
test ax, ax
je 0x6608b046
lea edi, [ebp - 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and al, 0xfc
call fcn.660300d8
lea ecx, [ebp - 0x180]
mov eax, esp
push ecx
push eax
call fcn.660035e5
push dword [ebp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
jmp 0x6608afbc
lea eax, [ebp - 0x180]
jmp 0x6608b037
Function at 0x6608b12b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x48]
push 0x660501b8
push eax
call edi
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x48]
push esi
push dword [ebp + 0xc]
push eax
push SysReAllocStringLen
call ebx
test eax, eax
je 0x6608b1a4
cmp dword [ebp + 0x14], 0
je 0x6608b17b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0x660501a0
push eax
call edi
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x48]
push esi
push dword [ebp + 0xc]
push eax
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x6608b1a9
push 1
pop eax
jmp 0x6608b174
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0x66050188
push eax
call edi
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x48]
push esi
push dword [ebp + 0xc]
push eax
push SysReAllocStringLen
call ebx
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x6608b174

Function at 0x6608b4a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [esi + 0x18]
push eax
call fcn.6601bc33
movzx eax, word [esi + 0x2e]
push dword [esi + 0x28]
push eax
movzx eax, word [esi + 0x2c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push 0x660501fc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x6608b51d
test eax, eax
mov dword [ebp + 8], esi
je 0x6608b51d
push 1
pop eax
pop esi
leave
ret 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0x6608b4a0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x6608b556
cmp dword [ebp - 4], eax
sete al
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6608b518
push 1
pop esi
jmp 0x6608b549