joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a28b0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov byte [esp], 0
mov eax, ebx
call fcn.004a0ea4
dec eax
jl 0x4a290a
lea eax, [esp + 4]
push eax
push 0x12
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4a290a
xor edx, edx
mov eax, ebx
call fcn.004a0fa4
mov ebx, eax
mov eax, dword [esp + 4]
push eax
push ebx
push 0
mov eax, dword [0x4ed510]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
test eax, eax
sete byte [esp]
mov eax, dword [esp + 4]
push eax
call sub.ole32.dll_CoTaskMemFree
push ebx
call sub.ole32.dll_CoTaskMemFree
movzx eax, byte [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4a2e04
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a98
xor eax, eax
push ebp
push 0x4a2ee1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x4a2ebe
mov word [ebp - 0x24], 0xf
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, eax
test ebx, 0x80000000
je 0x4a2eab
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.004a0e48
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4a2ef8
call fcn.00404f64
mov eax, dword [ebp - 0x28]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
mov dl, 1
mov eax, dword [0x48b2d8]
call fcn.0048c23c
mov ebx, eax
jmp 0x4a2ebe
mov eax, dword [ebp - 0xc]
call fcn.004a124c
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call sub.ole32.dll_ReleaseStgMedium
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2ee8
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404c54
lea eax, [ebp - 4]
call fcn.00406a24
ret
Function at 0x4a36d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a37c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x40]
push 1
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
push 0
lea eax, [ebp - 4]
mov ecx, 0x4a37dc
mov edx, dword [ebx + 8]
call fcn.00404f64
mov eax, dword [ebp - 4]
push eax
xor ecx, ecx
movzx edx, word [ebx + 0x60]
mov eax, dword [ebx + 0x30]
call fcn.004441d8
mov esi, eax
movzx edx, byte [ebx + 0x48]
mov eax, esi
call fcn.00441420
movzx edx, byte [ebx + 0x38]
mov eax, esi
call fcn.004414a4
movzx edx, byte [ebx + 0x3a]
mov eax, esi
call fcn.004416ec
movzx edx, byte [ebx + 0x39]
mov eax, esi
call fcn.004414f8
movzx edx, byte [ebx + 0x3f]
mov eax, esi
call fcn.00441570
mov eax, dword [ebx + 0x54]
mov dword [esi + 0x54], eax
movzx edx, byte [ebx + 0x3d]
mov eax, esi
call fcn.00441b9c
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
movzx edx, byte [ebx + 0x3e]
mov eax, esi
call fcn.00441614
mov edx, dword [ebx + 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebx + 0x40]
mov eax, esi
call fcn.00441624
lea eax, [esi + 0x58]
mov edx, dword [ebx + 0x58]
call fcn.00404c84
mov eax, ebx
call fcn.004415b4
mov edx, eax
mov eax, esi
call fcn.00441a54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a37cb
lea eax, [ebp - 4]
call fcn.00404c30
ret

Function at 0x4a390c
Capabilities:
Log keystrokes via polling

Disassembly:
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
test byte [esp + 0x10], 0x80
setne al
add esp, 0x100
ret

Function at 0x4a54e4
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffe9c
mov word [esp], 0
push 0x4009
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 8]
add esp, 0x164
ret

Function at 0x4a5694
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffe9c
mov ebx, edx
mov word [esp], 0
push 0x208
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, ebx
lea edx, [esp + 0x10]
mov ecx, 0x104
call fcn.004055d0
add esp, 0x164
pop ebx
ret
Function at 0x4a56d8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a587d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [0x4e65c4], 0
jne 0x4a584c
lea ecx, [ebp - 0x230]
mov edx, dword [0x4e6e00]
mov eax, ebx
call fcn.004a58ec
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 4]
mov ecx, 0x4a5890
call fcn.00406a68
cmp dword [ebp - 4], 0
je 0x4a584c
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4a5845
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x10], 0x220
test esi, esi
jle 0x4a5787
test edi, edi
jle 0x4a5787
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
jmp 0x4a5795
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x14], 0xc8
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x104
lea eax, [ebp - 0x22a]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, eax
test ebx, 0x80000000
jne 0x4a57c6
mov al, 1
jmp 0x4a57cf
cmp ebx, 0x8000000a
sete al
test al, al
je 0x4a5826
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, eax
test ebx, 0x80000000
jne 0x4a57f2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
jmp 0x4a5826
lea edx, [ebp - 0x238]
mov eax, ebx
call fcn.004a0e48
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
mov edx, 0x4a58a8
call fcn.00404f64
mov eax, dword [ebp - 0x234]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a584c
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 4]
call fcn.00406a24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5884
lea eax, [ebp - 0x238]
mov edx, 2
call fcn.00404c54
lea eax, [ebp - 0x230]
call fcn.00406a24
lea eax, [ebp - 4]
call fcn.00406a24
ret

Function at 0x4a65f8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
mov esi, edx
mov ebx, 0x4008
cmp cl, 1
jne 0x4a6614
or ebx, 0
jmp 0x4a6617
or ebx, 1
cmp byte [ebp + 8], 0
je 0x4a6620
or ebx, 2
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a666d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6674
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4a6680
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x428], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.004059d8
xor eax, eax
push ebp
push 0x4a67ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov esi, 0x4000
cmp bl, 1
jne 0x4a66c4
or esi, 0
jmp 0x4a66c7
or esi, 1
cmp byte [ebp + 0xc], 0
je 0x4a66d0
or esi, 2
cmp dword [ebp + 8], 0
je 0x4a66ed
add esi, 0x10
mov dword [ebp - 0x2bc], 0x80
mov dword [ebp - 0x41c], 0x80
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a67c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e6d7c]
cmp byte [eax], 0
je 0x4a6772
call fcn.004a1710
mov byte [ebp - 0xd], al
xor eax, eax
push ebp
push 0x4a676b
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
mov eax, dword [ebp - 0x2bc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405614
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4a6754
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a67ad
movzx eax, byte [ebp - 0xd]
call fcn.004a1740
ret
push esi
push 0x160
lea eax, [ebp - 0x424]
push eax
push 0
lea eax, [ebp - 0x428]
mov edx, dword [ebp - 4]
call fcn.00404ed4
mov eax, dword [ebp - 0x428]
call fcn.004050dc
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4a67ad
mov eax, dword [ebp - 0x420]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a67cb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4a74ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 4], edx
mov esi, eax
lea edi, [ebp - 0x114]
xor eax, eax
push ebp
push 0x4a75f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x43
lea eax, [ebp - 0x13c]
mov edx, ebx
call fcn.00404e18
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 4]
mov ecx, 0x4a760c
call fcn.00404f64
mov eax, edi
xor ecx, ecx
mov edx, 0x104
call fcn.00403578
push 0x20
lea eax, [ebp - 0x135]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x105
push edi
mov eax, dword [ebp - 4]
call fcn.004050dc
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x140]
mov edx, edi
mov ecx, 0x104
call fcn.00404ea0
mov eax, dword [ebp - 0x140]
mov edx, 0x4a7618
call fcn.00405074
jne 0x4a75c6
lea eax, [ebp - 0x144]
mov edx, ebx
call fcn.00404e18
mov edx, dword [ebp - 0x144]
mov eax, esi
mov ecx, 0x4a760c
call fcn.00404f64
jmp 0x4a75d0
inc ebx
cmp ebx, 0x5b
jne 0x4a752a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a75fd
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404c54
lea eax, [ebp - 4]
call fcn.00404c30
ret
Function at 0x4a7620
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x4a769c
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a7696
mov eax, 0x3c00
push 0
push 0
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
mov edi, 0x400
mov dword [esp], 4
mov eax, edi
call fcn.00402e90
mov esi, eax
push 0
lea eax, [esp + 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_ReadFile
mov eax, ebp
mov ecx, 0x37a
mov edx, esi
call fcn.00407f10
mov eax, esi
call fcn.00402eac
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a7db4
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050cc
xor eax, eax
push ebp
push 0x4a7f64
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a7df9
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4a7e2a
lea ecx, [ebp - 0x2c]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00437d18
mov eax, dword [ebp - 0x2c]
mov edx, 0x4a7f7c
call fcn.00405074
jne 0x4a7e2a
lea eax, [ebp - 4]
mov edx, 0x4a7f88
call fcn.00404f18
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a7e36
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jne 0x4a7e67
lea ecx, [ebp - 0x30]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00437d18
mov eax, dword [ebp - 0x30]
mov edx, 0x4a7f94
call fcn.00405074
jne 0x4a7e67
lea eax, [ebp - 4]
mov edx, 0x4a7fa0
call fcn.00404f18
mov dl, 1
mov eax, dword [0x418e70]
call fcn.00403c80
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
mov ecx, 0x4a7fb0
mov edx, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 8]
call fcn.004a76b0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4a7ee7
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.004a7864
lea ecx, [ebp - 0x40]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x4a7fbc
call fcn.00404f64
mov eax, dword [ebp - 0x3c]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
inc ebx
dec esi
jne 0x4a7ea3
mov eax, dword [ebp - 8]
call fcn.00403cb0
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403578
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 3
lea eax, [ebp - 0x44]
mov ecx, 0x4a7fd0
mov edx, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 0x44]
call fcn.004050dc
mov dword [ebp - 0x1e], eax
mov eax, 0x4a7fd4
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x14
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7f6b
lea eax, [ebp - 0x44]
mov edx, 7
call fcn.00404c54
lea eax, [ebp - 4]
call fcn.00404c30
ret
Function at 0x4a897c
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a8afc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 1
test ebx, ebx
je 0x4a8ae1
cmp byte [ebx + 0x40], 0
je 0x4a89d6
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x4e722c]
cmp eax, dword [edx]
jne 0x4a8ae1
xor eax, eax
call fcn.004243b8
jmp 0x4a8ae1
mov eax, ebx
call fcn.00424b60
cmp byte [ebx + 0xe], 0
je 0x4a89ea
mov eax, ebx
call fcn.00424b38
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x4a8a22
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a8e70
test al, al
je 0x4a8ae1
push 5
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x4e722c]
cmp eax, dword [edx]
jne 0x4a8a22
xor eax, eax
call fcn.004243b8
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30]
add edx, esi
cmp eax, edx
jb 0x4a89f3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
push ebp
push 0x4a8ada
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a8ecc
test al, al
je 0x4a8ab0
push 0x4a8b14
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call fcn.00403b90
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0xc]
call fcn.00404e94
push dword [ebp - 0xc]
push 0x4a8b30
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404fe0
mov eax, dword [ebp - 8]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
test eax, eax
jne 0x4a8ab0
call fcn.0040f42c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004261d8
mov eax, ebx
call fcn.00403cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8ae1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8b03
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404c54
ret
Function at 0x4a9610
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a97bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
push ebp
push 0x4a9791
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x28]
jge 0x4a9688
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x60]
cmp eax, 0xc8
jae 0x4a967c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x48]
jg 0x4a9688
mov eax, dword [ebp - 4]
call fcn.004a9928
test eax, eax
jne 0x4a9692
call fcn.00404610
jmp 0x4a9798
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004a8684
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], 0
mov eax, dword [ebp - 4]
call fcn.004a9928
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x20]
mov ecx, 2
mov eax, 0x4a97d0
call fcn.0040acf0
mov eax, dword [ebp - 8]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x48]
jl 0x4a96fb
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x68]
jge 0x4a9766
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x64]
mov dl, 1
mov eax, dword [0x4a82c8]
call fcn.004a90e4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0x4a9824
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00409bdc
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x4a9850
call fcn.0040acf0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404fe0
mov eax, dword [ebp - 0x24]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x65], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9798
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a97c2
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404c54
lea eax, [ebp - 8]
call fcn.00404c30
ret
Function at 0x4a9864
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x4c], 0
je 0x4a9880
mov edx, edi
mov eax, dword [ebx + 0x50]
call fcn.004a9c18
jmp 0x4a988a
mov edx, edi
mov eax, dword [ebx + 0x50]
call fcn.004a9b64
call sub.kernel32.dll_GetTickCount
mov ebp, eax
jmp 0x4a98e5
call sub.kernel32.dll_GetTickCount
cmp ebp, eax
ja 0x4a98a8
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [ebx + 0x54]
jbe 0x4a98b1
mov eax, esi
call fcn.004a929c
jmp 0x4a98f5
mov edx, 0x1f4
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
call fcn.004a87f4
test al, al
jne 0x4a98fc
cmp byte [ebx + 0x4c], 0
je 0x4a98db
mov edx, edi
mov eax, dword [ebx + 0x50]
call fcn.004a9c18
jmp 0x4a98e5
mov edx, edi
mov eax, dword [ebx + 0x50]
call fcn.004a9b64
cmp dword [edi], 0
jne 0x4a98f5
mov eax, esi
call fcn.004a87f4
test al, al
je 0x4a9893
mov eax, ebx
call fcn.004a9610
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b3158
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x4e7220]
cmp dword [eax], 2
je 0x4b3176
mov ecx, 0x314
mov edx, 0x4b31a8
mov eax, 0x4b320c
call fcn.00404b5c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4b30f8
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4ed9f0], eax
cmp dword [0x4ed9f0], 0
jne 0x4b319d
call fcn.0040f42c
ret

Function at 0x4b3414
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret

Function at 0x4b3438
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x4e6d7c]
cmp byte [eax], 0
jne 0x4b3466
mov ecx, 0xbf
mov edx, 0x4b34bc
mov eax, 0x4b3520
call fcn.00404b5c
mov eax, ebx
call fcn.0040542c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
jns 0x4b3485
call fcn.00403b78
test eax, eax
je 0x4b34ad
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004055e8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3534
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4b36b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x20
lea edx, [ebp - 0x40]
push edx
and eax, 0x1ff
shl eax, 0x10
test eax, eax
jns 0x4b357a
call fcn.00403b78
push eax
call sub.user32.dll_GetKeyNameTextW
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, ebx
mov ecx, esi
call fcn.00405524
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx]
call fcn.00409780
mov eax, dword [ebp - 0x48]
mov ecx, esi
sub ecx, 1
jno 0x4b35ab
call fcn.00403b80
mov edx, 2
call fcn.004057cc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
mov ecx, 1
mov edx, 1
call fcn.004057cc
mov edx, dword [ebp - 0x4c]
mov eax, ebx
pop ecx
call fcn.00405690
mov edx, dword [ebx]
mov eax, 0x4b36c4
call fcn.00405944
test eax, eax
jle 0x4b3697
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebx]
mov eax, 0x4b36c4
call fcn.00405944
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.004057cc
push dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebx]
mov eax, 0x4b36c4
call fcn.00405944
mov edx, eax
add edx, 1
jno 0x4b362a
call fcn.00403b80
mov eax, dword [ebx]
mov ecx, 1
call fcn.004057cc
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.004096e8
push dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebx]
mov eax, 0x4b36c4
call fcn.00405944
sub esi, eax
jno 0x4b365d
call fcn.00403b80
sub esi, 1
jno 0x4b3667
call fcn.00403b80
push esi
mov edx, dword [ebx]
mov eax, 0x4b36c4
call fcn.00405944
mov edx, eax
add edx, 2
jno 0x4b3680
call fcn.00403b80
mov eax, dword [ebx]
pop ecx
call fcn.004057cc
push dword [ebp - 0x5c]
mov eax, ebx
mov edx, 3
call fcn.00405700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b36b9
lea eax, [ebp - 0x5c]
mov edx, 7
call fcn.00405444
ret