joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442fd0
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
mov al, byte [ebp + 8]
call fcn.004429a0
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.004054d0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x44302e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5b1b60]
mov dl, 1
mov eax, dword [0x442898]
call fcn.0040e094
call fcn.00404984
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x443038
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.004054d0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x443090
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5b1efc]
mov dl, 1
mov eax, dword [0x442898]
call fcn.0040e094
call fcn.00404984
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004429d0
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 0x44334c
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
je 0x4433e3
mov eax, dword [0x5b1ee0]
cmp dword [eax], 2
jne 0x443372
mov eax, dword [0x5b19b8]
cmp dword [eax], 4
jg 0x44339a
mov eax, dword [0x5b1ee0]
cmp dword [eax], 1
jne 0x4433d7
mov eax, dword [0x5b19b8]
cmp dword [eax], 4
jg 0x44339a
mov eax, dword [0x5b19b8]
cmp dword [eax], 4
jne 0x4433d7
mov eax, dword [0x5b1cd8]
cmp dword [eax], 0
jle 0x4433d7
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov esi, eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0xffffffffffffffff
push esi
push edi
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4433e3
push ebx
call sub.user32.dll_BringWindowToTop
push ebx
call sub.user32.dll_SetForegroundWindow
push 0
push esi
push edi
call sub.user32.dll_AttachThreadInput
jmp 0x4433e3
push ebx
call sub.user32.dll_BringWindowToTop
push ebx
call sub.user32.dll_SetForegroundWindow
pop edi
pop esi
pop ebx
ret
Function at 0x443834
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4438e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0xc]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xc]
lea eax, [ebp - 3]
mov cl, 1
call fcn.004036fc
lea eax, [ebp - 0x14]
lea edx, [ebp - 3]
call fcn.00405258
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004099a0
mov eax, dword [ebp - 0x10]
mov bl, byte [eax]
mov eax, ebx
add al, 0xbf
sub al, 0x1a
jae 0x4438bd
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.004051dc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, 0x4438f8
call fcn.0040531c
mov eax, dword [ebp - 8]
call fcn.004054d0
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
seta byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4438e7
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405018
lea eax, [ebp - 8]
call fcn.00404ff4
ret

Function at 0x443ee4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x444024
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404ff4
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.004054d0
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x444009
mov eax, dword [ebp - 8]
call fcn.00402c7c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x444002
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x444034
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00409fc0
push dword [ebp - 0x18]
push 0x444040
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00409fc0
push dword [ebp - 0x1c]
push 0x444040
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409fc0
push dword [ebp - 0x20]
push 0x444040
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409fc0
push dword [ebp - 0x24]
mov eax, esi
mov edx, 7
call fcn.00405390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444009
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00402cac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44402b
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405018
ret
Function at 0x446b64
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x446cf7
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [0x5b2aa2]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x446baf
call fcn.00404a30
jmp 0x446cfe
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov edi, eax
test edi, edi
jne 0x446bc8
call fcn.00404a30
jmp 0x446cfe
xor eax, eax
push ebp
push 0x446cda
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419dc0]
call fcn.004040b0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x446cbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalSize
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.0041e6b8
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0041e474
push pe_nt_image_headers32
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41a138]
call fcn.0041ef20
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x446c9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], esi
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00420f54
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x446c72
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x446c68
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00424bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x446c89
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446ca6
mov eax, dword [ebp - 0x14]
call fcn.004040e0
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446d08
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x446dda
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x446dac
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x446d9b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00402f2c
mov eax, dword [ebp - 4]
call fcn.00446aa0
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446da2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x446e5c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x446ece
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x446ea2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004051ec
jmp 0x446ea9
mov eax, ebx
call fcn.00404ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446ed5
cmp dword [ebp - 8], 0
je 0x446ec5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x446edc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x446f7e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x446f51
mov edx, ebx
mov eax, dword [0x4286dc]
call fcn.0042d038
test al, al
je 0x446f41
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0042cf48
call fcn.00404a30
jmp 0x446f85
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x446f0c
mov ecx, dword [0x5b18b0]
mov dl, 1
mov eax, dword [0x408b54]
call fcn.0040e058
call fcn.00404984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446f85
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x446f8c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x446fe4
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446feb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x448404
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x448481
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00447e64
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x448429
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00447a64
cmp dword [ebp - 4], 0
je 0x44846b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004054d0
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448488
lea eax, [ebp - 4]
call fcn.00404ff4
ret

Function at 0x44b850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5b2b0c], 0
je 0x44b99f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5b1c4c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x44b99f
mov eax, dword [0x5b2b10]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5b2b0c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44b96e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5b2b0c]
call fcn.0041bd24
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44b966
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x44b966
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44b966
mov eax, dword [ebp - 0x14]
call fcn.0045465c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44b966
push ebp
call fcn.0044b80c
pop ecx
test al, al
jne 0x44b966
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x44b922
mov eax, dword [ebp - 0x14]
call fcn.00453154
dec eax
jle 0x44b966
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004042e8
cmp byte [ebp - 1], 0
je 0x44b966
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44b966
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b2b10]
call fcn.0044afd8
inc edi
dec ebx
jne 0x44b8b5
mov eax, dword [0x5b2b10]
cmp dword [eax + 8], 0
jle 0x44b986
mov eax, dword [0x5b2b10]
call fcn.0044b068
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44b99f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044b674
pop ecx
test al, al
jne 0x44b99f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45907c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5b1ef0]
cmp byte [eax + 0xc], 0
je 0x4591e9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4591e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b2b1c], 0
jne 0x4590d0
push 0x4591f0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4591f8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b1c], eax
cmp dword [0x5a5e08], 0
jne 0x4591cb
push 0x459208
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5a5e08], eax
cmp dword [0x5a5e08], 0
je 0x4591cb
push 0x459214
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b20], eax
push 0x459224
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b24], eax
push 0x459238
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b28], eax
push 0x459250
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b2c], eax
push 0x459268
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b30], eax
push 0x45927c
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b34], eax
push 0x459294
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b38], eax
push 0x4592ac
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b3c], eax
push 0x4592c8
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b40], eax
push 0x4592d4
mov eax, dword [0x5a5e08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5b2b44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4591e9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404ff4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45d25f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00405264
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464b3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x464b8c]
test si, 4
je 0x464b50
or bl, 1
test si, 8
je 0x464b5a
or bl, 4
test si, 1
je 0x464b64
or bl, 8
test si, 2
je 0x464b6e
or bl, 0x10
test si, 0x10
je 0x464b78
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x464b87
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46b7f8
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 0x46b9a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46b984
mov dl, 1
mov eax, dword [0x419a7c]
call fcn.004040b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ff4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46b973
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.004593dc
test al, al
je 0x46b966
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, 0x46b9b4
lea eax, [ebp - 0x254]
call fcn.0040b3c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46b966
xor eax, eax
push ebp
push 0x46b95f
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 0x46b9ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46b948
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405264
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 0x46b948
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b966
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46b869
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e38c
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 0x46b9aa
lea eax, [ebp - 0x260]
call fcn.00404ff4
ret

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

Disassembly:
push ecx
mov eax, dword [0x5b2b68]
cmp byte [eax + 0xa5], 0
jne 0x46c3a5
cmp dword [0x5b2b80], 0
jne 0x46c366
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46c2f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5b2b80], eax
cmp dword [0x5b2b7c], 0
jne 0x46c381
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5b2b7c], eax
cmp dword [0x5b2b84], 0
jne 0x46c3a5
push esp
push 0
push 0
push 0x46c294
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5b2b84], eax
pop edx
ret
Function at 0x476f84
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4770ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004764b4
xor eax, eax
push ebp
push 0x4770b1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x476fe9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x476fe9
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x47709b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x476ffc
call fcn.00404a30
jmp 0x4770b8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47709b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47709b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004042e8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47709b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d75c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4770e8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x5b1d48]
mov dl, 1
mov eax, dword [0x4757c8]
call fcn.0040e094
call fcn.00404984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4770b8
mov eax, dword [ebp - 4]
call fcn.004764c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4770d5
lea eax, [ebp - 0x28]
call fcn.00404ff4
ret

Function at 0x48545c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x4854f0
push 0
mov eax, ebx
call fcn.004054d0
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4854cb
mov eax, esi
call fcn.004052d0
inc eax
push eax
mov eax, esi
call fcn.004054d0
push eax
push 1
push 0
mov eax, edi
call fcn.004054d0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x4854e6
mov ecx, dword [0x5b19a4]
mov dl, 1
mov eax, dword [0x483418]
call fcn.0040e058
call fcn.00404984
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4