joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404394
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.00404648
mov byte [esp], al
cmp byte [esp], 0
jne 0x40451d
test edi, edi
je 0x40451d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404454
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40442f
cmp edi, 0xffffffff
je 0x4043f3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4043f3
mov byte [esp], 0
jmp 0x40451d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40442f
test ebx, ebx
jne 0x404428
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013a8
test eax, eax
jne 0x404428
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40451d
pause
dec ebp
test ebp, ebp
jg 0x4043d8
cmp edi, 0xffffffff
je 0x404454
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404452
mov byte [esp], 0
jmp 0x40451d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4043a2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013a8
cmp ebx, eax
jne 0x404454
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404590
mov edx, eax
mov ebx, dword [0x4d48c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4044bb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4044b9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4044bb
xor edi, edi
cmp byte [esp], 0
je 0x4044e4
mov ebx, dword [esi]
test bl, 1
jne 0x4044fd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013a8
cmp ebx, eax
jne 0x4044c1
mov byte [esp + 1], 1
jmp 0x4044fd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013a8
cmp ebx, eax
jne 0x4044e4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40446e
cmp byte [esp], 0
je 0x40451d
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 0x4050a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d4050], 0
je 0x405101
cmp word [0x4d432c], 0xd7b2
jne 0x4050c9
cmp dword [0x4d4334], 0
jbe 0x4050c9
mov eax, 0x4d4328
call dword [0x4d4344]
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 0x40512c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cd02c], 0
jne 0x40511d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4052cc
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 [0x4cd030], 0
je 0x4052f2
mov edx, esi
mov eax, ebx
call dword [0x4cd030]
jmp 0x405301
mov eax, 8
call fcn.00403014
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d4051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405294
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 0x4083e0
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 0x40a168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4d6b5c
push 0xa
push 0x40a1fc
mov eax, dword [0x4d6b4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a18c
call fcn.004140c0
push ebx
mov eax, dword [0x4d6b4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a1a3
call fcn.004140c0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a1b5
call fcn.004140c0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d6b60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d6b64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d6b68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d6b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d6b70], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d6b74], edx
pop esi
pop ebx
ret

Function at 0x40bd6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40be15
test eax, edx
je 0x40be18
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40bd95
push edx
mov edx, eax
mov eax, esp
call fcn.00405f3c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40bdab
push eax
lea eax, [esp + 8]
call fcn.00405f3c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40bdba
movzx eax, word [eax]
sub eax, ecx
jmp 0x40bde1
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 0x40bdfb
add ecx, 4
js 0x40bdd2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40bdf8
push eax
mov eax, ecx
mov edx, 2
call fcn.0040536c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40bddf
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40bde1
xor eax, eax
ret
test eax, eax
je 0x40be28
test edx, edx
jne 0x40bd7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405dac
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cc2e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cc4f
cmp ebx, 3
je 0x40cc4f
cmp ebx, 0x7b
je 0x40cc4f
mov eax, esi
call fcn.0040cbd0
test al, al
jne 0x40cc53
xor eax, eax
jmp 0x40cc55
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405dac
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cc71
test al, 0x10
jne 0x40cc75
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40cd90
Capabilities:
Get file attributes

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

Function at 0x40cda4
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.00405dac
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40cdc6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x410ef0
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 0x410f29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405e5c
jmp 0x410f32
mov eax, ebx
mov edx, esi
call fcn.00405d20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410f3c
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 0x410f5e
movzx eax, word [esp]
jmp 0x410f60
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411834
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 0x411959
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00411648
mov esi, eax
mov eax, dword [0x4d3bcc]
cmp byte [eax], 0
je 0x411901
mov eax, dword [0x4d3914]
call fcn.00403528
call fcn.0040317c
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 [0x411810]
call fcn.0040760c
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 0x411974
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41193d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d38ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d6b4c]
call fcn.00407700
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 0x411960
lea eax, [ebp - 4]
mov edx, dword [0x411810]
call fcn.00407618
ret
Function at 0x41253c
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 0x412612
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405d74
lea eax, [ebp - 4]
call fcn.00406790
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405dac
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4125fc
mov eax, ebx
call fcn.00403014
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4125f5
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.00405dac
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4125df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412624
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4125df
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 0x4125fc
mov eax, dword [ebp - 0x10]
call fcn.00403030
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412619
lea eax, [ebp - 4]
call fcn.00405d10
ret

Function at 0x413f38
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.0040567c
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 0x413ee2
mov eax, edi
add eax, eax
call fcn.00403014
mov esi, eax
jmp 0x413ee4
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 0x413f1d
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 0x413f07
mov eax, esp
cmp esi, eax
je 0x413f2a
mov eax, esi
call fcn.00403030
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 0x413f64
cmp bl, 0
je 0x413f60
cmp bl, 0x41
jl 0x413f5b
cmp bl, 0x5a
jg 0x413f5b
or bl, 0x20
xor al, bl
inc esi
jmp 0x413f3f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413ea4
Function at 0x4147c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.00405d20
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405dac
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x414807
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405e5c
jmp 0x414820
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040609c
push ebx
mov eax, dword [esi]
call fcn.00405dac
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42d7f8
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.0042d4fc
dec esi
jne 0x42d81a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42e9d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d8e90
cmp dword [edi], 0
jne 0x42ea54
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d8e8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4cde00
mov ecx, 2
call fcn.004031cc
mov edx, 0x42e9b0
lea eax, [esi + 5]
call fcn.0042e9d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042e9d0
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 0x42ea29
mov dword [0x4d8e8c], 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 0x433e68
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.00405dac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x433ec0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d3d28]
mov dl, 1
mov eax, dword [0x4338e8]
call fcn.00411a70
call fcn.00404b20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00433a70
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 0x43515c
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 0x435162
ret
Function at 0x441c78
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 0x441ca7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x441d26
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00440548
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 0x441cf4
mov cx, word [esp]
sub cx, si
jmp 0x441cf6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x441cdd
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 0x441d1c
mov cx, word [esp]
sub cx, si
jmp 0x441d1e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x441d05
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x441d83
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0044194c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x441d6e
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 0x441d83
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x441c82
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x451644
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.00405d08
xor eax, eax
push ebp
push 0x4517d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4517a7
xor edx, edx
push ebp
push 0x4517a0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405d74
mov eax, dword [ebp - 8]
test eax, eax
je 0x4516b3
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4516b3
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004054f8
test eax, eax
je 0x4516bc
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 0x451775
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 0x451764
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405d74
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45171e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x45171e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004054f8
test eax, eax
je 0x451727
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00405dac
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004031cc
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 0x45176b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4d383c]
mov dl, 1
mov eax, dword [0x40a554]
call fcn.00411a34
call fcn.00404b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4517e0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405d18
ret

Function at 0x453e70
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.00405d20
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x453eb7
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.00405f20
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4592d0
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 0x459409
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 [0x43395c]
call fcn.00433a98
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4593df
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00433b38
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405f20
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x459424
call fcn.004061f4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00433b9c
test al, al
je 0x4593c9
lea ecx, [ebp - 4]
mov edx, 0x459498
mov eax, dword [ebp - 0xc]
call fcn.00433de8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041473c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4593c2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4594b0
mov eax, dword [ebp - 8]
push eax
call fcn.00408e80
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4d20d0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4593c9
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 0x4593e6
mov eax, dword [ebp - 0xc]
call fcn.00403d4c
ret

Function at 0x459514
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 0x45955b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45953e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45954f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45955b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x45eef4
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 [0x4d914c], 0
je 0x45f035
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4d3b54]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x45f035
mov eax, dword [0x4d9150]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4d914c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45f004
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4d914c]
call fcn.004229e4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45effc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x45effc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x45effc
mov eax, dword [ebp - 0x14]
call fcn.0046a2ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45effc
push ebp
call fcn.0045eeb0
pop ecx
test al, al
jne 0x45effc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403f94
test al, al
je 0x45effc
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.00403f94
cmp byte [ebp - 1], 0
je 0x45effc
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408af8
test al, al
je 0x45effc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4d9150]
call fcn.0045e628
inc edi
dec ebx
jne 0x45ef59
mov eax, dword [0x4d9150]
cmp dword [eax + 8], 0
jle 0x45f01c
mov eax, dword [0x4d9150]
call fcn.0045e6e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45f035
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045ed14
pop ecx
test al, al
jne 0x45f035
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