joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4640e4
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 0x46428f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x464270
mov dl, 1
mov eax, dword [0x416ed0]
call fcn.00403b28
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404968
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46425f
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.004514e4
test al, al
je 0x464252
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, 0x4642a0
lea eax, [ebp - 0x254]
call fcn.0040a27c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x464252
xor eax, eax
push ebp
push 0x46424b
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 0x4642d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x464234
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
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 0x464234
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464252
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x464155
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b988
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 0x464296
lea eax, [ebp - 0x260]
call fcn.00404968
ret

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

Disassembly:
push ecx
mov eax, dword [0x597c38]
cmp byte [eax + 0xa5], 0
jne 0x464c7d
cmp dword [0x597c50], 0
jne 0x464c3e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x464bc8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x597c50], eax
cmp dword [0x597c4c], 0
jne 0x464c59
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x597c4c], eax
cmp dword [0x597c54], 0
jne 0x464c7d
push esp
push 0
push 0
push 0x464b6c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x597c54], eax
pop edx
ret
Function at 0x464dd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x464de7
add esp, 0xfffffff0
call fcn.00403ebc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421928
mov eax, dword [0x595f8c]
cmp word [eax + 2], 0
jne 0x464e0f
mov eax, dword [0x595f8c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004664ac
mov eax, dword [0x59610c]
cmp word [eax + 2], 0
jne 0x464e29
mov eax, dword [0x59610c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004666a4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41686c]
call fcn.00403b28
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41686c]
call fcn.00403b28
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423e78]
call fcn.0042bc08
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x464fb0
mov eax, dword [0x595db8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bfd8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466c24
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x595db8]
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
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e06c
test eax, eax
je 0x464f1e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ba8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e094
test eax, eax
je 0x464f32
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
mov eax, dword [0x595b20]
cmp byte [eax], 0
jne 0x464f66
mov eax, ebx
call fcn.004650d8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00466e00
mov eax, ebx
call fcn.00467740
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464fa6
call fcn.00403f14
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46534c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x597c38]
cmp dword [eax + 0x30], 0
je 0x4653f6
cmp dword [ebx + 0x94], 0
jne 0x4653f0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4652dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4653f0
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 0x4653b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4653f0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419110
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4653c5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465ed4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x465f09
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a58
jmp 0x465f16
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466fdc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46701d
mov eax, esi
call fcn.0044cbd8
test al, al
je 0x46701d
mov eax, dword [ebx + 0x84]
call fcn.0044c8d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46701d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c8d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46bfc0
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.0046bcac
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.00404e18
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46c01e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x595fd4]
mov dl, 1
mov eax, dword [0x46bba4]
call fcn.0040d418
call fcn.00404324
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46c028
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.00404e18
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46c080
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5963fc]
mov dl, 1
mov eax, dword [0x46bba4]
call fcn.0040d418
call fcn.00404324
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046bcdc
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 0x47594c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475a24
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x597cbc], 0
jne 0x475a08
lea eax, [ebp - 4]
mov edx, 0x475a3c
call fcn.00404a00
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e18
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x475a08
mov eax, ebx
call fcn.004027a8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x475a01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4759eb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x475a4c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4759eb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x597cbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475a08
mov eax, dword [ebp - 0xc]
call fcn.004027c8
ret
mov ebx, dword [0x597cbc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475a2b
lea eax, [ebp - 4]
call fcn.00404968
ret

Function at 0x48aed4
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x48aee3
add esp, 0xfffffff0
call fcn.00403ebc
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00403b28
lea eax, [edi + 0x18]
push eax
push 0x202
call sub.Ws2_32.dll_WSAStartup
test eax, eax
jne 0x48af2d
mov dword [edi + 4], 0xffffffff
xor eax, eax
mov dword [edi + 0x1a8], eax
call sub.Ws2_32.dll_WSACreateEvent
mov esi, eax
mov dword [edi + 0x1a8], esi
test esi, esi
je 0x48af2d
mov word [edi + 8], 2
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, edi
test bl, bl
je 0x48af42
call fcn.00403f14
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x48af80
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404e18
push eax
call sub.Ws2_32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403134
test ebx, ebx
je 0x48afc9
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dl, byte [eax]
mov byte [esp + 4], dl
mov dl, byte [eax + 1]
mov byte [esp + 5], dl
mov dl, byte [eax + 2]
mov byte [esp + 6], dl
mov al, byte [eax + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x48b378
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov ebx, esp
mov eax, dword [ebx]
mov eax, dword [eax + 0x1ac]
mov esi, eax
test eax, eax
jne 0x48b47b
mov eax, dword [ebx]
cmp dword [eax + 0x1a8], 0
je 0x48b47b
push 0
push 1
push 2
call sub.Ws2_32.dll_socket
mov edi, eax
mov eax, dword [ebx]
mov dword [eax + 4], edi
inc edi
je 0x48b47b
mov eax, dword [ebx]
mov ax, word [eax + 0x1b0]
push eax
call sub.Ws2_32.dll_htons
mov edx, dword [ebx]
mov word [edx + 0xa], ax
push 0x10
mov eax, dword [ebx]
add eax, 8
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.Ws2_32.dll_bind
inc eax
jne 0x48b3fc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.Ws2_32.dll_closesocket
mov eax, dword [ebx]
mov dword [eax + 4], 0xffffffff
jmp 0x48b47b
push 0x18
mov eax, dword [ebx]
mov eax, dword [eax + 0x1a8]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.Ws2_32.dll_WSAEventSelect
inc eax
jne 0x48b42b
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.Ws2_32.dll_closesocket
mov eax, dword [ebx]
mov dword [eax + 4], 0xffffffff
jmp 0x48b47b
push 0x19
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.Ws2_32.dll_listen
inc eax
jne 0x48b451
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.Ws2_32.dll_closesocket
mov eax, dword [ebx]
mov dword [eax + 4], 0xffffffff
jmp 0x48b47b
mov eax, dword [ebx]
mov dword [eax + 0x1ac], 0xffffffff
mov ecx, ebx
mov dl, 1
mov eax, dword [0x48b0cc]
call fcn.0048bc4c
mov edx, dword [ebx]
mov dword [edx + 0x1b8], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x1ac]
mov eax, esi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x48cd04
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404e08
xor eax, eax
push ebp
push 0x48ce06
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x48cdeb
lea eax, [ebp - 8]
call fcn.00404968
mov eax, dword [ebp - 4]
call fcn.00404c20
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x48cddf
lea eax, [ebp - 4]
mov edx, 0x48ce20
call fcn.00404c28
jmp 0x48cddf
mov edx, dword [ebp - 4]
mov eax, 0x48ce20
call fcn.00404f5c
mov edi, eax
jmp 0x48cd7f
mov eax, dword [ebp - 4]
cmp byte [eax + edi], 0x5c
jne 0x48cd8b
inc edi
mov eax, dword [ebp - 4]
call fcn.00404c20
cmp edi, eax
jl 0x48cd75
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404e78
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00404c28
mov eax, dword [ebp - 8]
call fcn.0040963c
test al, al
jne 0x48cdc1
mov eax, dword [ebp - 8]
call fcn.00409b38
test al, al
je 0x48cdeb
push esi
mov eax, dword [ebp - 8]
call fcn.00404e18
push eax
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 4]
mov ecx, edi
mov edx, 1
call fcn.00404eb8
cmp dword [ebp - 4], 0
jne 0x48cd64
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ce0d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040498c
ret

Function at 0x48d5ec
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov ebx, ecx
mov esi, edx
push dword [esi + 4]
push dword [esi]
lea eax, [esp + 0xe]
push eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0xe]
lea eax, [esp + 0xc]
call fcn.0040b084
movzx eax, word [esp]
imul eax, eax, 0x3c
movzx edx, word [esp + 2]
add eax, edx
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
movsx eax, bl
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.00405a68
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
movsx eax, bl
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jne 0x48d686
cmp dword [esp + 8], 0
jae 0x48d698
jmp 0x48d688
jge 0x48d698
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
push 0
push 0x3c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
call fcn.00405a68
mov word [esp + 2], ax
push 0
push 0x3c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
push eax
movzx eax, word [esp + 0x12]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.004059a0
mov word [esp], ax
cmp word [esp], 0x17
jbe 0x48d6e9
mov word [esp], 0x17
mov word [esp + 2], 0x3b
push 0
xor ecx, ecx
mov dx, word [esp + 6]
mov ax, word [esp + 4]
call fcn.0040b044
fstp qword [esi]
wait
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4951f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
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 0x495450
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x495253
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00494d08
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dbec
cmp al, 1
jne 0x495253
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00494fd0
test al, al
je 0x4953df
cmp dword [ebp - 8], 0
jge 0x495271
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.00494d08
mov eax, dword [ebp - 0x210]
call fcn.00404c20
cmp ebx, eax
jge 0x4952bb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00494d08
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5963c4]
and eax, 0xff
bt dword [edx], eax
jae 0x4952bb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4952cf
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004951cc
cmp ebx, dword [ebp - 8]
je 0x4953d1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4952fb
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d54
and eax, 0x7f
movzx eax, word [eax*2 + 0x5941f8]
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 + 0x23c], 1
xor eax, eax
push ebp
push 0x4953be
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d54
and eax, 0x7f
movzx eax, word [eax*2 + 0x5941f8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044c8d4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d54
and eax, 0x7f
movzx eax, word [eax*2 + 0x5941f8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044c8d4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4953c5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x495432
cmp dword [ebp - 8], 0
jge 0x4953ea
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00494d08
mov eax, dword [ebp - 0x218]
call fcn.00404c20
cmp eax, dword [ebp - 8]
jg 0x495424
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00494d08
mov eax, dword [ebp - 0x21c]
call fcn.00404c20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004951cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495457
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040498c
ret
Function at 0x4c69c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004c6988
mov eax, dword [ebx]
call fcn.00404c20
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4c6a06
mov eax, ebx
mov edx, 0x4c6a14
call fcn.00404c28
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c6a18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004c6988
mov eax, dword [ebx]
call fcn.00404c20
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4c6a5e
mov eax, ebx
mov edx, 0x4c6a6c
call fcn.00404c28
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cdc44
Capabilities:
Encode data using xor

Disassembly:
push ebx
add esp, 0xffffff9c
mov ebx, edx
mov edx, esp
mov eax, ebx
mov ecx, 0x64
call fcn.004029a4
mov edx, 0x19
mov eax, esp
mov cl, byte [eax]
not cl
xor cl, 0x19
mov byte [eax], cl
mov cl, byte [eax + 1]
not cl
xor cl, 0x73
mov byte [eax + 1], cl
mov cl, byte [eax + 2]
not cl
xor cl, 6
mov byte [eax + 2], cl
mov cl, byte [eax + 3]
not cl
xor cl, 0x14
mov byte [eax + 3], cl
add eax, 4
dec edx
jne 0x4cdc5f
mov edx, ebx
mov eax, esp
mov ecx, 0x64
call fcn.004029a4
add esp, 0x64
pop ebx
ret
Function at 0x4d03d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 8], ecx
test dl, dl
je 0x4d03f8
add esp, 0xfffffff0
call fcn.00403ebc
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x4d05c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403b28
mov byte [esi + 0xa], 0
mov byte [esi + 9], 0
mov byte [esi + 0x10], 4
mov eax, dword [0x595f88]
cmp dword [eax], 0
je 0x4d0444
mov eax, dword [0x595f88]
mov eax, dword [eax]
mov al, byte [eax + 8]
mov byte [esi + 9], al
mov eax, dword [0x595f88]
mov eax, dword [eax]
mov al, byte [eax + 0x18]
mov byte [esi + 8], al
xor ebx, ebx
xor eax, eax
mov al, bl
mov byte [esi + eax + 0x11], 0
mov byte [esi + eax + 0x2a], 0
mov byte [esi + eax + 0x43], 0
mov byte [esi + eax + 0xf4], 1
mov dword [esi + eax*4 + 0x110], 0xffffffff
mov edx, eax
add edx, edx
xor eax, eax
mov dword [esi + edx*8 + 0x174], eax
xor eax, eax
mov dword [esi + edx*8 + 0x178], eax
xor eax, eax
mov dword [esi + edx*8 + 0x17c], eax
xor eax, eax
mov dword [esi + edx*8 + 0x180], eax
inc ebx
cmp ebx, 0x19
jne 0x4d0446
mov eax, dword [0x595f88]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d059f
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea eax, [ebp - 0x21]
push eax
lea eax, [ebp - 0x36]
push eax
push ebx
mov eax, dword [0x595f88]
mov eax, dword [eax]
call dword [eax + 0x444]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x36]
mov ecx, 0x15
call fcn.00404bd0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x4d05f4
call fcn.00404c6c
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 8]
mov edx, 0xc
call fcn.0043fc2c
xor eax, eax
mov edx, dword [ebp - 8]
mov dl, byte [edx + eax]
add dl, 0xa
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + 0xa]
xor dl, cl
xor ecx, ecx
mov cl, bl
lea ecx, [esi + ecx*4]
push ecx
xor ecx, ecx
mov cl, al
pop edi
mov byte [edi + ecx + 0x304], dl
inc eax
cmp eax, 4
jne 0x4d04fb
xor eax, eax
xor edx, edx
mov dl, bl
lea edx, [esi + edx*4]
mov edi, eax
and edi, 0xff
mov dl, byte [edx + edi + 0x304]
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax + 4]
add cl, 5
xor dl, cl
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + 0xb]
xor dl, cl
push edx
xor edx, edx
mov dl, bl
lea edx, [esi + edx*4]
pop ecx
mov byte [edx + edi + 0x304], cl
inc eax
cmp eax, 4
jne 0x4d0528
xor eax, eax
mov edx, 0xc
sub edx, eax
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + edx - 1]
add dl, 0xf
xor ecx, ecx
mov cl, bl
lea ecx, [esi + ecx*4]
push ecx
xor ecx, ecx
mov cl, al
pop edi
xor byte [edi + ecx + 0x304], dl
inc eax
cmp eax, 4
jne 0x4d056a
inc ebx
dec dword [ebp - 0xc]
jne 0x4d04b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d05c9
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0040498c
lea eax, [ebp - 8]
call fcn.00404968
ret