joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44720c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x58], 2
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
push eax
call sub.WSOCK32.DLL_htons_1
mov edx, dword [ebp - 4]
mov word [edx + 0x5a], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004b73fc
push eax
call sub.WSOCK32.DLL_inet_addr_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0xffffffff
jne 0x447299
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004b73fc
push eax
call sub.WSOCK32.DLL_gethostbyname_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 0
jne 0x447286
mov ecx, 0x271e
or edx, 0xffffffff
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x447336
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0xffffffff
jne 0x4472c7
call sub.WSOCK32.DLL_WSAGetLastError_1
mov ecx, eax
or edx, 0xffffffff
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x447336
push 0x31
push 0x401
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect_1
test eax, eax
je 0x4472fc
call sub.WSOCK32.DLL_WSAGetLastError_1
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x447336
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x58
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.WSOCK32.DLL_connect_1
test eax, eax
je 0x447336
call sub.WSOCK32.DLL_WSAGetLastError_1
cmp eax, 0x2733
je 0x447336
call sub.WSOCK32.DLL_WSAGetLastError_1
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f824
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x4d82b4
call fcn.004b9cc0
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.004b9430
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x44f899
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x44f899
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004b9450
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x44f899
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x44f8b6
cmp dword [ebp - 0x34], 0
je 0x44f8b6
mov edx, dword [ebp - 0x34]
jmp 0x44f8bb
mov edx, 0x4d7f20
lea eax, [ebp - 4]
call fcn.004c3c68
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.004b9440
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004c3e84
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.004c3e54
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x44f939
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e4e4
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 - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e64d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004b7050
mov eax, dword [ebp - 0x10]
call fcn.0045e164
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45e536
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004b7480
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045e930
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45e60b
xor eax, eax
push ebp
push 0x45e604
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0045e2d4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045e67c
test al, al
je 0x45e5e2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004b70a0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45e5e2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004b73fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.dll_RegEnumKeyExA_1
test eax, eax
jne 0x45e5dc
mov eax, dword [ebp - 0x14]
call fcn.004b73fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004b7170
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045e4e4
dec ebx
cmp ebx, 0xffffffff
jne 0x45e595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e60b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045e2d4
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004b73fc
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0045e2c0
push eax
call sub.ADVAPI32.dll_RegDeleteKeyA_1
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e654
lea eax, [ebp - 0x3c]
call fcn.004b6fb8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b6fdc
ret

Function at 0x45e67c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004b6004
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.dll_RegQueryInfoKeyA_1
test eax, eax
sete al
mov edx, dword [0x4dd7f4]
cmp byte [edx + 8], 0
je 0x45e6e0
mov edx, dword [0x4dd7dc]
cmp dword [edx], 2
jne 0x45e6e0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45e844
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.0045e178
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.004b73fc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.dll_RegSetValueExA_1
test eax, eax
je 0x45e8a2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4dd6f8]
mov dl, 1
mov eax, dword [0x45e070]
call fcn.004b1bd8
call fcn.004b6ab4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45e8ac
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.004b73fc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_1
test eax, eax
je 0x45e904
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4dd6fc]
mov dl, 1
mov eax, dword [0x45e070]
call fcn.004b1bd8
call fcn.004b6ab4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045e1a8
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 0x45f9b0
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.004b6fb8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.dll_MapVirtualKeyA_1
shl eax, 0x10
test eax, eax
je 0x45f9ff
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.dll_GetKeyNameTextA_1
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004b71e8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4667bc
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 0x466a1b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46681e
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00466284
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.004b23d4
cmp al, 1
jne 0x46681e
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046659c
test al, al
je 0x4669aa
cmp dword [ebp - 8], 0
jge 0x46683c
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.00466284
mov eax, dword [ebp - 0x210]
call fcn.004b7238
cmp ebx, eax
jge 0x466886
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00466284
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4dd7e8]
and eax, 0xff
bt dword [edx], eax
jae 0x466886
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x46689a
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00466798
cmp ebx, dword [ebp - 8]
je 0x46699c
lea eax, [ebp - 0x108]
push eax
call sub.USER32.dll_GetKeyboardState_1
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4668c6
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.004b6538
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d9348]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.dll_SetKeyboardState_1
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x466989
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.004b6538
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d9348]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00494444
push eax
call sub.USER32.dll_SendMessageA_1
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.004b6538
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d9348]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00494444
push eax
call sub.USER32.dll_SendMessageA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466990
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 0x4669fd
cmp dword [ebp - 8], 0
jge 0x4669b5
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00466284
mov eax, dword [ebp - 0x218]
call fcn.004b7238
cmp eax, dword [ebp - 8]
jg 0x4669ef
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00466284
mov eax, dword [ebp - 0x21c]
call fcn.004b7238
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00466798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466a22
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004b6fdc
ret
Function at 0x4704d4
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 0x4704da
ret

Function at 0x472dac
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_1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x472dfd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x472de4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x472dd4
jmp 0x472dfd
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 0x472de5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b6cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52f108
cmp dword [edi], 0
jne 0x47b748
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x52f104]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d9624
mov ecx, 2
call fcn.004b5cd8
mov edx, 0x47b6a4
lea eax, [esi + 5]
call fcn.0047b6c4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0047b6c4
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 0x47b71d
mov dword [0x52f104], 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 0x47b864
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x47b8b4]
test si, 4
je 0x47b878
or bl, 1
test si, 8
je 0x47b882
or bl, 4
test si, 1
je 0x47b88c
or bl, 8
test si, 2
je 0x47b896
or bl, 0x10
test si, 0x10
je 0x47b8a0
or bl, 0x20
push 0x12
call sub.USER32.dll_GetKeyState_1
test ax, ax
jge 0x47b8af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x47b8b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x47b8f0]
push 0x10
call sub.USER32.dll_GetKeyState_1
test ax, ax
jge 0x47b8d1
or bl, 1
push 0x11
call sub.USER32.dll_GetKeyState_1
test ax, ax
jge 0x47b8e0
or bl, 4
test esi, 0x20000000
je 0x47b8eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x481e40
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x481e52
add esp, 0xfffffff0
call fcn.004b665c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004aa8ec
mov eax, ebx
call fcn.0048218c
push 0
call sub.USER32.dll_GetKeyboardLayout_1
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.dll_GetDC_1
mov esi, eax
push 0x5a
push esi
call sub.GDI32.dll_GetDeviceCaps_1
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.dll_ReleaseDC_1
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x47e930
push eax
push 0
push 0
mov eax, dword [0x4dd7c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x46f9fc]
call fcn.00470f34
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x46f9fc]
call fcn.00470f34
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x46f9fc]
call fcn.00470f34
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0048256c
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482488
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482488
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482488
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x481f61
call fcn.004b66b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48226c
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 0x482417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4823f8
mov dl, 1
mov eax, dword [0x4a3f08]
call fcn.004b632c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004b6fb8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.dll_GetKeyboardLayoutList_1
dec eax
test eax, eax
jl 0x4823e7
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.004989cc
test al, al
je 0x4823da
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, 0x482428
lea eax, [ebp - 0x254]
call fcn.004af6a0
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4823da
xor eax, eax
push ebp
push 0x4823d3
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 0x482460
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4823bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004b71e8
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 0x4823bc
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004b71e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4823da
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4822dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004a7550
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 0x48241e
lea eax, [ebp - 0x260]
call fcn.004b6fb8
ret

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

Disassembly:
push ecx
mov eax, dword [0x52f0f8]
cmp byte [eax + 0x95], 0
jne 0x482cd5
cmp dword [0x52f114], 0
jne 0x482c96
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x482c20
push eax
push 3
call sub.USER32.dll_SetWindowsHookExA_1
mov dword [0x52f114], eax
cmp dword [0x52f110], 0
jne 0x482cb1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA_1
mov dword [0x52f110], eax
cmp dword [0x52f118], 0
jne 0x482cd5
push esp
push 0
push 0
push 0x482bc4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x52f118], eax
pop edx
ret
Function at 0x482dcc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x482de3
add esp, 0xfffffff0
call fcn.004b665c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004aa8ec
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4a3ae4]
call fcn.004b632c
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 [0x47038c]
call fcn.00477be4
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x482f58
mov eax, dword [0x4dd97c]
mov eax, dword [eax]
push eax
call sub.USER32.dll_LoadIconA_1
mov edx, eax
mov eax, esi
call fcn.00477fb4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48497c
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4dd97c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.dll_OemToCharA_1
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.004b2828
test eax, eax
je 0x482ed6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004af040
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004b2850
test eax, eax
je 0x482eea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.dll_CharLowerA_1
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004b71e8
mov eax, dword [0x4dd984]
cmp byte [eax], 0
jne 0x482f1b
mov eax, ebx
call fcn.00483044
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 0x482f4d
call fcn.004b66b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4832b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x52f0f8]
cmp dword [eax + 0x24], 0
je 0x483357
cmp dword [ebx + 0x84], 0
jne 0x483351
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x483244
call sub.USER32.dll_EnumWindows_1
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x483351
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.dll_GetWindow_1
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.dll_GetWindowLongA_1
test al, 8
je 0x48331a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x483351
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.004a5414
push eax
call sub.USER32.dll_SetWindowPos_1
dec esi
cmp esi, 0xffffffff
jne 0x483329
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret