joyce8/EMBER2024-capa huggingface dataset:
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x43b642
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
add esi, esi
call fcn.0043b676
sub ebx, 0xc452b070
add esi, 1
mov ebx, esi
xor dword [edx], ecx
mov ebx, esi
inc edx
add esi, esi
cmp edx, edi
jne fcn.0043b642
add ebx, 0x89bab4d0
ret
Function at 0x4177ce
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.004857c0
sub esp, 4
call fcn.004854e0
mov dword [ebp - 0x18], 0
call fcn.004856d0
call fcn.004856d0
call sub.KERNEL32.dll_GetUserDefaultLangID
mov dword [ebp - 0x10], eax
call fcn.004856f0
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.00483a60
sub esp, 0xc
call fcn.004856f0
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00485440
sub esp, 8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00483bd0
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x41788e
call fcn.004856d0
mov dword [esp], 0xc3bff4
call fcn.00485520
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00485520
sub esp, 4
call fcn.004856f0
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00485440
sub esp, 8
jmp 0x41788f
nop
call fcn.004856d0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00485520
sub esp, 4
call fcn.00485790
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00485650
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x436c69
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.004854e0
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 0x436d18
mov dword [ebp - 0xc], 0
jmp 0x436d68
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 0x43799f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.004854e0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.00485570
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.00485570
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 0x437a95
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 0x437a96
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00485650
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00485650
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0x18
Function at 0x4743ce
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 0x4745a0
cmp word [eax], di
je 0x4745a0
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 0x47459c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x474592
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00490501
mov ebx, eax
test ebx, ebx
je 0x474590
cmp ebp, 0xffffffff
jne 0x474440
push 2
pop eax
jmp 0x474442
mov eax, ebp
push esi
push eax
push dword [esp + 0x20]
call fcn.00490c82
mov esi, eax
test esi, esi
je 0x474586
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x474462
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 [0xc5dbc4]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4744ac
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 0x4744b8
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.00487f90
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 0x4744db
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.00487fb0
mov dword [esp + 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x474575
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 0x474565
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x47452e
push ecx
push dword [esp + 0x28]
call fcn.004905e9
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x474538
push 1
jmp 0x474539
push edi
push ecx
push ebx
call fcn.00488210
add esp, 0xc
test eax, eax
je 0x474559
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp ecx, edx
jl 0x4744d0
jmp 0x474583
push ebx
call fcn.00488330
pop ecx
mov dword [esi + 0x18], eax
jmp 0x47457c
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x474583
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.004905ab
mov dword [esi + 0x2c], edi
push ebx
call fcn.00488400
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 0x4745a2
xor eax, eax
pop edi
pop ecx
pop ecx
ret 0xc
Function at 0x4745ec
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 0x474687
push edi
push 0xc5e3c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xc5e3b0]
test edi, edi
je 0x47465a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x474653
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0xc5e3b0
call fcn.00490d17
pop ecx
pop ecx
jmp 0x474655
mov edi, dword [edi]
test edi, edi
jne 0x474628
pop ebp
mov esi, dword [0xc5c6e0]
push 0x10
push 0xc5e3b0
lea eax, [esi + 1]
mov dword [0xc5c6e0], eax
call fcn.00490ce8
pop ecx
pop ecx
push 0xc5e3c0
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 0x474e16
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0xc5e3fc]
call fcn.0048522c
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 0x474f49
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 0x474e7c
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x474e71
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x474eb6
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x474f14
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x474f10
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x474e9d
jmp 0x474f10
test ax, ax
je 0x474f24
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x474f0c
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x474f01
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x474f01
mov esi, eax
movzx edx, si
cmp si, bx
je 0x474f01
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x474eea
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x474ec6
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x474f1e
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x474f28
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x474f32
test ebx, ebx
jne 0x474f51
test eax, eax
je 0x474f3b
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x474e61
test ebx, ebx
jne 0x474f65
mov eax, ebp
jmp 0x474f6a
test edi, edi
je 0x474f65
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x474f6a
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x475148
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x47519c
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 0x47518a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x475196
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x47515b
jmp 0x47519a
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x476174
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4760c7
push 0x10
push 0x2c
call fcn.00487955
push 0
push 0
push 8
mov dword [0xc5e440], eax
call fcn.00485297
cmp word [0xc5e438], 0
mov dword [0xc5e448], eax
jne 0x47624d
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 [0xc5e438], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xc5e444], eax
test eax, eax
je 0x47624d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0xc5e444]
mov dword [0xc5e428], eax
call esi
push str.getnameinfo
push dword [0xc5e444]
mov dword [0xc5e42c], eax
call esi
push str.WSAStringToAddressA
push dword [0xc5e444]
mov dword [0xc5e430], eax
call esi
cmp dword [0xc5e428], 0
mov dword [0xc5e434], eax
pop esi
je 0x47624d
cmp dword [0xc5e42c], 0
je 0x47624d
cmp dword [0xc5e430], 0
je 0x47624d
test eax, eax
je 0x47624d
mov dword [0xc5e43c], 1
add esp, 0x190
ret

Function at 0x4762e1
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 0x476367
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 0x476366
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x47635e
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 0x47634f
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004b9818
mov ebp, eax
push edi
push 0
push dword [0xc5dbc4]
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 0x476940
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0xc5e838], 0
jne 0x4769ed
push 0xc5e458
push 0
mov dword [0xc5e838], 1
mov dword [0xc5e83c], 0x40
call fcn.004c7ac0
add esp, 8
test eax, eax
jne 0x4769ed
push 0x4767f0
push 0x40
push 0x68
call fcn.00487955
mov dword [0xc5e450], eax
imul eax, dword [0xc5e83c], 0x370
push eax
push 8
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xc5e458
mov dword [0xc5e840], eax
call fcn.004c8aa0
push eax
mov dword [0xc5e844], eax
call fcn.004c5730
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x4768a0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4769e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xc5e454], 1
mov eax, dword [0xc5e450]
pop ecx
ret
Function at 0x477589
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 0x4775c1
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.004e98f3
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x4776b2
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x4776b2
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 0x4776e0
test ebp, ebp
jle 0x4776e0
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x4776e0
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4776a9
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x477653
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 0x477668
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 0x4776e0
cmp dword [edi + 0x10], ebx
je 0x4776cc
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 0x4776e0
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.004e99fd
cmp dword [esp + 0x10], 0
je 0x4776fa
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 0x477712
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 0x477733
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x477741
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x477747
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.004e97ae
push eax
call fcn.0047db64
push dword [0xc5e86c]
mov dword [esp + 0x20], eax
call fcn.00487b9f
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 0x4777bf
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x4777cd
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.00477712
push 0x477702
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.004e8ba4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x47a617
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xc5eb8c]
call fcn.00487871
mov ebx, eax
test ebx, ebx
je 0x47a67b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x47a640
push dword [esp + 0xc]
push ebx
call eax
jmp 0x47a67b
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.00490480
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.0049007b
pop ecx
sub edi, eax
push edi
call fcn.00491070
pop edi
pop esi
pop ebx
ret 8

Function at 0x47d852
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 0x47d9d6
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x47d9b9
sub eax, 1
jne 0x47d9d6
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0047d9e2
pop ecx
test eax, eax
je 0x47d8c6
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x47d8f7
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47d9d6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x47d8fc
xor edi, edi
inc edi
sub ecx, 3
je 0x47d9b5
sub ecx, 1
je 0x47d9b1
sub ecx, 1
je 0x47d98c
sub ecx, 1
je 0x47d93c
sub ecx, 4
jne 0x47d9d6
test eax, eax
jne 0x47d9d6
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x47d9d6
sub eax, 0
je 0x47d97e
sub eax, 1
je 0x47d970
sub eax, 1
je 0x47d962
sub eax, 1
jne 0x47d9d6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x47d9d6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x47d9d6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x47d9d6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x47d9d6
sub eax, 0
je 0x47d9ad
sub eax, 1
je 0x47d9a9
sub eax, 1
jne 0x47d9d6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x47d9d6
push 0x3c
jmp 0x47d9d5
push 0x32
jmp 0x47d9d5
push 0x14
jmp 0x47d9d5
push 5
jmp 0x47d9d5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47d9d3
cmp eax, 0xa
je 0x47d9cf
cmp eax, 0x5a
jne 0x47d9d6
push 0x28
jmp 0x47d9d5
push 0x1e
jmp 0x47d9d5
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret