joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab35c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5ac8b4
cmp dword [edi], 0
jne 0x4ab3d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x5ac8b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a333c
mov ecx, 2
call fcn.00405860
mov edx, 0x4ab334
lea eax, [esi + 5]
call fcn.004ab354
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004ab354
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4ab3ad
mov dword [0x5ac8b0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4b4cc8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4b4cdf
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4b4ccf
mov eax, ecx
pop ebx
ret

Function at 0x4d5344
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.00408c14
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d4de0
test al, al
jne 0x4d53a5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5a5624]
mov dl, 1
mov eax, dword [0x4d38ec]
call fcn.00427854
call fcn.00407898
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d4cdc
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 0x4e0040
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 0x4e0046
ret
Function at 0x50046c
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 [0x5acac8], 0
je 0x5005b0
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5a53b0]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x5005b0
mov eax, dword [0x5acacc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5acac8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50057f
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5acac8]
call fcn.0049711c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x500577
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x225], 0
je 0x500577
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x80]
test al, al
je 0x500577
mov eax, dword [ebp - 0x14]
call fcn.0050d054
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x500577
push ebp
call fcn.00500428
pop ecx
test al, al
jne 0x500577
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004067e4
test al, al
je 0x500577
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
inc ebp
hlt
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.004067e4
cmp byte [ebp - 1], 0
je 0x500577
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00410430
test al, al
je 0x500577
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5acacc]
call fcn.004ffba8
inc edi
dec ebx
jne 0x5004d1
mov eax, dword [0x5acacc]
cmp dword [eax + 8], 0
jle 0x500597
mov eax, dword [0x5acacc]
call fcn.004ffc5c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5005b0
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00500290
pop ecx
test al, al
jne 0x5005b0
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 0x5096cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00410614
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00502bb4
test ebx, ebx
jne 0x50971f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0050957c
mov ebx, eax
test ebx, ebx
je 0x509815
cmp esi, ebx
je 0x509748
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x50975d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x509795
add eax, 0xffffff5f
sub eax, 2
jb 0x5097ad
dec eax
sub eax, 2
jb 0x5097c1
dec eax
sub eax, 2
jb 0x5097b7
jmp 0x5097cb
add eax, 0xfffffdff
sub eax, 2
jb 0x5097ad
dec eax
sub eax, 2
jb 0x5097c1
dec eax
sub eax, 2
jb 0x5097b7
jmp 0x5097cb
mov byte [esp + 0x120], 0
jmp 0x5097d3
mov byte [esp + 0x120], 2
jmp 0x5097d3
mov byte [esp + 0x120], 1
jmp 0x5097d3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00578b08
mov esi, eax
call fcn.004ff274
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00504774
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x509817
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x52db14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x52db2a
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x52db3a
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x52db4a
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x54fe24
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.00408348
test ebx, ebx
je 0x54fe76
mov eax, dword [esi]
call fcn.00408c14
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call sub.user32.dll_SendMessageW
sub ebx, eax
test ebx, ebx
jle 0x54fe76
mov eax, dword [esi]
test eax, eax
je 0x54fe6b
mov eax, dword [eax - 4]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.00408d88
pop edi
pop esi
pop ebx
ret
Function at 0x557d10
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00557dd8
test eax, eax
je 0x557d62
mov edi, dword [ebx + 8]
test edi, edi
je 0x557d3e
test edi, edi
je 0x557d3e
mov edx, esi
mov eax, edi
call fcn.0050340c
jmp 0x557d70
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00557dd8
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00408348
jmp 0x557d70
mov ecx, esi
mov edx, 0x557d90
mov eax, ebx
call fcn.00557c98
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.004085a0
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x566b98
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.004081b0
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x566bea
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x566be3
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00408cb0
jmp 0x566bea
mov eax, esi
call fcn.004081b0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x56c6c0
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 0x56c825
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5a4d80], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4d3b38]
call fcn.004d4d34
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x56c7f9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004d4e1c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00408cb0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x56c840
call fcn.00408e64
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004d4e80
test al, al
je 0x56c7e1
lea ecx, [ebp - 4]
mov edx, 0x56c8b4
mov eax, dword [ebp - 0xc]
call fcn.004d5290
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00429e40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x56c7e1
xor edx, edx
push ebp
push 0x56c7da
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x56c8cc
mov eax, dword [ebp - 8]
push eax
call fcn.00411960
test eax, eax
je 0x56c7c1
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x56c7c1
call fcn.0056c64c
test eax, eax
je 0x56c7b1
mov eax, dword [ebx + 0x50]
jmp 0x56c7b4
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5a4d80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c7e1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c800
mov eax, dword [ebp - 0xc]
call fcn.004064c8
pop eax
jmp eax
Function at 0x56c930
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 0x56c977
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x56c95a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x56c96b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x56c977
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x578624
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_GetWindowLongW
mov edi, eax
test bl, bl
je 0x578645
test edi, 0x40000
je 0x57865f
test bl, bl
jne 0x5786e0
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5786e0
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 0x578692
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5786a7
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5786b6
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5786c7
cmp byte [esp + 2], 0
je 0x5786e0
cmp byte [esp + 2], 0
je 0x5786d8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5786e0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x578984
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 0x5789aa
mov eax, esp
push eax
push 0x57894c
call sub.user32.dll_EnumWindows
jmp 0x5789bd
mov eax, esp
push eax
push 0x57892c
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x578a80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
test bl, 4
je 0x578a92
or si, 1
test bl, 8
je 0x578a9b
or si, 4
test bl, 1
je 0x578aa4
or si, 8
test bl, 2
je 0x578aad
or si, 0x10
test bl, 0x10
je 0x578ab6
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x578ac6
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x578acc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x578ae5
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x578af5
or bx, 4
test esi, 0x20000000
je 0x578b01
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x586a78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x586a8a
add esp, 0xfffffff0
call fcn.004069ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a8b14
mov eax, dword [0x5a50e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x586f68
mov eax, dword [0x5a50f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x586f74
mov eax, ebx
call fcn.00586f80
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x580830
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4d964c]
call fcn.004e0994
mov esi, eax
mov dword [ebx + 0x8c], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4d964c]
call fcn.004e0994
mov esi, eax
mov dword [ebx + 0x90], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4d964c]
call fcn.004e0994
mov esi, eax
mov dword [ebx + 0x88], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4d964c]
call fcn.004e0994
mov esi, eax
mov dword [ebx + 0x94], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4d964c]
call fcn.004e0994
mov esi, eax
mov dword [ebx + 0x98], esi
mov byte [esi + 0x25], 1
mov eax, ebx
call fcn.00587648
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587348
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587348
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587348
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587348
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587348
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x586c28
call fcn.00406a44
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5870e4
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 0x587294
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x587273
mov dl, 1
mov eax, dword [0x4716a4]
call fcn.0049b510
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004081b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x587262
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.00513a10
test al, al
je 0x587255
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5872a4
lea eax, [ebp - 0x394]
call fcn.004217ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x587255
xor eax, eax
push ebp
push 0x58724e
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 0x587314
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x587235
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408cb0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x587235
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587255
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x587155
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0049b438
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58729b
lea eax, [ebp - 0x3a0]
call fcn.004081b0
pop eax
jmp eax

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

Disassembly:
push ecx
mov eax, dword [0x5acbdc]
cmp byte [eax + 0xc5], 0
jne 0x58804e
cmp dword [0x5acc00], 0
jne 0x58800e
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x5a4f3c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5acc00], eax
cmp dword [0x5acbfc], 0
jne 0x588029
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5acbfc], eax
cmp dword [0x5acc04], 0
jne 0x58804e
push esp
push 0
push 0
mov eax, dword [0x5a4f38]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5acc04], eax
pop edx
ret
Function at 0x5883f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x58840f
add esp, 0xfffffff0
call fcn.004069ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a8b14
mov eax, dword [0x5a4fb8]
cmp byte [eax], 0
jne 0x58843c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x5a52c8]
cmp word [eax + 2], 0
jne 0x588456
mov eax, dword [0x5a52c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0058a720
mov eax, dword [0x5a53e4]
cmp word [eax + 2], 0
jne 0x588470
mov eax, dword [0x5a53e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0058ab38
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4d964c]
call fcn.004e0994
mov esi, eax
mov dword [ebx + 0x54], esi
mov byte [esi + 0x25], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x58afe8
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4dd7c8]
call fcn.004e7e40
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x588664
mov eax, dword [0x5a517c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004e83a4
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x58b2ac
mov dl, 1
mov eax, dword [0x46d950]
call fcn.00406498
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5a517c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004215ac
test eax, eax
je 0x588587
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004213b0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00421590
test eax, eax
je 0x58859f
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00408cb0
push ebx
push 0x58a258
call fcn.00578a64
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5a4fb8]
cmp byte [eax], 0
jne 0x5885f0
mov eax, ebx
call fcn.0058882c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.0058b654
mov eax, ebx
call fcn.0058c18c
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x58865b
call fcn.00406a44
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret