joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408678
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 0x40a600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x549b60
push 0xa
push 0x40a694
mov eax, dword [0x549b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a624
call fcn.00415328
push ebx
mov eax, dword [0x549b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a63b
call fcn.00415328
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a64d
call fcn.00415328
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x549b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x549b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x549b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x549b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x549b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x549b78], edx
pop esi
pop ebx
ret

Function at 0x40c2b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c359
test eax, edx
je 0x40c35c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c2d9
push edx
mov edx, eax
mov eax, esp
call fcn.004060e4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c2ef
push eax
lea eax, [esp + 8]
call fcn.004060e4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c2fe
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c325
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 0x40c33f
add ecx, 4
js 0x40c316
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c33c
push eax
mov eax, ecx
mov edx, 2
call fcn.004054b0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c323
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c325
xor eax, eax
ret
test eax, eax
je 0x40c36c
test edx, edx
jne 0x40c2c0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405f54
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d5b6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d5d7
cmp ebx, 3
je 0x40d5d7
cmp ebx, 0x7b
je 0x40d5d7
mov eax, esi
call fcn.0040d558
test al, al
jne 0x40d5db
xor eax, eax
jmp 0x40d5dd
mov al, 1
pop esi
pop ebx
ret

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

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

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

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

Function at 0x412178
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 0x4121b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406004
jmp 0x4121ba
mov eax, ebx
mov edx, esi
call fcn.00405ec8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x412abc
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 0x412be1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004128d0
mov esi, eax
mov eax, dword [0x54686c]
cmp byte [eax], 0
je 0x412b89
mov eax, dword [0x5462b0]
call fcn.0040359c
call fcn.004031f4
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 [0x412a98]
call fcn.00407888
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 0x412bfc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412bc5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5461e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x549b50]
call fcn.0040797c
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 0x412be8
lea eax, [ebp - 4]
mov edx, dword [0x412a98]
call fcn.00407894
ret
Function at 0x413834
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 0x41390a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405f1c
lea eax, [ebp - 4]
call fcn.00406938
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405f54
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4138f4
mov eax, ebx
call fcn.0040308c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4138ed
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.00405f54
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4138d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41391c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4138d7
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 0x4138f4
mov eax, dword [ebp - 0x10]
call fcn.004030a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413911
lea eax, [ebp - 4]
call fcn.00405eb8
ret

Function at 0x4151a0
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.004057c0
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 0x41514a
mov eax, edi
add eax, eax
call fcn.0040308c
mov esi, eax
jmp 0x41514c
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 0x415185
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 0x41516f
mov eax, esp
cmp esi, eax
je 0x415192
mov eax, esi
call fcn.004030a8
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 0x4151cc
cmp bl, 0
je 0x4151c8
cmp bl, 0x41
jl 0x4151c3
cmp bl, 0x5a
jg 0x4151c3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4151a7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41510c
Function at 0x415a28
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.00405ec8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405f54
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x415a6f
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406004
jmp 0x415a88
mov edx, ebx
dec edx
mov eax, esi
call fcn.00406244
push ebx
mov eax, dword [esi]
call fcn.00405f54
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

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

Function at 0x430a4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x54be94
cmp dword [edi], 0
jne 0x430ac8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x54be90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x53ce1c
mov ecx, 2
call fcn.00403244
mov edx, 0x430a24
lea eax, [esi + 5]
call fcn.00430a44
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00430a44
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 0x430a9d
mov dword [0x54be90], 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 0x4363c4
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.00405f54
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x43641c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x546b50]
mov dl, 1
mov eax, dword [0x435d1c]
call fcn.00412d20
call fcn.00404c64
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00435ea4
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 0x4377c8
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 0x4377ce
ret
Function at 0x444360
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 0x44438f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x44440e
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00442c30
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 0x4443dc
mov cx, word [esp]
sub cx, si
jmp 0x4443de
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4443c5
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 0x444404
mov cx, word [esp]
sub cx, si
jmp 0x444406
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4443ed
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x44446b
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00444034
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x444456
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 0x44446b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x44436a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x453ce4
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.00405eb0
xor eax, eax
push ebp
push 0x453e79
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x453e47
xor edx, edx
push ebp
push 0x453e40
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405f1c
mov eax, dword [ebp - 8]
test eax, eax
je 0x453d53
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453d53
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.0040563c
test eax, eax
je 0x453d5c
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 0x453e15
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 0x453e04
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405f1c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x453dbe
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453dbe
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0040563c
test eax, eax
je 0x453dc7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00405f54
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00403244
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 0x453e0b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x54607c]
mov dl, 1
mov eax, dword [0x40aaa8]
call fcn.00412ce4
call fcn.00404c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453e80
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405ec0
ret

Function at 0x456510
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.00405ec8
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x456557
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.004060c8
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x45b970
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 0x45baa9
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 [0x435d90]
call fcn.00435ecc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45ba7f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00435f6c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004060c8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x45bac4
call fcn.0040639c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004360f8
test al, al
je 0x45ba69
lea ecx, [ebp - 4]
mov edx, 0x45bb38
mov eax, dword [ebp - 0xc]
call fcn.00436344
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004159a4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45ba62
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x45bb50
mov eax, dword [ebp - 8]
push eax
call fcn.00408e50
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5410f4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba69
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 0x45ba86
mov eax, dword [ebp - 0xc]
call fcn.00403dcc
ret

Function at 0x45bbb4
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 0x45bbfb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bbde
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bbef
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45bbfb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x461594
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 [0x54c150], 0
je 0x4616d5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x54674c]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x4616d5
mov eax, dword [0x54c154]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x54c150]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4616a4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x54c150]
call fcn.00424490
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x46169c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x46169c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x46169c
mov eax, dword [ebp - 0x14]
call fcn.0046c8a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46169c
push ebp
call fcn.00461550
pop ecx
test al, al
jne 0x46169c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404014
test al, al
je 0x46169c
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.00404014
cmp byte [ebp - 1], 0
je 0x46169c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408a60
test al, al
je 0x46169c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x54c154]
call fcn.00460cc8
inc edi
dec ebx
jne 0x4615f9
mov eax, dword [0x54c154]
cmp dword [eax + 8], 0
jle 0x4616bc
mov eax, dword [0x54c154]
call fcn.00460d80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4616d5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004613b4
pop ecx
test al, al
jne 0x4616d5
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
Function at 0x469590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00408a48
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00463a10
test ebx, ebx
jne 0x4695e3
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00469424
mov ebx, eax
test ebx, ebx
je 0x4696ce
cmp esi, ebx
je 0x46960c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x469621
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x469659
add eax, 0xffffff5f
sub eax, 2
jb 0x469671
dec eax
sub eax, 2
jb 0x469685
dec eax
sub eax, 2
jb 0x46967b
jmp 0x46968f
add eax, 0xfffffdff
sub eax, 2
jb 0x469671
dec eax
sub eax, 2
jb 0x469685
dec eax
sub eax, 2
jb 0x46967b
jmp 0x46968f
mov byte [esp + 0x120], 0
jmp 0x469697
mov byte [esp + 0x120], 2
jmp 0x469697
mov byte [esp + 0x120], 1
jmp 0x469697
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00479dcc
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004651e4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4696d0
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4798d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4798f1
test edi, 0x40000
je 0x47990b
test bl, bl
jne 0x47998c
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x47998c
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x47993e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x479953
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x479962
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x479973
cmp byte [esp + 2], 0
je 0x47998c
cmp byte [esp + 2], 0
je 0x479984
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x47998c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x479c38
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x479c5e
mov eax, esp
push eax
push 0x479c00
call sub.user32.dll_EnumWindows
jmp 0x479c71
mov eax, esp
push eax
push 0x479be0
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x479d34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x479d88]
test si, 4
je 0x479d49
or bl, 1
test si, 8
je 0x479d53
or bl, 4
test si, 1
je 0x479d5d
or bl, 8
test si, 2
je 0x479d67
or bl, 0x10
test si, 0x10
je 0x479d71
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x479d80
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x479d8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x479dc8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x479da6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x479db5
or bl, 4
test esi, 0x20000000
je 0x479dc0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret