joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404688
mov byte [esp], al
cmp byte [esp], 0
jne 0x40455d
test edi, edi
je 0x40455d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404494
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40446f
cmp edi, 0xffffffff
je 0x404433
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404433
mov byte [esp], 0
jmp 0x40455d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40446f
test ebx, ebx
jne 0x404468
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013c8
test eax, eax
jne 0x404468
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40455d
pause
dec ebp
test ebp, ebp
jg 0x404418
cmp edi, 0xffffffff
je 0x404494
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404492
mov byte [esp], 0
jmp 0x40455d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4043e2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013c8
cmp ebx, eax
jne 0x404494
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004045d0
mov edx, eax
mov ebx, dword [0x55a8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4044fb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4044f9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4044fb
xor edi, edi
cmp byte [esp], 0
je 0x404524
mov ebx, dword [esi]
test bl, 1
jne 0x40453d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013c8
cmp ebx, eax
jne 0x404501
mov byte [esp + 1], 1
jmp 0x40453d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013c8
cmp ebx, eax
jne 0x404524
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4044ae
cmp byte [esp], 0
je 0x40455d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4050e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55a054], 0
je 0x405141
cmp word [0x55a330], 0xd7b2
jne 0x405109
cmp dword [0x55a338], 0
jbe 0x405109
mov eax, 0x55a32c
call dword [0x55a348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40516c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54d02c], 0
jne 0x40515d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40530c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x54d030], 0
je 0x405332
mov edx, esi
mov eax, ebx
call dword [0x54d030]
jmp 0x405341
mov eax, 8
call fcn.00403034
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55a055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4052d4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4088cc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x55cb60
push 0xa
push 0x40a8a4
mov eax, dword [0x55cb50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a834
call fcn.00415c10
push ebx
mov eax, dword [0x55cb50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a84b
call fcn.00415c10
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a85d
call fcn.00415c10
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x55cb64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x55cb68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x55cb6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x55cb70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x55cb74], ecx
add edx, dword [eax + 0x14]
mov dword [0x55cb78], edx
pop esi
pop ebx
ret

Function at 0x40c5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c689
test eax, edx
je 0x40c68c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c609
push edx
mov edx, eax
mov eax, esp
call fcn.00406324
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c61f
push eax
lea eax, [esp + 8]
call fcn.00406324
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c62e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c655
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c66f
add ecx, 4
js 0x40c646
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c66c
push eax
mov eax, ecx
mov edx, 2
call fcn.004053ac
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c653
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c655
xor eax, eax
ret
test eax, eax
je 0x40c69c
test edx, edx
jne 0x40c5f0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40d8bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406194
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d8da
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d8fb
cmp ebx, 3
je 0x40d8fb
cmp ebx, 0x7b
je 0x40d8fb
mov eax, esi
call fcn.0040d87c
test al, al
jne 0x40d8ff
xor eax, eax
jmp 0x40d901
mov al, 1
pop esi
pop ebx
ret

Function at 0x40d904
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406194
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d91d
test al, 0x10
jne 0x40d921
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40da3c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406194
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40da50
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406194
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40da72
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x412cd4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412d0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406244
jmp 0x412d16
mov eax, ebx
mov edx, esi
call fcn.00406108
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412d20
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412d42
movzx eax, word [esp]
jmp 0x412d44
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413618
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41373d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041342c
mov esi, eax
mov eax, dword [0x558f08]
cmp byte [eax], 0
je 0x4136e5
mov eax, dword [0x558a44]
call fcn.0040352c
call fcn.0040319c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4135f4]
call fcn.00407b20
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x413758
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413721
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x55899c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55cb50]
call fcn.00407c14
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413744
lea eax, [ebp - 4]
mov edx, dword [0x4135f4]
call fcn.00407b2c
ret
Function at 0x414390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414466
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040615c
lea eax, [ebp - 4]
call fcn.00406b78
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406194
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x414450
mov eax, ebx
call fcn.00403034
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x414449
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406194
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x414433
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x414478
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x414433
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414450
mov eax, dword [ebp - 0x10]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41446d
lea eax, [ebp - 4]
call fcn.004060f8
ret

Function at 0x415a88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405758
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x415a32
mov eax, edi
add eax, eax
call fcn.00403034
mov esi, eax
jmp 0x415a34
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415a6d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415a57
mov eax, esp
cmp esi, eax
je 0x415a7a
mov eax, esi
call fcn.00403050
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415ab4
cmp bl, 0
je 0x415ab0
cmp bl, 0x41
jl 0x415aab
cmp bl, 0x5a
jg 0x415aab
or bl, 0x20
xor al, bl
inc esi
jmp 0x415a8f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4159f4

Function at 0x42f7e4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042f460
dec esi
jne 0x42f806
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4309c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x55ee94
cmp dword [edi], 0
jne 0x430a40
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x55ee90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x54de24
mov ecx, 2
call fcn.004031ec
mov edx, 0x43099c
lea eax, [esi + 5]
call fcn.004309bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004309bc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x430a15
mov dword [0x55ee90], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x436288
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.00406194
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x4362e0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5591a0]
mov dl, 1
mov eax, dword [0x435d08]
call fcn.0041387c
call fcn.00404b60
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00435e90
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 0x43768c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x437692
ret
Function at 0x4444f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x444523
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4445a2
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00442dc4
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x444570
mov cx, word [esp]
sub cx, si
jmp 0x444572
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x444559
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x444598
mov cx, word [esp]
sub cx, si
jmp 0x44459a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x444581
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4445ff
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004441c8
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4445ea
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4445ff
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4444fe
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x453e90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004060f0
xor eax, eax
push ebp
push 0x454025
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x453ff3
xor edx, edx
push ebp
push 0x453fec
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040615c
mov eax, dword [ebp - 8]
test eax, eax
je 0x453eff
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453eff
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405574
test eax, eax
je 0x453f08
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x453fc1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x453fb0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040615c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x453f6a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453f6a
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405574
test eax, eax
je 0x453f73
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00406194
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004031ec
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453fb7
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5588ac]
mov dl, 1
mov eax, dword [0x40adb4]
call fcn.00413840
call fcn.00404b60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45402c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406100
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406108
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x456703
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406308
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x45bb1c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bc55
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x435d7c]
call fcn.00435eb8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45bc2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00435f58
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406308
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x45bc70
call fcn.004065dc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00435fbc
test al, al
je 0x45bc15
lea ecx, [ebp - 4]
mov edx, 0x45bce4
mov eax, dword [ebp - 0xc]
call fcn.00436208
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041628c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45bc0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x45bcfc
mov eax, dword [ebp - 8]
push eax
call fcn.00409044
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5520f4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc15
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc32
mov eax, dword [ebp - 0xc]
call fcn.00403d8c
ret

Function at 0x45bd60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x45bda7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bd8a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bd9b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45bda7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x461740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x55f150], 0
je 0x461881
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x558e00]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x461881
mov eax, dword [0x55f154]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x55f150]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x461850
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x55f150]
call fcn.004245c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x461848
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x461848
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x461848
mov eax, dword [ebp - 0x14]
call fcn.0046ca64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461848
push ebp
call fcn.004616fc
pop ecx
test al, al
jne 0x461848
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403fd4
test al, al
je 0x461848
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403fd4
cmp byte [ebp - 1], 0
je 0x461848
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408cb4
test al, al
je 0x461848
mov edx, dword [ebp - 0x14]
mov eax, dword [0x55f154]
call fcn.00460e74
inc edi
dec ebx
jne 0x4617a5
mov eax, dword [0x55f154]
cmp dword [eax + 8], 0
jle 0x461868
mov eax, dword [0x55f154]
call fcn.00460f2c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x461881
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00461560
pop ecx
test al, al
jne 0x461881
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret