joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed7b0
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 0x4ed96b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004095cc
mov eax, dword [ebp - 4]
call fcn.004ed100
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4ed802
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a2c4
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.004ee3ec
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4ed8e1
xor eax, eax
push ebp
push 0x4ed8da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004ed3a0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004ed9a0
test al, al
je 0x4ed8b8
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040932c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4ed8b8
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.00409eb8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004ed300
test al, al
je 0x4ed8b2
mov eax, dword [ebp - 8]
call fcn.00409eb8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00409f20
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004ed7b0
dec ebx
cmp ebx, 0xffffffff
jne 0x4ed861
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed8e1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004ed3a0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x68b0c0], 0
je 0x4ed921
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00409eb8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004ed38c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004ed300
mov ebx, eax
jmp 0x4ed948
mov eax, dword [ebp - 4]
call fcn.00409eb8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004ed38c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004ed300
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed972
lea eax, [ebp - 0x3c]
call fcn.004091a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409204
ret
Function at 0x4ee2c8
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.004ed118
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.00409eb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004ed300
test al, al
jne 0x4ee330
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x685014]
mov dl, 1
mov eax, dword [0x4eb978]
call fcn.00429a10
call fcn.00408864
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ee33c
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.00409eb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004ed300
test al, al
jne 0x4ee39d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x685358]
mov dl, 1
mov eax, dword [0x4eb978]
call fcn.00429a10
call fcn.00408864
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004ed148
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 0x502bf4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x502da2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x502d7e
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x502d7e
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x502bbc]
call fcn.0040b364
add esp, 4
lea eax, [ebp - 4]
call fcn.0040ca00
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x684e78]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0040b148
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00406f80
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x4f64ac]
call fcn.004ff588
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x502d5c
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00501200
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00500210
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x502d7e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502da9
lea eax, [ebp - 8]
mov edx, dword [0x502bbc]
call fcn.0040b488
lea eax, [ebp - 4]
call fcn.0040ca00
ret

Function at 0x509150
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x66dde4
test edx, edx
jne 0x50916f
xor eax, eax
jmp 0x50928d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x50918c
push esi
push edx
push eax
call fcn.00509294
add esp, 0xc
jmp 0x50928d
push esi
push edx
push eax
call fcn.00509554
add esp, 0xc
jmp 0x50928d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x517338
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 - 0xc]
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 [0x68b268], 0
je 0x517479
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6850d4]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x517479
mov eax, dword [0x68b26c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x68b268]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x517448
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x68b268]
call fcn.004aba00
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x517440
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1fd], 0
je 0x517440
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x517440
mov eax, dword [ebp - 0x14]
call fcn.00522ff8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x517440
push ebp
call fcn.005172f4
pop ecx
test al, al
jne 0x517440
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407870
test al, al
je 0x517440
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00407870
cmp byte [ebp - 1], 0
je 0x517440
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040f67c
test al, al
je 0x517440
mov edx, dword [ebp - 0x14]
mov eax, dword [0x68b26c]
call fcn.00516a58
inc edi
dec ebx
jne 0x51739d
mov eax, dword [0x68b26c]
cmp dword [eax + 8], 0
jle 0x517460
mov eax, dword [0x68b26c]
call fcn.00516b0c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x517479
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0051715c
pop ecx
test al, al
jne 0x517479
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 0x5503b8
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.00409288
xor eax, eax
push ebp
push 0x5504f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5504ca
xor edx, edx
push ebp
push 0x5504c3
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x550405
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x550498
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x550487
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x55044a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00409eb8
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004065d4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55048e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x684d2c]
mov dl, 1
mov eax, dword [0x41cfcc]
call fcn.00429940
call fcn.00408864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5504fe
lea eax, [ebp - 4]
call fcn.004091a4
ret

Function at 0x577114
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.005771c4
test eax, eax
je 0x57714f
push 0x100
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005771c4
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040932c
jmp 0x57715d
mov ecx, esi
mov edx, 0x57717c
mov eax, ebx
call fcn.0057709c
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00409584
add esp, 0x200
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004091a4
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x5978a2
push 0x100
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x59789b
mov eax, esi
mov edx, esp
mov ecx, 0x100
call fcn.00409f5c
jmp 0x5978a2
mov eax, esi
call fcn.004091a4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x59d030
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59d18f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x67061c], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4ebb94]
call fcn.004ed254
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x59d165
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004ed33c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00409f5c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x59d1a8
call fcn.0040a10c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004ed5c8
test al, al
je 0x59d14f
lea ecx, [ebp - 4]
mov edx, 0x59d21c
mov eax, dword [ebp - 0xc]
call fcn.004ede50
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042bf7c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59d14f
xor edx, edx
push ebp
push 0x59d148
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x59d234
mov eax, dword [ebp - 8]
push eax
call fcn.004116e4
test eax, eax
je 0x59d131
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x59d131
call fcn.0059cfbc
test eax, eax
je 0x59d121
mov eax, dword [ebx + 0x50]
jmp 0x59d124
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x67061c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d14f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d16c
mov eax, dword [ebp - 0xc]
call fcn.00407524
ret

Function at 0x59d298
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x59d2df
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59d2c2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59d2d3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x59d2df
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x5b0b84
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5b0b96
add esp, 0xfffffff0
call fcn.00407b20
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c1908
mov eax, dword [0x684de8]
mov dword [eax + 4], ebx
mov dword [eax], 0x5b0fc4
mov eax, dword [0x684df8]
mov dword [eax + 4], ebx
mov dword [eax], 0x5b0fd0
mov eax, ebx
call fcn.005b0fdc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
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 + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x5ab914
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4f2550]
call fcn.004f8550
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4f2550]
call fcn.004f8550
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4f2550]
call fcn.004f8550
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4f2550]
call fcn.004f8550
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4f2550]
call fcn.004f8550
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.005b15cc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b13e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b13e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b13e8
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b13e8
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5b13e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5b0d13
call fcn.00407b78
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5b1188
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b1333
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5b1314
mov dl, 1
mov eax, dword [0x48dd58]
call fcn.004b00ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.004091a4
lea eax, [ebp - 0x114]
push eax
push pe_nt_image_headers32
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b1303
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.005294bc
test al, al
je 0x5b12f6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5b1344
lea eax, [ebp - 0x394]
call fcn.00425258
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5b12f6
xor eax, eax
push ebp
push 0x5b12ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5b13b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5b12d8
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00409f5c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x5b12d8
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00409f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b12f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b11f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004affe8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b133a
lea eax, [ebp - 0x3a0]
call fcn.004091a4
ret

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

Disassembly:
push ecx
mov eax, dword [0x68b39c]
cmp byte [eax + 0xb1], 0
jne 0x5b1f5e
cmp dword [0x68b3bc], 0
jne 0x5b1f1e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x670734]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x68b3bc], eax
cmp dword [0x68b3b8], 0
jne 0x5b1f39
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x68b3b8], eax
cmp dword [0x68b3c0], 0
jne 0x5b1f5e
push esp
push 0
push 0
mov eax, dword [0x670730]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x68b3c0], eax
pop edx
ret
Function at 0x5b2278
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5b228f
add esp, 0xfffffff0
call fcn.00407b20
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c1908
mov eax, dword [0x684c9c]
cmp byte [eax], 0
jne 0x5b22bc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x684fdc]
cmp word [eax + 2], 0
jne 0x5b22d6
mov eax, dword [0x684fdc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005b4460
mov eax, dword [0x685108]
cmp word [eax + 2], 0
jne 0x5b22f0
mov eax, dword [0x685108]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005b4664
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x4f2550]
call fcn.004f8550
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5b4bdc
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x4f6e30]
call fcn.00501b90
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x5b24d4
mov eax, dword [0x684e94]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00502020
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5b4ec4
mov dl, 1
mov eax, dword [0x48a5a4]
call fcn.004074f4
mov dword [ebx + 0x9c], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x684e94]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042506c
test eax, eax
je 0x5b2404
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00424ea8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00425050
test eax, eax
je 0x5b241c
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00409f5c
push ebx
push 0x5b3e3c
call fcn.005a7dec
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x684c9c]
cmp byte [eax], 0
jne 0x5b246d
mov eax, ebx
call fcn.005b2694
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.005b510c
mov eax, ebx
call fcn.005b5d38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5b24ca
call fcn.00407b78
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret