joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9460
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov byte [ebp - 5], 0
lea eax, [edi + 0x3c]
call fcn.004c8ccc
lea edx, [edi + 0x3c]
mov eax, dword [edi + 0x30]
call fcn.004c8cbc
lea eax, [edi + 0x140]
call fcn.004c8ccc
lea edx, [edi + 0x140]
mov eax, dword [edi + 0x30]
call fcn.004c8cbc
lea eax, [edi + 0x244]
call fcn.004c8ccc
lea edx, [edi + 0x244]
mov eax, dword [edi + 0x30]
call fcn.004c8cbc
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x186a0
xor esi, esi
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x244]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x140]
push eax
mov eax, dword [edi + 0x30]
inc eax
push eax
call sub.wsock32.dll_select
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c94f8
call fcn.004c9160
mov ebx, eax
cmp bl, 2
je 0x4c94c5
test esi, esi
jle 0x4c954f
cmp dword [edi + 0x244], 0
jle 0x4c950f
lea eax, [edi + 0x30]
call fcn.004c91e0
jmp 0x4c954f
cmp dword [edi + 0x140], 0
jle 0x4c954f
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.wsock32.dll_accept
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
jne 0x4c954b
call fcn.004c9160
mov ebx, eax
cmp bl, 2
je 0x4c9518
jmp 0x4c954f
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9cd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00405058
lea eax, [edi + 0x34]
call fcn.004c8ccc
lea edx, [edi + 0x34]
mov eax, dword [edi + 4]
call fcn.004c8cbc
xor esi, esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [edi + 0x34]
push eax
mov eax, dword [edi + 4]
inc eax
push eax
call sub.wsock32.dll_select
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c9d36
call fcn.004c9160
mov ebx, eax
cmp bl, 2
je 0x4c9d03
lea eax, [edi + 4]
call fcn.004c91e0
jmp 0x4c9d4d
test esi, esi
jle 0x4c9d4d
lea edx, [edi + 0x34]
mov eax, dword [edi + 4]
call fcn.004c8ca4
test al, al
je 0x4c9d4d
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push 0
mov eax, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c9d9d
call fcn.004c9160
mov ebx, eax
cmp bl, 2
je 0x4c9d68
cmp bl, 1
je 0x4c9db9
lea eax, [edi + 4]
call fcn.004c91e0
jmp 0x4c9db9
test esi, esi
jg 0x4c9dab
lea eax, [edi + 4]
call fcn.004c91e0
jmp 0x4c9db9
mov edx, esi
mov eax, edi
call fcn.004ca270
cmp esi, dword [edi + 0x10]
jge 0x4c9d68
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4caaa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4cab63
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [edi + 0xc]
push 0x4cab80
lea edx, [ebp - 0xc]
mov eax, dword [edi + 0x30]
call fcn.0041b37c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040751c
push dword [ebp - 8]
push 0x4cab80
push dword [edi + 0x2c]
push dword [0x6529b4]
mov eax, ebx
mov edx, 6
call fcn.00407240
mov eax, dword [edi + 0x34]
call fcn.00408984
mov esi, eax
dec esi
test esi, esi
jl 0x4cab38
inc esi
mov dword [ebp - 4], 0
push dword [ebx]
mov eax, dword [edi + 0x34]
mov edx, dword [ebp - 4]
push dword [eax + edx*4]
push dword [0x6529b4]
mov eax, ebx
mov edx, 3
call fcn.00407240
inc dword [ebp - 4]
dec esi
jne 0x4cab15
mov eax, ebx
mov edx, dword [0x6529b4]
call fcn.00407164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cab6a
lea eax, [ebp - 0xc]
call fcn.00406a84
lea eax, [ebp - 8]
call fcn.00406aa8
ret

Function at 0x4ce740
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ce86a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov edx, 0x24
call fcn.004318a0
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetSystemInfo_1
xor eax, eax
push ebp
push 0x4ce83e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x653b8c]
cmp dword [eax], 0
je 0x4ce834
push 1
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4ce704]
call fcn.00408ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x653b8c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, 0x18
xor edx, edx
div ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4ce704]
call fcn.00408ba0
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x653b8c]
mov eax, dword [eax]
call eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jb 0x4ce82e
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 4]
sub eax, 1
jae 0x4ce826
inc dword [ebp - 0x1c]
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x4ce811
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ce848
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce871
lea eax, [ebp - 0xc]
mov edx, dword [0x4ce704]
call fcn.00408bac
ret
Function at 0x4cfb60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cfd54
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cfcdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x4cfcd5
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x11c
call fcn.004318a0
mov eax, dword [ebp - 4]
add eax, 0x128
mov edx, 0x24
call fcn.004318a0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x11c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 8
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x4cfc79
xor eax, eax
push ebp
push 0x4cfc62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x653af0]
cmp dword [eax], 0
je 0x4cfc4d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x124], edx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x124
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x11e]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x11c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [0x653af0]
mov eax, dword [eax]
call eax
jmp 0x4cfc58
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x124], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cfc94
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x11c
call fcn.004318a0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x124], edx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 5
jb 0x4cfcc7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 1
jb 0x4cfcc7
mov eax, dword [0x65484c]
cmp dword [eax], 0
je 0x4cfcc7
mov eax, dword [ebp - 4]
add eax, 0x128
push eax
mov eax, dword [0x65484c]
mov eax, dword [eax]
call eax
jmp 0x4cfcd5
mov eax, dword [ebp - 4]
add eax, 0x128
push eax
call sub.kernel32.dll_GetSystemInfo_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cfd27
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea esi, [eax + 4]
mov edi, edx
mov ecx, 0x52
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfd5b
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406ae4
ret
Function at 0x4d0380
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d04f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00452590
mov eax, dword [ebp - 0x10]
call fcn.0040898c
test eax, eax
jl 0x4d04d0
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [edx + ecx*4]
call fcn.00406e90
cmp dword [ebp - 0x14], 0
je 0x4d04c4
mov eax, dword [ebp - 0x14]
call fcn.0040767c
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x4d04c4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040767c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x4d04c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
call fcn.00408984
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov eax, dword [ebp - 4]
add eax, 0x14c
mov ecx, 1
mov edx, dword [0x4cd088]
call fcn.00408ba0
add esp, 4
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14c]
mov ecx, dword [ebp - 0x14]
mov cx, word [ecx]
mov word [edx + eax*8], cx
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14c]
mov ecx, dword [ebp - 0x20]
mov dword [edx + eax*8 + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + eax*8 + 0x14], ecx
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14c]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 0xc], ecx
inc dword [ebp - 8]
dec dword [ebp - 0x34]
jne 0x4d03c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d04fb
lea eax, [ebp - 0x14]
call fcn.00406a84
lea eax, [ebp - 0x10]
mov edx, dword [0x42dbb4]
call fcn.00408bac
ret
Function at 0x4d4110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d41e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4d4146
or dword [ebp - 4], 0x8000
call fcn.004d3cd0
test al, al
je 0x4d4175
test byte [ebp - 3], 0x80
je 0x4d4175
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
and eax, 0xffff7fff
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
jmp 0x4d417c
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp - 0x10], 0
je 0x4d419b
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d41c7
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.00407728
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0xc]
call fcn.0042e270
jmp 0x4d41cf
mov eax, dword [ebp - 0xc]
call fcn.00406a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d41ef
lea eax, [ebp - 0x21c]
call fcn.00406a84
ret
Function at 0x4e0bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0d97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push dword [eax + 8]
mov edx, 0x4e0db0
mov eax, dword [ebp - 8]
call fcn.00443ec0
call fcn.00444100
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040a484
mov eax, dword [ebp - 0xc]
push eax
mov edx, 0x4e0dc4
mov eax, dword [ebp - 8]
call fcn.00443ec0
pop edx
call fcn.00444030
mov edx, 0x4e0dd8
mov eax, dword [ebp - 8]
call fcn.00443ec0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
call fcn.004440b0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.0040a484
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x4e0df4
mov eax, dword [ebp - 8]
call fcn.00443ec0
pop edx
call fcn.00444030
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov edx, 0x4e0e14
mov eax, dword [ebp - 8]
call fcn.00443ec0
call fcn.00444100
mov edx, 0x4e0e44
mov eax, dword [ebp - 8]
call fcn.00443ec0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
call fcn.00444030
mov edx, 0x4e0e60
mov eax, dword [ebp - 8]
call fcn.00443ec0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
call fcn.00444030
mov edx, 0x4e0e78
mov eax, dword [ebp - 8]
call fcn.00443ec0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30]
call fcn.00444030
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040a484
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x4e0ea0
mov eax, dword [ebp - 8]
call fcn.00443ec0
pop edx
call fcn.00444030
mov edx, 0x4e0ebc
mov eax, dword [ebp - 8]
call fcn.00443ec0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.00444030
mov eax, dword [ebp - 4]
push dword [eax + 0x44]
push dword [eax + 0x40]
mov edx, 0x4e0ee0
mov eax, dword [ebp - 8]
call fcn.00443ec0
call fcn.00444100
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [eax + 0x48]
mov edx, 0x4e0f14
mov eax, dword [ebp - 8]
call fcn.00443ec0
call fcn.00444100
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
push dword [eax + 0x50]
mov edx, 0x4e0f68
mov eax, dword [ebp - 8]
call fcn.00443ec0
call fcn.00444100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0d9e
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00406ae4
ret
Function at 0x4e5a60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
xor ebx, ebx
mov esi, 0x10
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5a89
or ebx, 2
mov esi, 0x11
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5aa4
or ebx, 4
mov esi, 0x12
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5abf
or ebx, 8
push 0x90
call sub.user32.dll_GetKeyState
test al, 1
je 0x4e5ad3
or ebx, 0x100
push 0x14
call sub.user32.dll_GetKeyState
test al, 1
je 0x4e5ae1
or ebx, 1
cmp edi, 0x2d
jge 0x4e5b21
cmp edi, 0x11
jg 0x4e5b0b
je 0x4e5be4
sub edi, 0xc
je 0x4e5b8f
dec edi
je 0x4e5b5b
sub edi, 3
je 0x4e5b9a
jmp 0x4e5c72
sub edi, 0x12
je 0x4e5c24
add edi, 0xfffffff1
sub edi, 8
jb 0x4e5b75
jmp 0x4e5c72
cmp edi, 0x60
jge 0x4e5b43
add edi, 0xffffffd3
sub edi, 2
jb 0x4e5b75
sub edi, 0x2c
je 0x4e5c64
dec edi
je 0x4e5c6c
jmp 0x4e5c72
add edi, 0xffffffa0
sub edi, 0xc
jb 0x4e5b8f
dec edi
sub edi, 3
jb 0x4e5b8f
sub edi, 0x20
je 0x4e5b8f
jmp 0x4e5c72
mov eax, dword [ebp - 4]
shr eax, 0x10
test ah, 1
je 0x4e5c72
or ebx, 0x200
jmp 0x4e5c72
mov eax, dword [ebp - 4]
shr eax, 0x10
test ah, 1
jne 0x4e5c72
or ebx, 0x200
jmp 0x4e5c72
or ebx, 0x200
jmp 0x4e5c72
mov esi, 0xa0
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5bbd
or ebx, 0x400
jmp 0x4e5c72
mov esi, 0xa1
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5c72
or ebx, 0x800
jmp 0x4e5c72
mov esi, 0xa2
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5c04
or ebx, 0x400
jmp 0x4e5c72
mov esi, 0xa3
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5c72
or ebx, 0x800
jmp 0x4e5c72
mov esi, 0xa4
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5c44
or ebx, 0x400
jmp 0x4e5c72
mov esi, 0xa5
push esi
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
test al, al
je 0x4e5c72
or ebx, 0x800
jmp 0x4e5c72
or ebx, 0x400
jmp 0x4e5c72
or ebx, 0x800
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ed6a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4ed6f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call dword [0x67ee84]
pop ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004073e0
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406a84
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406aa8
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406aa8
pop ecx
pop ebp
ret
Function at 0x50d8e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x50da07
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor ebx, ebx
mov eax, ebx
cmp eax, 0x1f
ja 0x50d90d
bt edi, eax
jae case.0x50d95d.0
mov esi, ebx
add si, 0x41
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00407694
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x50da24
call fcn.0040786c
lea eax, [ebp - 4]
mov ecx, 0x50da34
mov edx, dword [ebp - 8]
call fcn.0040786c
mov eax, dword [ebp - 4]
call fcn.0040767c
push eax
call sub.kernel32.dll_GetDriveTypeW
and eax, 0x7f
cmp eax, 6
ja case.0x50d95d.0
jmp dword [eax*4 + 0x50d964]
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0050d850
pop ecx
jmp case.0x50d95d.0
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0050d850
pop ecx
jmp case.0x50d95d.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0050d850
pop ecx
jmp case.0x50d95d.0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
test byte [eax + 0x28], 1
jne case.0x50d95d.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0050d850
pop ecx
jmp case.0x50d95d.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0050d850
pop ecx
inc ebx
cmp ebx, 0x1a
jne 0x50d903
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50da0e
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406ae4
ret

Function at 0x515800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51589b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov edx, 0x20
call fcn.004318a0
mov eax, dword [0x653e44]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xd8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 3
lea eax, [ebp - 0x10]
mov ecx, 0x5158b8
mov edx, dword [ebp - 4]
call fcn.0040786c
mov eax, dword [ebp - 0x10]
call fcn.0040767c
mov dword [ebp - 0x28], eax
mov word [ebp - 0x20], 0x54
lea eax, [ebp - 0x30]
push eax
call sub.shell32.dll_SHFileOperationW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x51587c
cmp dword [ebp - 0x1c], 0
je 0x515880
xor eax, eax
jmp 0x515882
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5158a2
lea eax, [ebp - 0x10]
call fcn.00406a84
ret
Function at 0x517bc0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406a84
cmp dword [ebp - 4], 0x10
je 0x517c9c
cmp dword [ebp - 4], 0x11
je 0x517c9c
cmp dword [ebp - 4], 0x12
je 0x517c9c
cmp dword [ebp - 4], 0x2c
jne 0x517c0d
mov eax, dword [ebp - 8]
mov edx, 0x517cac
call fcn.00406e48
jmp 0x517c9c
cmp dword [ebp - 4], 0x90
jne 0x517c25
mov eax, dword [ebp - 8]
mov edx, 0x517cd0
call fcn.00406e48
jmp 0x517c9c
cmp dword [ebp - 4], 0x13
jne 0x517c3a
mov eax, dword [ebp - 8]
mov edx, 0x517cec
call fcn.00406e48
jmp 0x517c9c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetKeyboardLayout
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_MapVirtualKeyExW
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0x21
jbe 0x517c6a
cmp dword [ebp - 4], 0x2f
jae 0x517c6a
or dword [ebp - 0xc], 0x1000000
cmp dword [ebp - 0xc], 0
je 0x517c9c
push pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x517c9c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00407728
mov esp, ebp
pop ebp
ret
Function at 0x51d790
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x51d798
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51d958
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042e690
test al, al
jne 0x51d7f0
push 0x51d970
push dword [ebp - 4]
push 0x51d990
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004078f4
mov edx, dword [ebp - 0x18]
mov eax, dword [0x653d30]
mov eax, dword [eax]
mov ecx, 0x51d9c0
call fcn.0043edc0
jmp 0x51d93d
mov eax, dword [ebp - 4]
call fcn.0040767c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
test byte [ebp - 7], 8
je 0x51d93d
push 0
push 0x2000000
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.0040767c
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x51d878
push 0x51d9fc
push dword [ebp - 4]
push 0x51da38
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0041b3a4
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004078f4
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
jmp 0x51d93d
xor eax, eax
push ebp
push 0x51d936
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0xe], 0
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0xe]
push eax
push 0x9c040
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x51d8e0
push 0x51d970
push dword [ebp - 4]
push 0x51da68
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004078f4
mov edx, dword [ebp - 0x24]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f390
jmp 0x51d91f
push 0x51dab4
push dword [ebp - 4]
push 0x51daf8
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0041b3a4
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004078f4
mov edx, dword [ebp - 0x28]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d93d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d95f
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00406ae4
ret