joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486d84
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x486dd5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x486dbc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x486dac
jmp 0x486dd5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x486dbd
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48eef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48f042
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 4]
dec eax
jne 0x48f027
jmp 0x48f009
cmp byte [ebp - 0xd], 0x21
jne 0x48efda
mov edx, dword [ebp - 8]
mov eax, dword [sym.WMP54Gv4.exe__Gifimage_TGIFExtension_]
call sym.WMP54Gv4.exe__Gifimage_TGIFExtension_FindExtension_qqrp17System_TMetaClassp15Classes_TStream
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48ef69
lea edx, [ebp - 0x1c]
mov eax, sym.WMP54Gv4.exe__Gifimage__sUnknownExtension
call fcn.0052450c
mov eax, dword [ebp - 0x1c]
call fcn.00486330
mov cx, 1
or edx, 0xffffffff
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [sym.WMP54Gv4.exe__Gifimage_TGIFSubImage_]
call fcn.00521338
mov ecx, eax
mov dl, 1
mov eax, dword [ebp - 0x18]
call dword [eax + 0x30]
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x48efc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call sym.WMP54Gv4.exe__Gifimage_TGIFList_Add_qqrp17Gifimage_TGIFItem
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48eff6
lea edx, [ebp - 0x20]
mov eax, sym.WMP54Gv4.exe__Gifimage__sBadExtensionLabel
call fcn.0052450c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x48f018
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 4]
dec eax
jne 0x48f027
mov al, byte [ebp - 0xd]
sub al, 0x2c
je 0x48f018
sub al, 0xf
jne 0x48ef34
mov cx, 1
or edx, 0xffffffff
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f049
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00521e68
ret
Function at 0x49856c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4986f2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x4985a3
movzx eax, word [ebp - 6]
push eax
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x498662
mov ax, word [ebp - 6]
cmp ax, word [sym.WMP54Gv4.exe__Gifimage_CF_GIF]
jne 0x498662
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalSize
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49865b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x509090]
call fcn.00521178
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x49863d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00520ac8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x50]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498644
mov eax, dword [ebp - 0x18]
call fcn.005211a8
ret
cmp dword [ebp - 0xc], 0
je 0x4986c7
cmp word [ebp - 6], 2
jne 0x4986c7
mov dl, 1
mov eax, dword [0x4cb578]
call fcn.004d1d6c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4986c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 6]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x58]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4986dc
mov eax, dword [ebp - 0x1c]
call fcn.005211a8
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x5772c8]
call fcn.0052450c
mov eax, dword [ebp - 0x20]
call fcn.00486330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4986f9
lea eax, [ebp - 0x20]
call fcn.00521e44
ret
Function at 0x498f70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.0050a944
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x498ffb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x498fdf
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0050a4e0
test byte [eax + 0x48], 1
je 0x498fd6
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0050a4e0
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0050a380
dec dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jne 0x498fa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499002
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.0050a9a8
ret

Function at 0x4a1ca4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x5711ec
call fcn.00525a60
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.005250b0
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4a1d19
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x4a1d19
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.005250d0
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4a1d19
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x4a1d36
cmp dword [ebp - 0x34], 0
je 0x4a1d36
mov edx, dword [ebp - 0x34]
jmp 0x4a1d3b
mov edx, 0x570e58
lea eax, [ebp - 4]
call fcn.00530f44
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.005250c0
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.005310d4
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005310a4
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4a1db9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bad04
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.00521e44
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4bad53
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00522074
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c1e5f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c1c62
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c16c8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0051d0e4
cmp al, 1
jne 0x4c1c62
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c19e0
test al, al
je 0x4c1dee
cmp dword [ebp - 8], 0
jge 0x4c1c80
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c16c8
mov eax, dword [ebp - 0x210]
call fcn.005220c4
cmp ebx, eax
jge 0x4c1cca
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c16c8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5774d8]
and eax, 0xff
bt dword [edx], eax
jae 0x4c1cca
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x4c1cde
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c1bdc
cmp ebx, dword [ebp - 8]
je 0x4c1de0
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c1d0a
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00521384
and eax, 0x7f
movzx eax, word [eax*2 + 0x5722d8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x4c1dcd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00521384
and eax, 0x7f
movzx eax, word [eax*2 + 0x5722d8]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.004f0554
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00521384
and eax, 0x7f
movzx eax, word [eax*2 + 0x5722d8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004f0554
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1dd4
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x4c1e41
cmp dword [ebp - 8], 0
jge 0x4c1df9
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c16c8
mov eax, dword [ebp - 0x218]
call fcn.005220c4
cmp eax, dword [ebp - 8]
jg 0x4c1e33
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c16c8
mov eax, dword [ebp - 0x21c]
call fcn.005220c4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c1bdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1e66
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00521e68
ret
Function at 0x4cb800
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 0x4cb806
ret

Function at 0x4ce16c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4ce1bd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4ce1a4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4ce194
jmp 0x4ce1bd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4ce1a5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d73f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x57f4d0
cmp dword [edi], 0
jne 0x4d7470
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x57f4cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5725bc
mov ecx, 2
call fcn.00520ac8
mov edx, 0x4d73cc
lea eax, [esi + 5]
call fcn.004d73ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004d73ec
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 0x4d7445
mov dword [0x57f4cc], 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 0x4d758c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4d75dc]
test si, 4
je 0x4d75a0
or bl, 1
test si, 8
je 0x4d75aa
or bl, 4
test si, 1
je 0x4d75b4
or bl, 8
test si, 2
je 0x4d75be
or bl, 0x10
test si, 0x10
je 0x4d75c8
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4d75d7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4d75e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4d7618]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4d75f9
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4d7608
or bl, 4
test esi, 0x20000000
je 0x4d7613
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4ddb68
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4ddb7a
add esp, 0xfffffff0
call fcn.005214e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00511588
mov eax, ebx
call fcn.004ddeb4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x4da658
push eax
push 0
push 0
mov eax, dword [0x5774b4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4cac88]
call fcn.004cc260
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4cac88]
call fcn.004cc260
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4cac88]
call fcn.004cc260
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004de294
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4de1b0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4de1b0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4de1b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ddc89
call fcn.00521540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ddf94
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 0x4de13f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4de120
mov dl, 1
mov eax, dword [0x508de4]
call fcn.00521178
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00521e44
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4de10f
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.004f4b30
test al, al
je 0x4de102
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, 0x4de150
lea eax, [ebp - 0x254]
call fcn.0051a104
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4de102
xor eax, eax
push ebp
push 0x4de0fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4de188
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4de0e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00522074
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4de0e4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00522074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de102
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4de005
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0050c878
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de146
lea eax, [ebp - 0x260]
call fcn.00521e44
ret

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

Disassembly:
push ecx
mov eax, dword [0x57f4c0]
cmp byte [eax + 0x95], 0
jne 0x4de9fd
cmp dword [0x57f4dc], 0
jne 0x4de9be
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4de948
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x57f4dc], eax
cmp dword [0x57f4d8], 0
jne 0x4de9d9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x57f4d8], eax
cmp dword [0x57f4e0], 0
jne 0x4de9fd
push esp
push 0
push 0
push 0x4de8ec
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x57f4e0], eax
pop edx
ret
Function at 0x4deaf4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4deb0b
add esp, 0xfffffff0
call fcn.005214e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00511588
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x508930]
call fcn.00521178
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4cb6b8]
call fcn.004d390c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x4dec80
mov eax, dword [0x57767c]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004d3cdc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4e06a4
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x57767c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0051d538
test eax, eax
je 0x4debfe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00519a5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0051d560
test eax, eax
je 0x4dec12
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00522074
mov eax, dword [0x577684]
cmp byte [eax], 0
jne 0x4dec43
mov eax, ebx
call fcn.004ded6c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4dec75
call fcn.00521540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4defdc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x57f4c0]
cmp dword [eax + 0x24], 0
je 0x4df07f
cmp dword [ebx + 0x84], 0
jne 0x4df079
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4def6c
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4df079
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x4df042
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4df079
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0050a4e0
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4df051
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret