joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40144b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401475
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x401479
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401494
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014e8
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014e8
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014ec
xor eax, eax
jmp 0x4014fe
cmp dword [ebp - 4], edi
je 0x4014fb
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3ea97911
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x68002df7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x417b00
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00488f20
sub esp, 4
call fcn.00488c40
mov dword [ebp - 0x18], 0
call fcn.00488e30
call fcn.00488e30
call sub.KERNEL32.dll_GetUserDefaultLangID
mov dword [ebp - 0x10], eax
call fcn.00488e50
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004871c0
sub esp, 0xc
call fcn.00488e50
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00488ba0
sub esp, 8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00487330
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x417bc0
call fcn.00488e30
mov dword [esp], 0xd6fd94
call fcn.00488c80
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00488c80
sub esp, 4
call fcn.00488e50
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00488ba0
sub esp, 8
jmp 0x417bc1
nop
call fcn.00488e30
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00488c80
sub esp, 4
call fcn.00488ef0
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00488db0
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x4394cf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.00488c40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, str.Kernel32
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleW
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, str.GetCurrentProcessId
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43957e
mov dword [ebp - 0xc], 0
jmp 0x4395ce
nop
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x43a205
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.00488c40
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.00488cd0
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.00488cd0
sub esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCreateKeyExW
sub esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43a2fb
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ADVAPI32.dll_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
sub esp, 4
mov dword [ebp - 0x20], eax
jmp 0x43a2fc
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00488db0
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00488db0
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0x18
Function at 0x477a6e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
test eax, eax
je 0x477c40
cmp word [eax], di
je 0x477c40
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x477c3c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x477c32
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00493c61
mov ebx, eax
test ebx, ebx
je 0x477c30
cmp ebp, 0xffffffff
jne 0x477ae0
push 2
pop eax
jmp 0x477ae2
mov eax, ebp
push esi
push eax
push dword [esp + 0x20]
call fcn.004943e2
mov esi, eax
test esi, esi
je 0x477c26
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x477b02
mov eax, esi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esi + 0x2c], ebx
push eax
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x14], edi
push dword [0xd927c4]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x477b4c
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x477b58
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.0048b6f0
mov edx, dword [esp + 0x28]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x477b7b
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.0048b710
mov dword [esp + 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x477c15
push edi
lea ecx, [esp + 0x14]
push ecx
push ebp
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jne 0x477c05
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x477bce
push ecx
push dword [esp + 0x28]
call fcn.00493d49
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x477bd8
push 1
jmp 0x477bd9
push edi
push ecx
push ebx
call fcn.0048b970
add esp, 0xc
test eax, eax
je 0x477bf9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp ecx, edx
jl 0x477b70
jmp 0x477c23
push ebx
call fcn.0048ba90
pop ecx
mov dword [esi + 0x18], eax
jmp 0x477c1c
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x477c23
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.00493d0b
mov dword [esi + 0x2c], edi
push ebx
call fcn.0048bb60
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x477c42
xor eax, eax
pop edi
pop ecx
pop ecx
ret 0xc
Function at 0x477c8c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x477d27
push edi
push 0xd93000
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xd92ff0]
test edi, edi
je 0x477cfa
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x477cf3
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0xd92ff0
call fcn.00494477
pop ecx
pop ecx
jmp 0x477cf5
mov edi, dword [edi]
test edi, edi
jne 0x477cc8
pop ebp
mov esi, dword [0xd912e0]
push 0x10
push 0xd92ff0
lea eax, [esi + 1]
mov dword [0xd912e0], eax
call fcn.00494448
pop ecx
pop ecx
push 0xd93000
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4784b6
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0xd9303c]
call fcn.0048898c
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x4785e9
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x47851c
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x478511
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x478556
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x4785b4
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x4785b0
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x47853d
jmp 0x4785b0
test ax, ax
je 0x4785c4
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x4785ac
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x4785a1
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x4785a1
mov esi, eax
movzx edx, si
cmp si, bx
je 0x4785a1
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x47858a
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x478566
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x4785be
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x4785c8
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x4785d2
test ebx, ebx
jne 0x4785f1
test eax, eax
je 0x4785db
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x478501
test ebx, ebx
jne 0x478605
mov eax, ebp
jmp 0x47860a
test edi, edi
je 0x478605
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x47860a
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4787e8
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x47883c
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47882a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x478836
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x4787fb
jmp 0x47883a
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x479814
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x479767
push 0x10
push 0x2c
call fcn.0048b0b5
push 0
push 0
push 8
mov dword [0xd93080], eax
call fcn.004889f7
cmp word [0xd93078], 0
mov dword [0xd93088], eax
jne 0x4798ed
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0xd93078], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xd93084], eax
test eax, eax
je 0x4798ed
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0xd93084]
mov dword [0xd93068], eax
call esi
push str.getnameinfo
push dword [0xd93084]
mov dword [0xd9306c], eax
call esi
push str.WSAStringToAddressA
push dword [0xd93084]
mov dword [0xd93070], eax
call esi
cmp dword [0xd93068], 0
mov dword [0xd93074], eax
pop esi
je 0x4798ed
cmp dword [0xd9306c], 0
je 0x4798ed
cmp dword [0xd93070], 0
je 0x4798ed
test eax, eax
je 0x4798ed
mov dword [0xd9307c], 1
add esp, 0x190
ret

Function at 0x479981
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x479a07
push esi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x479a06
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4799fe
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x4799ef
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004bcf78
mov ebp, eax
push edi
push 0
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x479fe0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0xd93478], 0
jne 0x47a08d
push 0xd93098
push 0
mov dword [0xd93478], 1
mov dword [0xd9347c], 0x40
call fcn.004cb220
add esp, 8
test eax, eax
jne 0x47a08d
push 0x479e90
push 0x40
push 0x68
call fcn.0048b0b5
mov dword [0xd93090], eax
imul eax, dword [0xd9347c], 0x370
push eax
push 8
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xd93098
mov dword [0xd93480], eax
call fcn.004cc200
push eax
mov dword [0xd93484], eax
call fcn.004c8e90
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x479f40
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x47a083
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xd93094], 1
mov eax, dword [0xd93090]
pop ecx
ret
Function at 0x47ac29
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x47ac61
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.004ed053
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x47ad52
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x47ad52
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x47ad80
test ebp, ebp
jle 0x47ad80
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x47ad80
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x47ad49
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x47acf3
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x47ad08
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x47ad80
cmp dword [edi + 0x10], ebx
je 0x47ad6c
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x47ad80
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.004ed15d
cmp dword [esp + 0x10], 0
je 0x47ad9a
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x47adb2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
movzx esi, ax
push 2
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x47add3
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x47ade1
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x47ade7
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x1c]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov ebp, eax
call fcn.004ecf0e
push eax
call fcn.00481204
push dword [0xd934ac]
mov dword [esp + 0x20], eax
call fcn.0048b2ff
mov ebx, eax
movsx ecx, si
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x47ae5f
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x47ae6d
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.0047adb2
push 0x47ada2
push ebx
push dword [esp + 0x28]
mov dword [ebx + 8], eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
movzx eax, word [esp + 0x3c]
push ebp
push 0x332c
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
call fcn.004ec304
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x47dcb7
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xd937cc]
call fcn.0048afd1
mov ebx, eax
test ebx, ebx
je 0x47dd1b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x47dce0
push dword [esp + 0xc]
push ebx
call eax
jmp 0x47dd1b
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00493be0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.004937db
pop ecx
sub edi, eax
push edi
call fcn.004947d0
pop edi
pop esi
pop ebx
ret 8

Function at 0x480ef2
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x481076
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x481059
sub eax, 1
jne 0x481076
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00481082
pop ecx
test eax, eax
je 0x480f66
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x480f97
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x481076
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x480f9c
xor edi, edi
inc edi
sub ecx, 3
je 0x481055
sub ecx, 1
je 0x481051
sub ecx, 1
je 0x48102c
sub ecx, 1
je 0x480fdc
sub ecx, 4
jne 0x481076
test eax, eax
jne 0x481076
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x481076
sub eax, 0
je 0x48101e
sub eax, 1
je 0x481010
sub eax, 1
je 0x481002
sub eax, 1
jne 0x481076
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x481076
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x481076
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x481076
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x481076
sub eax, 0
je 0x48104d
sub eax, 1
je 0x481049
sub eax, 1
jne 0x481076
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x481076
push 0x3c
jmp 0x481075
push 0x32
jmp 0x481075
push 0x14
jmp 0x481075
push 5
jmp 0x481075
mov eax, dword [esp + 0x14]
test eax, eax
je 0x481073
cmp eax, 0xa
je 0x48106f
cmp eax, 0x5a
jne 0x481076
push 0x28
jmp 0x481075
push 0x1e
jmp 0x481075
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret