joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9b8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407544
xor eax, eax
push ebp
push 0x40aa78
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408374
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408524
mov eax, dword [ebx]
call fcn.0040a880
test al, al
jne 0x40aa55
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408374
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408524
mov eax, dword [ebx]
call fcn.0040a880
test al, al
jne 0x40aa55
mov eax, ebx
call fcn.00407460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa7f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004074c0
lea eax, [ebp - 4]
call fcn.00407460
ret

Function at 0x41c890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c8e9
test eax, edx
je 0x41c8ec
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c8a7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c8ce
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 0x41c8cf
add ecx, 4
js 0x41c8bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c8cc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c8ce
xor eax, eax
ret
test eax, eax
je 0x41c8f8
test edx, edx
jne 0x41c898
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41db6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41db99
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41dc2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004082b8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41dcd3
test esi, 0x400
jne 0x41dc68
test esi, 0x10
setne bl
jmp 0x41dd03
cmp byte [esp], 0
je 0x41dc9c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dd03
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41dd03
test esi, 0x10
je 0x41dca8
mov bl, 1
jmp 0x41dd03
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dccf
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41dd03
mov bl, 1
jmp 0x41dd03
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41dcfd
cmp eax, 3
je 0x41dcfd
cmp eax, 0xa1
je 0x41dcfd
cmp eax, 0x7b
je 0x41dcfd
cmp eax, 0x35
je 0x41dcfd
cmp eax, 0x15
je 0x41dcfd
cmp eax, 0x43
jne 0x41dd01
xor ebx, ebx
jmp 0x41dd03
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421d70
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 0x421da9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004075e8
jmp 0x421db2
mov eax, ebx
mov edx, esi
call fcn.00407840
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421dbc
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 0x421dde
movzx eax, word [esp]
jmp 0x421de0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x422e44
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 0x422f69
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422c4c
mov esi, eax
mov eax, dword [0x6335d0]
cmp byte [eax], 0
je 0x422f11
mov eax, dword [0x6332c0]
call fcn.004053c0
call fcn.00404f28
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 [0x422e14]
call fcn.0040974c
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 0x422f84
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422f4d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x633248]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x636c54]
call fcn.00409978
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 0x422f70
lea eax, [ebp - 4]
mov edx, dword [0x422e14]
call fcn.00409870
ret

Function at 0x423e70
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 0x423f46
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407888
lea eax, [ebp - 4]
call fcn.00407a24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004082b8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x423f30
mov eax, ebx
call fcn.00404db4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423f29
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.004082b8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x423f13
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423f58
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x423f13
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 0x423f30
mov eax, dword [ebp - 0x10]
call fcn.00404dd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423f4d
lea eax, [ebp - 4]
call fcn.00407460
ret
Function at 0x46d648
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x46d650
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4a3bb8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3c56
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4a3c1a
cmp byte [ebx + 0x11], 0
jne 0x4a3c1a
cmp byte [ebx + 0x3c], 0
jne 0x4a3c1a
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4a3c3b
lea edx, [ebp - 4]
mov eax, dword [0x633544]
call fcn.0040b380
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47bba4]
call fcn.00422f94
call fcn.00406b5c
jmp 0x4a3c3b
lea edx, [ebp - 8]
mov eax, dword [0x633544]
call fcn.0040b380
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47bba4]
call fcn.00422f94
call fcn.00406b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3c5d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074c0
ret

Function at 0x4a4144
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4a4192
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004a3b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a41ab
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a41b4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004a3b04
dec esi
jne 0x4a41d6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4a66ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6393d8
cmp dword [edi], 0
jne 0x4a6728
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x6393d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x62e604
mov ecx, 2
call fcn.00404f78
mov edx, 0x4a6684
lea eax, [esi + 5]
call fcn.004a66a4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a66a4
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 0x4a66fd
mov dword [0x6393d4], 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 0x4c43a8
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.004082b8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004c3e60
test al, al
jne 0x4c4409
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x63379c]
mov dl, 1
mov eax, dword [0x4c2b94]
call fcn.0042308c
call fcn.00406b5c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c3dc8
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 0x4cc98c
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 0x4cc992
ret
Function at 0x4e1594
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x62fb80
test edx, edx
jne 0x4e15b3
xor eax, eax
jmp 0x4e16d1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4e15d0
push esi
push edx
push eax
call fcn.004e16d8
add esp, 0xc
jmp 0x4e16d1
push esi
push edx
push eax
call fcn.004e1998
add esp, 0xc
jmp 0x4e16d1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ef184
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 - 8]
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 [0x6395e8], 0
je 0x4ef2c5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x633510]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4ef2c5
mov eax, dword [0x6395ec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6395e8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4ef294
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6395e8]
call fcn.00493324
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4ef28c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x4ef28c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x4ef28c
mov eax, dword [ebp - 0x14]
call fcn.004fab30
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ef28c
push ebp
call fcn.004ef140
pop ecx
test al, al
jne 0x4ef28c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00405b38
test al, al
je 0x4ef28c
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405b38
cmp byte [ebp - 9], 0
je 0x4ef28c
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040ca34
test al, al
je 0x4ef28c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6395ec]
call fcn.004ee888
inc edi
dec ebx
jne 0x4ef1e9
mov eax, dword [0x6395ec]
cmp dword [eax + 8], 0
jle 0x4ef2ac
mov eax, dword [0x6395ec]
call fcn.004ee93c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ef2c5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004eefa8
pop ecx
test al, al
jne 0x4ef2c5
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 0x4f7718
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.0040cc34
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.004f17c8
test ebx, ebx
jne 0x4f776b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004f7590
mov ebx, eax
test ebx, ebx
je 0x4f7861
cmp esi, ebx
je 0x4f7794
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x4f77a9
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 0x4f77e1
add eax, 0xffffff5f
sub eax, 2
jb 0x4f77f9
dec eax
sub eax, 2
jb 0x4f780d
dec eax
sub eax, 2
jb 0x4f7803
jmp 0x4f7817
add eax, 0xfffffdff
sub eax, 2
jb 0x4f77f9
dec eax
sub eax, 2
jb 0x4f780d
dec eax
sub eax, 2
jb 0x4f7803
jmp 0x4f7817
mov byte [esp + 0x120], 0
jmp 0x4f781f
mov byte [esp + 0x120], 2
jmp 0x4f781f
mov byte [esp + 0x120], 1
jmp 0x4f781f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0057f158
mov esi, eax
call fcn.004ee234
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004f30d0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4f7863
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x51c318
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407544
xor eax, eax
push ebp
push 0x51c455
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x51c428
xor edx, edx
push ebp
push 0x51c421
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x51c365
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 - 8], eax
xor eax, eax
push ebp
push 0x51c3f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x51c3e5
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x51c3a8
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004082b8
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.00404f78
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c3ec
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x6331a8]
mov dl, 1
mov eax, dword [0x416a70]
call fcn.00423050
call fcn.00406b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c45c
lea eax, [ebp - 4]
call fcn.00407460
ret

Function at 0x546c60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00546d10
test eax, eax
je 0x546c9b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00546d10
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004075e8
jmp 0x546ca9
mov ecx, esi
mov edx, 0x546cc8
mov eax, ebx
call fcn.00546be8
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00407840
add esp, 0x200
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00407460
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x56ea62
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x56ea5b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00408374
jmp 0x56ea62
mov eax, esi
call fcn.00407460
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x574008
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 0x574167
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x63232c], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4c2db8]
call fcn.004c3df0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x57413d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004c3e9c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00408374
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x574180
call fcn.00408524
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004c3f00
test al, al
je 0x574127
lea ecx, [ebp - 4]
mov edx, 0x5741f4
mov eax, dword [ebp - 0xc]
call fcn.004c432c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042523c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x574127
xor edx, edx
push ebp
push 0x574120
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x57420c
mov eax, dword [ebp - 8]
push eax
call fcn.0040deb8
test eax, eax
je 0x574109
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x574109
call fcn.00573f94
test eax, eax
je 0x5740f9
mov eax, dword [ebx + 0x50]
jmp 0x5740fc
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x63232c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x574127
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x574144
mov eax, dword [ebp - 0xc]
call fcn.00405878
ret

Function at 0x574270
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 0x5742b7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57429a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5742ab
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5742b7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x57ec64
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 0x57ec85
test edi, 0x40000
je 0x57ec9f
test bl, bl
jne 0x57ed20
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x57ed20
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 0x57ecd2
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x57ece7
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x57ecf6
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x57ed07
cmp byte [esp + 2], 0
je 0x57ed20
cmp byte [esp + 2], 0
je 0x57ed18
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x57ed20
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x57efc8
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 0x57efee
mov eax, esp
push eax
push 0x57ef90
call sub.user32.dll_EnumWindows
jmp 0x57f001
mov eax, esp
push eax
push 0x57ef70
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 0x57f0c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x57f114]
test bl, 4
je 0x57f0d8
or si, 1
test bl, 8
je 0x57f0e1
or si, 4
test bl, 1
je 0x57f0ea
or si, 8
test bl, 2
je 0x57f0f3
or si, 0x10
test bl, 0x10
je 0x57f0fc
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57f10c
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x57f118
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x57f154]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57f133
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57f143
or bx, 4
test esi, 0x20000000
je 0x57f14f
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x57f1a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0057f158
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret