joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412420
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 6
jb 0x4124d2
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x1d8], 0x3c
mov dword [ebp - 0x1d4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x1d8]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x1cc], str.runas
mov dword [ebp - 0x1c8], edx
mov dword [ebp - 0x1c4], str._softwarecad
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x1b8], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x4125a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push 0x4000
mov dword [esi], vtable.TextChat.0
mov dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x30], bl
call fcn.004a8a24
push 0x4000
push ebx
push eax
mov dword [esi + 0x14], eax
call fcn.004b2d10
push 0x4000
call fcn.004a8a24
push 0x4000
push ebx
push eax
mov dword [esi + 0x18], eax
call fcn.004b2d10
push 0x4000
call fcn.004a8a24
push 0x4000
push ebx
push eax
mov dword [esi + 0x1c], eax
call fcn.004b2d10
push 0x80
call fcn.004a8a24
push 0x80
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.004b2d10
add esp, 0x40
push 0x80
call fcn.004a8a24
push 0x80
push ebx
push eax
mov dword [esi + 0x24], eax
call fcn.004b2d10
push 0x4000
call fcn.004a8a24
push 0x4000
push ebx
push eax
mov dword [esi + 0x28], eax
call fcn.004b2d10
mov edx, dword [esi + 0x24]
add esp, 0x20
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], 0x80
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x412691
cmp dword [ebp - 4], 0x80
jb 0x412691
mov ecx, dword [esi + 0x24]
mov al, 0x2e
mov byte [ecx + 0x7c], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7d], al
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x7e], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7f], bl
push str.RICHED32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x2c], eax
pop ebx
jne 0x4126bb
push 0x517ff8
push 0x518528
mov eax, 0x30
call fcn.00409310
add esp, 8
mov eax, esi
mov dword [esi + 0x34], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x412830
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x10c]
mov ecx, 8
sub ecx, eax
push esi
lea eax, [ebp + eax - 0xc]
push eax
call fcn.00460b80
mov eax, dword [ebp - 8]
mov esi, eax
and esi, 0xff0000
mov ecx, eax
mov edx, eax
and edx, 0xff00
shr ecx, 0x10
shl eax, 0x10
or esi, ecx
or edx, eax
shr esi, 8
shl edx, 8
or esi, edx
cmp esi, 0xffffffff
jne 0x4128bd
call fcn.004124e0
cmp byte [ebx + 0x10], 0
jne 0x412974
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x412ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x34], eax
test eax, eax
je 0x412974
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffffe
jne 0x4128e5
cmp byte [ebx + 0x10], 0
je 0x412974
mov ecx, dword [ebx + 0xc]
push 0
push 1
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffffd
je 0x412974
cmp esi, 0x4000
jg 0x412974
test esi, esi
jne 0x412926
mov edx, dword [ebx + 0xc]
push 0x4ce44c
push 0x475
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [ebx + 0x1c]
push 0x4000
push esi
push eax
call fcn.004b2d10
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x1c]
push 0x4000
push 0
push ecx
call fcn.004b2d10
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 0x10c]
mov ecx, esi
call fcn.00460b80
mov ecx, dword [ebx + 0xc]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
push 0xff
push eax
call fcn.00412a80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x415028
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call fcn.004a9130
add esp, 8
cmp eax, ebx
je 0x4150f2
mov byte [eax], bl
lea eax, [ebp - 0x108]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x415030
mov edx, dword [str.uvnckeyboardhelper.exe]
mov ecx, dword [0x4d7218]
mov dword [eax], edx
mov edx, dword [0x4d721c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d7220]
mov dword [eax + 8], edx
mov edx, dword [0x4d7224]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d7228]
mov dword [eax + 0x10], edx
lea edx, [ebp - 0x108]
push 0x4d722c
push edx
mov dword [eax + 0x14], ecx
call fcn.004aae42
add esp, 8
cmp eax, ebx
je 0x4150f2
push eax
call fcn.004aaec6
push 0x3c
lea eax, [ebp - 0x144]
push ebx
push eax
call fcn.004b2d10
add esp, 0x10
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], 0x4ce44c
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x415230
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x54493c], 0
push esi
jne 0x415253
mov eax, dword [ebp + 8]
push 0
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_keybd_event]
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
push 0xa5
shr eax, 8
test al, al
setne byte [ebp - 5]
call esi
push 0xa2
call esi
push 0xa3
shr eax, 8
test al, al
setne byte [ebp - 6]
call esi
push 0x5b
call esi
push 0x5c
shr eax, 8
test al, al
setne byte [ebp - 7]
call esi
cmp dword [0x54473c], 0
je 0x4152f0
cmp byte [0x54493c], 0
je 0x4152f0
cmp byte [ebp - 5], 0
jne 0x4152bc
cmp byte [ebp - 6], 0
jne 0x4152bc
cmp byte [ebp - 7], 0
je 0x4152f0
push 0x4ef410
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x4152f0
mov dl, byte [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xf], bl
mov dword [ebp - 0xc], edi
call fcn.00415a90
push 0x4ef410
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push edi
push ebx
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415e30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video0.dat
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call edi
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video1.dat
mov esi, eax
call edi
mov edi, eax
cmp esi, ebx
je 0x415e86
cmp esi, 0xffffffff
je 0x415e86
cmp edi, ebx
je 0x415e83
cmp edi, 0xffffffff
jne 0x415e86
mov dword [ebp - 8], esi
cmp edi, ebx
je 0x415e9b
cmp edi, 0xffffffff
je 0x415e9b
cmp esi, ebx
je 0x415e98
cmp esi, 0xffffffff
jne 0x415e9b
mov dword [ebp - 8], edi
cmp esi, ebx
je 0x415f1b
cmp esi, 0xffffffff
je 0x415f1b
cmp edi, ebx
je 0x415f1b
cmp edi, 0xffffffff
je 0x415f1b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
call ebx
push 0
push edi
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, ecx
jne 0x415ecf
mov dword [ebp - 8], esi
cmp eax, ecx
jne 0x415f1b
mov dword [ebp - 8], edi
cmp edx, ecx
jne 0x415f1b
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
push esi
call ebx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
push ecx
push esi
call ebx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x415f18
mov dword [ebp - 8], edi
cmp eax, 1
jne 0x415f1b
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x415f6d
cmp ebx, 0xffffffff
je 0x415f6d
push 0
push 0
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x415f5e
cmp esi, 0xffffffff
je 0x415f5e
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov dword [ebp - 0x10], eax
call edi
push ebx
call edi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.videodriver.cpp_:_Error_video.dat__n
xor eax, eax
mov ecx, 0x4ecb00
call fcn.00403230
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416a80
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push 0x9c
push eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004b2d10
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x416b24
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x416b24
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416b4a
lea ecx, [ebp - 0xc4]
push ecx
call eax
jmp 0x416b57
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x90]
sub eax, 2
jne 0x416bd2
mov eax, dword [ebp - 0x9c]
cmp eax, 6
jne 0x416b7c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x416bd2
mov eax, dword [ebp - 0x98]
cmp eax, 2
jne 0x416bc4
cmp byte [ebp - 6], 1
jne 0x416bb0
cmp word [ebp - 0xc4], 9
jne 0x416bb0
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x416bb0
test eax, eax
mov eax, 5
je 0x416bd7
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x416e00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
test edi, edi
je 0x416ec5
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push str.mv2.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x416e44
mov ecx, 0xd
mov esi, str.Fail:_Using_32bit_winvnc.exe_with__a_64bit_driver___n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004a90a2
add esp, 4
mov esi, eax
push esi
push ebx
push 0
push str.mv2.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call ebx
test eax, eax
jne 0x416e8c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push str.StringFileInfo000004b0ProductVersion
push esi
call ebx
test eax, eax
je 0x416eb0
mov edx, dword [ebp - 4]
push 0x200
push edx
push edi
call fcn.004a9c60
push esi
call fcn.004a9046
add esp, 0x10
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov byte [edi], 0
call fcn.004a9046
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4181b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 1
mov ecx, ebx
call fcn.004040e0
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
add esp, 4
test eax, eax
jle 0x41821f
lea ebx, [eax - 1]
shr ebx, 3
lea esi, [eax + edi]
inc ebx
mov eax, esi
call fcn.00404650
movzx eax, byte [esi - 8]
movzx ecx, byte [esi - 7]
xor byte [esi], al
xor byte [esi + 1], cl
movzx edx, byte [esi - 6]
movzx eax, byte [esi - 5]
movzx ecx, byte [esi - 4]
xor byte [esi + 2], dl
xor byte [esi + 3], al
xor byte [esi + 4], cl
movzx edx, byte [esi - 3]
movzx eax, byte [esi - 2]
movzx ecx, byte [esi - 1]
xor byte [esi + 5], dl
xor byte [esi + 6], al
xor byte [esi + 7], cl
add esi, 0xfffffff8
dec ebx
jne 0x4181d8
mov ebx, dword [ebp + 0xc]
mov esi, edi
mov eax, edi
call fcn.00404650
movzx edx, byte [ebx]
xor byte [edi], dl
movzx eax, byte [ebx + 1]
xor byte [edi + 1], al
movzx ecx, byte [ebx + 2]
xor byte [edi + 2], cl
movzx edx, byte [ebx + 3]
xor byte [edi + 3], dl
movzx eax, byte [ebx + 4]
xor byte [edi + 4], al
movzx ecx, byte [ebx + 5]
xor byte [edi + 5], cl
movzx edx, byte [ebx + 6]
xor byte [edi + 6], dl
movzx eax, byte [ebx + 7]
xor byte [edi + 7], al
pop esi
pop ebx
pop ebp
ret
Function at 0x41b0a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004b2d10
push 0x104
lea ecx, [ebp - 0x10c]
push esi
push ecx
call fcn.004aa0a4
xor eax, eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], eax
add esp, 0x18
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov word [ebp - 0x110], ax
lea ecx, [ebp - 0x12c]
lea edx, [ebp - 0x10c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x128], 3
mov dword [ebp - 0x124], edx
mov word [ebp - 0x11c], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x41b150
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41b176
test bl, 1
je 0x41b176
and eax, 0xfffffffe
push eax
push esi
call edi
mov ecx, dword [ebp + 8]
push 1
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
setne al
mov byte [ebp - 1], al
cmp ebx, 0xffffffff
je 0x41b197
push ebx
push esi
call edi
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cd30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x270]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1cc]
push ebx
push esi
call edx
test eax, eax
jne 0x41ce3e
mov edx, dword [edi + 0x26c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x20]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
push ecx
call esi
test eax, eax
jne 0x41cd8e
mov eax, str._unavailable_
push eax
call fcn.004aa83c
mov ecx, dword [edi + 0x26c]
add esp, 4
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ecx + 8]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push edx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov eax, dword [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x41cdc7
mov eax, str._unavailable_
push eax
call fcn.004aa83c
add esp, 4
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x41cf04
test eax, eax
je 0x41cf04
push eax
push ebx
call fcn.004aab8d
mov esi, eax
neg esi
push ebx
sbb esi, esi
call fcn.004aa14e
mov ecx, dword [ebp - 0x28]
add esp, 0xc
push ecx
call fcn.004aa14e
add esp, 4
neg esi
jne 0x41cf04
push str.vncclient.cpp_:_loopback_connection_attempted___client_rejected_n
xor eax, eax
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
push str.Local_loop_back_connections_are_disabled.
push edi
call fcn.0041cf20
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x26c]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ecx + 8]
lea eax, [ebp - 0x14]
push eax
push edx
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call esi
test eax, eax
jne 0x41ce72
mov eax, str._unavailable_
push eax
call fcn.004aa83c
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, eax
mov eax, dword [edi + 0x26c]
mov ecx, dword [eax + 8]
lea edx, [ebp - 0x24]
push edx
push ecx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov edx, dword [ebp - 0x20]
push edx
call esi
test eax, eax
jne 0x41ceab
mov eax, str._unavailable_
push eax
call fcn.004aa83c
add esp, 4
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x41cf04
test eax, eax
je 0x41cf04
push eax
push ebx
call fcn.004aab8d
neg eax
push ebx
sbb esi, esi
call fcn.004aa14e
mov eax, dword [ebp - 0x30]
add esp, 0xc
push eax
call fcn.004aa14e
add esp, 4
neg esi
jne 0x41cf04
push str.vncclient.cpp_:_loopback_connection_attempted___client_accepted_n
xor eax, eax
mov ecx, 0x4ecb00
call fcn.00403230
mov ecx, dword [edi + 0x274]
add esp, 4
mov dword [ecx + 0x48], 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x41f6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
movzx ecx, al
test byte [ebp + ecx - 0x10c], 1
je 0x41f743
push eax
mov edi, 1
xor bl, bl
call fcn.00415230
mov edx, dword [ebp + 8]
add esp, 4
push edx
mov edi, 3
call fcn.00415230
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x41f760
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x41f7aa
push pe_nt_image_headers32
push str.Host_name_unavailable
push edi
call fcn.004a9c60
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x41f7e0
push pe_nt_image_headers32
push str.IP_address_unavailable
push edi
call fcn.004a9c60
add esp, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov byte [edi], 0
mov edx, dword [ebx + 0xc]
cmp dword [edx], 0
mov dword [ebp - 0x114], 0
je 0x41f8c9
mov dword [ebp - 0x110], 0
push esi
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0xa]
jge 0x41f85e
mov edi, edi
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + ecx]
movzx ecx, byte [eax + esi]
push ecx
lea edx, [ebp - 0xc]
push 0x4d6940
push edx
call fcn.004a931b
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f837
sub eax, edx
mov ecx, 0xff
sub ecx, eax
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
call fcn.004a8a40
movsx eax, word [ebx + 0xa]
inc esi
add esp, 0xc
cmp esi, eax
jl 0x41f810
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f863
sub eax, edx
mov edx, dword [ebp - 0x110]
mov byte [edi + eax - 1], cl
mov ecx, dword [ebx + 0xc]
cmp dword [edx + ecx + 4], 0
je 0x41f8a4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f885
sub eax, edx
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x4d6944
push edi
call fcn.004a8a40
add esp, 0xc
mov eax, dword [ebp - 0x114]
mov edx, dword [ebx + 0xc]
inc eax
mov dword [ebp - 0x114], eax
add eax, eax
add eax, eax
cmp dword [eax + edx], 0
mov dword [ebp - 0x110], eax
jne 0x41f804
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x424880
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7268
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ea5e0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xe4]
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx + 0xbc]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx + 0xc4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx + 0xb8]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 0x54]
mov ecx, dword [eax + 0xc0]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4249f1
cmp dword [edi + 0x138], 0
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x424952
cmp dword [edi + 0x20c], 0
jne 0x424952
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
call edx
mov esi, eax
push esi
call ebx
push esi
mov dword [edi + 0x138], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x214], 0
je 0x4249f1
cmp dword [edi + 0x210], 0
jne 0x4249f1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi + 0x20]
add ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 0x10]
add edx, dword [edi + 0x1c]
sub eax, ecx
sub dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x218]
jne 0x4249a5
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x21c]
je 0x4249f1
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
mov esi, eax
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x5e
call ebx
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x218], ecx
mov dword [edi + 0x21c], edx
mov dword [edi + 0x210], 1
call fcn.004247b0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret