joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4615a8
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 0x461753
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461734
mov dl, 1
mov eax, dword [0x4198f4]
call fcn.00403a70
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404890
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461723
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.0044ed04
test al, al
je 0x461716
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, 0x461764
lea eax, [ebp - 0x254]
call fcn.0040a674
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x461716
xor eax, eax
push ebp
push 0x46170f
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 0x46179c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4616f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404af8
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 0x4616f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461716
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461619
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e404
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 0x46175a
lea eax, [ebp - 0x260]
call fcn.00404890
ret

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

Disassembly:
push ecx
mov eax, dword [0x4ffc08]
cmp byte [eax + 0xa5], 0
jne 0x4620f9
cmp dword [0x4ffc20], 0
jne 0x4620ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462044
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ffc20], eax
cmp dword [0x4ffc1c], 0
jne 0x4620d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4ffc1c], eax
cmp dword [0x4ffc24], 0
jne 0x4620f9
push esp
push 0
push 0
push 0x461fe8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4ffc24], eax
pop edx
ret
Function at 0x4621f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462207
add esp, 0xfffffff0
call fcn.00403e04
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424638
mov eax, dword [0x4fdf80]
cmp word [eax + 2], 0
jne 0x46222f
mov eax, dword [0x4fdf80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004638cc
mov eax, dword [0x4fe060]
cmp word [eax + 2], 0
jne 0x462249
mov eax, dword [0x4fe060]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463ac4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419290]
call fcn.00403a70
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419290]
call fcn.00403a70
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 [0x426b30]
call fcn.0042e218
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4623d0
mov eax, dword [0x4fde88]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e5e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464034
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4fde88]
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.0040df6c
test eax, eax
je 0x46233e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409fbc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040df94
test eax, eax
je 0x462352
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.00404af8
mov eax, dword [0x4fdd24]
cmp byte [eax], 0
jne 0x462386
mov eax, ebx
call fcn.004624f8
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.00464210
mov eax, ebx
call fcn.00464bc0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4623c6
call fcn.00403e5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46276c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ffc08]
cmp dword [eax + 0x30], 0
je 0x462816
cmp dword [ebx + 0x94], 0
jne 0x462810
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4626fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462810
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 0x4627d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462810
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.0041bba4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4627e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4632f4
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 0x463329
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.00404980
jmp 0x463336
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4643ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46442d
mov eax, esi
call fcn.0044a3fc
test al, al
je 0x46442d
mov eax, dword [ebx + 0x84]
call fcn.0044a0f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46442d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a0f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46c97c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x46c9a6
cmp dword [ebx + 0x64], 0
jne 0x46c9a6
cmp dword [ebx + 0x6c], 0
jne 0x46c9a6
mov esi, edi
jmp 0x46ca34
cmp esi, 0xffffffff
jne 0x46c9b1
dec esi
jmp 0x46ca34
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x46ca34
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.0046bfe4
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x46c9fc
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x46ca01
mov word [edx], 0
dec eax
test eax, eax
jne 0x46c9e2
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x46ca28
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x46ca2d
mov word [edx], 0
dec eax
test eax, eax
jne 0x46ca0e
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x46ca92
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.0046c704
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x46ca7d
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x46ca92
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x46c986
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4773a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x4773b9
add esp, 0xfffffff0
call fcn.00403e04
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404d30
xor eax, eax
push ebp
push 0x477480
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00473314
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041a540
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041a540
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041a540
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041a540
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a568
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x50], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477487
lea eax, [ebp - 4]
call fcn.00404890
ret
Function at 0x47be44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47bf40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x47bf58
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.004048e4
push 0xffffffffffffffff
mov ecx, 0x47bf68
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
mov ecx, 0x47bf84
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004670f8
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x47bfa0
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00466fe4
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x47bfb4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00466fe4
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x47bfcc
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00466fe4
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x47bfe8
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004670f8
mov byte [ebx + 0x44], al
mov ecx, 0x47bffc
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00472ff0
mov byte [ebx + 0x45], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bf47
lea eax, [ebp - 4]
call fcn.00404890
ret

Function at 0x4826f0
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.00404d40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x482748
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4fe224]
mov dl, 1
mov eax, dword [0x48208c]
call fcn.0040d348
call fcn.0040426c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00482194
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 0x488938
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 0x488a10
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x500dbc], 0
jne 0x4889f4
lea eax, [ebp - 4]
mov edx, 0x488a28
call fcn.00404928
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d40
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4889f4
mov eax, ebx
call fcn.00402774
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4889ed
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 0x4889d7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x488a38
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4889d7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x500dbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4889f4
mov eax, dword [ebp - 0xc]
call fcn.00402794
ret
mov ebx, dword [0x500dbc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488a17
lea eax, [ebp - 4]
call fcn.00404890
ret
Function at 0x4b24cc
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 0x4b272c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4b252f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004b201c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040daec
cmp al, 1
jne 0x4b252f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004b22e4
test al, al
je 0x4b26bb
cmp dword [ebp - 8], 0
jge 0x4b254d
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.004b201c
mov eax, dword [ebp - 0x210]
call fcn.00404b48
cmp ebx, eax
jge 0x4b2597
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004b201c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4fe204]
and eax, 0xff
bt dword [edx], eax
jae 0x4b2597
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4b25ab
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b24a8
cmp ebx, dword [ebp - 8]
je 0x4b26ad
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 0x4b25d7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4fbe94]
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 0x4b269a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4fbe94]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044a0f8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4fbe94]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044a0f8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b26a1
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 0x4b270e
cmp dword [ebp - 8], 0
jge 0x4b26c6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004b201c
mov eax, dword [ebp - 0x218]
call fcn.00404b48
cmp eax, dword [ebp - 8]
jg 0x4b2700
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004b201c
mov eax, dword [ebp - 0x21c]
call fcn.00404b48
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b24a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2733
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048b4
ret
Function at 0x4b461c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4b4654]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b4632
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b4641
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b4650
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4b4f5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x43f878]
call fcn.00403c2c
test al, al
je 0x4b4f9e
mov eax, dword [0x4fe034]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4b4f9e
mov edx, dword [0x4fe034]
xor edx, edx
call fcn.0045cf38
push 0
mov eax, dword [0x4fe034]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x4cc554
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call fcn.00404d30
xor eax, eax
push ebp
push 0x4cc68d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a568
push 0x400
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404b48
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404d40
push eax
mov eax, ebx
call fcn.00428a18
push eax
call sub.user32.dll_DrawTextA
lea eax, [ebp - 0x24]
call fcn.00466d08
add eax, 2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
call fcn.00466d24
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov dword [ebp - 0xc], edx
sar edi, 1
jns 0x4cc5df
adc edi, 0
mov edx, dword [ebp - 0x10]
add edx, eax
add edx, 2
sar edx, 1
jns 0x4cc5ee
adc edx, 0
sub edi, edx
mov edx, dword [ebp - 4]
sar edx, 1
jns 0x4cc5fa
adc edx, 0
mov ecx, dword [ebp - 0xc]
sar ecx, 1
jns 0x4cc604
adc ecx, 0
sub edx, ecx
mov dword [ebp - 8], edx
lea eax, [eax + edi + 2]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
sar eax, 1
jns 0x4cc61a
adc eax, 0
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x4cc624
adc edx, 0
sub eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
push 1
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404b48
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404d40
push eax
mov eax, ebx
call fcn.00428a18
push eax
call sub.user32.dll_DrawTextA
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 8]
push eax
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00450e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc694
lea eax, [ebp + 0x14]
call fcn.00404890
ret
Function at 0x4de568
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffa8
mov esi, ecx
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x44
call fcn.00403198
mov dword [esp + 4], 0x44
mov dword [esp + 0x30], 1
mov word [esp + 0x34], si
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4de5bf
xor eax, eax
mov dword [esp], eax
jmp 0x4de5dd
push 0xffffffffffffffff
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push esp
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov dword [esp], 1
mov eax, dword [esp]
add esp, 0x58
pop esi
pop ebx
ret

Function at 0x4de6e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x4fbf1c]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4fbf1c]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4fbf1c]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4fbf1c]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4fbea0]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x4de70f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4e0b38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, 1
test esi, esi
je 0x4e0b5e
mov eax, esi
call fcn.00404d40
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4e0b58
test al, 0x10
jne 0x4e0b5c
xor ebx, ebx
jmp 0x4e0b5e
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4e13d4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
ja 0x4e1400
cmp dword [esp + 4], 5
jne 0x4e13fc
cmp dword [esp + 8], 1
jae 0x4e1400
xor eax, eax
jmp 0x4e1402
mov al, 1
add esp, 0x94
ret