joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4386f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x270]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x4388f4
mov eax, dword [ecx + 0x9c]
mov ecx, dword [edi + 0x26c]
mov ecx, dword [ecx + 8]
test eax, eax
jne 0x438816
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [esp + 0x20]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call esi
mov ebx, str._unavailable_
test eax, eax
mov ecx, ebx
cmovne ecx, eax
push ecx
call fcn.004dad37
mov ecx, dword [edi + 0x26c]
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x30]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [esp + 0x30]
call esi
test eax, eax
cmovne ebx, eax
push ebx
call fcn.004dad37
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4388dd
test ebx, ebx
je 0x4388dd
push ebx
push eax
call fcn.004dadd3
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004dab64
add esp, 0xc
push ebx
call fcn.004dab64
add esp, 4
test esi, esi
jne 0x4388dd
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_loopback_connection_attempted___client_rejected_n
push esi
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov ecx, edi
push str.Local_loop_back_connections_are_disabled.
call fcn.00438900
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [esp + 0x30]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call esi
mov ebx, str._unavailable_
test eax, eax
mov ecx, ebx
cmovne ecx, eax
push ecx
call fcn.004dad37
mov ecx, dword [edi + 0x26c]
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x20]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [esp + 0x20]
call esi
test eax, eax
cmovne ebx, eax
push ebx
call fcn.004dad37
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4388dd
test ebx, ebx
je 0x4388dd
push ebx
push eax
call fcn.004dadd3
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004dab64
add esp, 0xc
push ebx
call fcn.004dab64
add esp, 4
test esi, esi
jne 0x4388dd
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_loopback_connection_attempted___client_accepted_n
push esi
push 0x558c50
call fcn.0041c840
mov eax, dword [edi + 0x274]
add esp, 0xc
mov dword [eax + 0x19c], 1
mov ecx, dword [esp + 0x3c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
call dword [eax + 0x1e8]
jmp 0x438722
Function at 0x43b0d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x108]
mov bl, cl
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, bl
test byte [ebp + eax - 0x108], 1
je 0x43b11d
push ecx
push 1
xor dl, dl
mov cl, bl
call fcn.0042f780
add esp, 4
xor dl, dl
mov cl, bl
push 3
call fcn.0042f780
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret

Function at 0x43b130
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x100
lea eax, [ebp - 0x10c]
mov edi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x43b17e
push 0x100
push str.Host_name_unavailable
push edi
call fcn.004daa40
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x43b1b5
push 0x100
push str.IP_address_unavailable
push edi
call fcn.004daa40
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
mov byte [edi], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x114], 0
cmp dword [eax], 0
je 0x43b29d
xor ecx, ecx
mov dword [ebp - 0x110], ecx
push esi
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0xa]
jge 0x43b22f
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx]
movzx eax, byte [eax + esi]
push eax
lea eax, [ebp - 0xc]
push 0x542a24
push eax
call fcn.00444df0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b202
sub eax, edx
mov ecx, 0xff
sub ecx, eax
lea eax, [ebp - 0xc]
push ecx
push eax
push edi
call fcn.004cfde0
movsx eax, word [ebx + 0xa]
inc esi
mov ecx, dword [ebp - 0x110]
add esp, 0xc
cmp esi, eax
jl 0x43b1e1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b234
sub ecx, edx
mov byte [edi + ecx - 1], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x110]
cmp dword [ecx + eax + 4], 0
je 0x43b278
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b256
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push eax
push 0x542a28
push edi
call fcn.004cfde0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x114]
inc edx
mov dword [ebp - 0x114], edx
lea ecx, [edx*4]
cmp dword [ecx + eax], 0
mov dword [ebp - 0x110], ecx
jne 0x43b1d7
pop esi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop edi
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
Function at 0x440980
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5568
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x24c]
mov ecx, dword [edi + 0x16c]
mov edx, dword [edi + 0x174]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0xc0]
add eax, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0xc8]
add eax, ecx
mov ecx, dword [edi + 0x168]
add eax, edx
mov edx, dword [edi + 0x170]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0xbc]
add eax, ecx
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x68]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [eax + 0xc4]
add eax, ecx
add eax, edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x440b30
cmp dword [edi + 0x29c], 0
jne 0x440a7d
cmp dword [edi + 0x36c], 0
jne 0x440a7d
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
cmp eax, vtable.vncClient.0
jne 0x440b4b
mov eax, dword [edi + 0x24c]
mov esi, dword [eax + 0x68]
add esi, 0xdc2c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x29c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [edi + 0x374], 0
je 0x440b30
cmp dword [edi + 0x370], 0
jne 0x440b30
lea eax, [ebp - 0x28]
push eax
call esi
mov eax, dword [edi + 0x170]
add eax, dword [edi + 0x168]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [edi + 0x174]
sub eax, dword [edi + 0x16c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp ecx, dword [edi + 0x378]
jne 0x440ad3
cmp eax, dword [edi + 0x37c]
je 0x440b30
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
cmp eax, vtable.vncClient.0
jne 0x440b56
mov eax, dword [edi + 0x24c]
mov esi, dword [eax + 0x68]
add esi, 0xdc2c
push esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x5e
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x378], edx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x370], 1
call fcn.004408a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
mov ecx, edi
call edx
mov esi, eax
jmp 0x440a5f
mov ecx, edi
call edx
mov esi, eax
jmp 0x440aee
Function at 0x442910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, ecx
mov dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
mov dword [ebp - 8], eax
xor esi, esi
nop dword [eax]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x2000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442950
cmp dword [ebp - 4], eax
je 0x442956
mov bl, 1
jmp 0x442956
cmp dword [ebp - 4], 0
je 0x44297c
push 0
push 0
push 0
call fcn.004c54c0
push dword [ebp - 4]
push edi
push eax
call fcn.004c54c0
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [esi + ecx], eax
add esi, 4
mov eax, dword [ebp - 8]
jmp 0x442930
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.004cbf38
add esp, 4
or eax, 0xffffffff
test bl, bl
cmovne esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x442a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
cmp byte [esi + 0x501], 0
je 0x442a45
cmp byte [esi + 0x500], 0
je 0x442a50
call fcn.00442b60
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
test edi, edi
jns 0x442a62
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x2000
jg 0x442a45
cmp dword [ebp + 0xc], 2
jne 0x442aa1
push 1
push 0
push edi
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x442b15
add dword [esi + 0x4fc], edi
mov al, bl
inc dword [esi + 0x4f4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x198]
push edi
push dword [esi + 0x4e0]
call fcn.004863e0
cmp eax, 0xffffffff
sete bl
jne 0x442b2e
cmp dword [ebp + 0xc], 0
mov ecx, 0x2000
mov edx, dword [esi + 0x4e0]
mov dword [esp + 0xc], ecx
je 0x442af3
push edi
push edx
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x4e4]
call fcn.004c5380
add esp, 0x10
test eax, eax
jne 0x442b15
mov edx, dword [esi + 0x4e4]
mov ecx, dword [esp + 0xc]
cmp dword [ebp + 0xc], 0
lea eax, [esi + 0x4f8]
push 0
push eax
cmovne edi, ecx
push edi
push edx
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x442b3c
mov ecx, esi
mov byte [esi + 0x500], 1
call fcn.00442b60
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
mov byte [esi + 0x500], 1
call fcn.00442b60
mov edi, dword [esi + 0x4f8]
mov al, bl
add dword [esi + 0x4fc], edi
inc dword [esi + 0x4f4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x444580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5848
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x55800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x154], 0
jne 0x4446d7
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
cmp eax, vtable.vncClient.0
jne 0x4446ed
mov eax, dword [esi + 0x24c]
mov edi, dword [eax + 0x68]
add edi, 0xdc2c
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x5a
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov eax, ecx
mov dword [ebp - 4], 0
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [ebp + 0x10]
mov ebx, ecx
shl eax, 8
or edx, eax
cmp edx, 1
push 0x144
sete al
and ebx, 0xff0000
mov byte [esi + 0x518], al
mov eax, ecx
shr eax, 0x10
or ebx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr ebx, 8
shl eax, 8
or ebx, eax
lea eax, [esi + 0xd]
push 0
push eax
call fcn.004cddb0
add esp, 0xc
cmp ebx, 0x142
ja 0x4446d0
mov ecx, dword [esi + 0x198]
lea eax, [esi + 0xd]
push ebx
push eax
call fcn.004863e0
test eax, eax
je 0x4446d0
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x4446f6
mov eax, dword [ecx + 0x364]
test eax, eax
je 0x4446d0
cmp byte [ebp + 0x1c], 0
je 0x4446d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x444530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x154], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call edx
mov edi, eax
jmp 0x4445d6
call dword [eax + 0x224]
jmp 0x44468a
Function at 0x44b110
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x55ad2c], 0
cmp dword [esi + 0xe158], 0
mov byte [esi + 0xe15c], 1
je 0x44b1df
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
push 0
push 0
push 0x12
push dword [esi + 0xdbc0]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7d0
push dword [esi + 0xe158]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44b1b3
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
push 0
push dword [esi + 0xe158]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xe158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdc10], 0
mov dword [esi + 0xe158], 0
pop esi
ret
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_vncDesktop::_iniwindowthread_proper_closed__n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
push dword [esi + 0xe158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe158], 0
pop esi
ret
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_initwindowthread_already_closed__n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
pop esi
ret
Function at 0x44b200
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread__n
push 9
push 0x558c50
mov esi, eax
mov byte [edi + 0xe15c], 0
call fcn.0041c840
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x44b3c9
mov ecx, str.Default
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44b290
test dl, dl
je 0x44b28c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44b290
add eax, 2
add ecx, 2
test dl, dl
jne 0x44b270
xor eax, eax
jmp 0x44b295
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44b3b5
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_default_desk_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
cmp dword [edi + 0xe158], 0
jne 0x44b389
push dword [edi + 0xdbbc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0xdbe8]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x44b3d9
mov eax, dword [ecx + 0xb8]
test eax, eax
je 0x44b2ec
call fcn.0042fae0
lea eax, [edi + 0xdbc0]
push eax
push 0
push edi
push 0x44b3f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [edi + 0xdbbc]
mov dword [edi + 0xe158], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44b382
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x558c50
call fcn.0041c840
mov eax, dword [edi + 0xe158]
add esp, 0xc
test eax, eax
je 0x44b36a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xe158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xdc10], 0
mov dword [edi + 0xe158], 0
xor al, al
mov byte [edi + 0xe15c], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_started_n
jmp 0x44b38e
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_reactivate_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov al, 1
mov byte [edi + 0xe15c], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
call dword [eax + 0x154]
jmp 0x44b2e3
Function at 0x4521e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 8], esi
xor dh, dh
cmp eax, 8
je 0x452217
cmp eax, 0x10
jne 0x45220a
movzx eax, word [ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x45226c
mov eax, dword [ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor eax, eax
mov ecx, 0x100
mov edi, 0x5a4bb0
rep stosd dword es:[edi], eax
xor edi, edi
test esi, esi
jle 0x452262
nop dword [eax]
mov eax, dword [ebp - 4]
mov esi, ebx
mov dl, byte [edi + eax]
movzx ecx, dl
movzx eax, dh
mov ebx, dword [ecx*4 + 0x5a4bb0]
inc ebx
cmp ebx, esi
mov dword [ecx*4 + 0x5a4bb0], ebx
movzx ecx, dl
cmovle ecx, eax
inc edi
cmp ebx, esi
mov dh, cl
cmovle ebx, esi
cmp edi, dword [ebp - 8]
jl 0x452230
pop edi
pop esi
movzx eax, dh
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.getBgColour:_bpp__d__n
push 2
call fcn.004db37d
add esp, 4
push eax
call fcn.00451470
add esp, 0xc
push 1
call fcn.004dc464
int3
Function at 0x453840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.d:_saasultravncwinvncwinvnc_vncencoder.cpp_:_remote_palette_data_requested_n
push 9
push 0x558c50
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.0041c840
add esp, 0xc
cmp byte [esi + 0x13], 0
jne 0x453889
mov ecx, esi
call fcn.00453a20
test eax, eax
je 0x453990
cmp byte [esi + 0x23], 0
jne 0x453990
cmp byte [esi + 0x13], 0
lea edi, [esi + 0xc]
je 0x4539a6
push str.d:_saasultravncwinvncwinvnc_vncencoder.cpp_:_generating_BGR233_palette_data_n
push 9
push 0x558c50
call fcn.0041c840
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edi]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x4538cd
push eax
call fcn.004dab64
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.004dad8d
mov ecx, eax
add esp, 4
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x453972
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x453972
inc ecx
mov dword [esp + 0x14], ecx
nop dword [eax]
movzx ecx, byte [esi + 0x3c]
xor edx, edx
movzx edi, word [esi + 0x38]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx - 1], al
movzx ecx, byte [esi + 0x3a]
movzx edi, word [esi + 0x34]
mov eax, dword [esp + 0x10]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx + 1], al
movzx ecx, byte [esi + 0x3b]
mov eax, dword [esp + 0x10]
movzx edi, word [esi + 0x36]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
mov byte [ecx], al
add ecx, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x453900
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4539f2
push str.d:_saasultravncwinvncwinvnc_vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
push eax
push 0x558c50
call fcn.0041c840
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 8
push str.d:_saasultravncwinvncwinvnc_vncencoder.cpp_:_generating_8_bit_palette_data_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov dword [esp + 0x1e], 0xff0100
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], 0x1820
mov dword [esp + 0x22], 0xff00ff
mov word [esp + 0x26], 0x810
push eax
lea eax, [esi + 0x10]
mov byte [esp + 0x2c], 0
push eax
push edi
call dword [0x518cdc]
add esp, 0xc
jmp 0x453976
push 0x400
push eax
push ebx
call fcn.004cd830
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 8
Function at 0x454e10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 8], esi
xor dh, dh
push edi
cmp eax, 8
je 0x454e4a
cmp eax, 0x10
jne 0x454e3c
movzx eax, word [ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x454e9c
mov eax, dword [ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x100
mov edi, 0x5a4fb0
rep stosd dword es:[edi], eax
xor edi, edi
test esi, esi
jle 0x454e92
nop
mov eax, dword [ebp - 4]
mov esi, ebx
mov dl, byte [edi + eax]
movzx ecx, dl
movzx eax, dh
mov ebx, dword [ecx*4 + 0x5a4fb0]
inc ebx
cmp ebx, esi
mov dword [ecx*4 + 0x5a4fb0], ebx
movzx ecx, dl
cmovle ecx, eax
inc edi
cmp ebx, esi
mov dh, cl
cmovle ebx, esi
cmp edi, dword [ebp - 8]
jl 0x454e60
pop edi
pop esi
movzx eax, dh
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.getBgColour:_bpp__d__n
push 2
call fcn.004db37d
add esp, 4
push eax
call fcn.00451470
add esp, 0xc
push 1
call fcn.004dc464
int3
Function at 0x460d40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5d99
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x55800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.004534d0
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.004cbf3d
mov esi, eax
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.004cbf7b
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
add eax, 0x400
mov dword [esi + 8], eax
mov byte [ebp - 4], 0
push 0x80
mov dword [ebx + 0x88], esi
call fcn.004cbf3d
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 4
lea esi, [edi + 0x1c]
push 0x60
push 0
push esi
mov dword [edi], vtable.rdr::xzOutStream.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x10000
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.004cddb0
push dword [edi + 0x10]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 2
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 4
mov dword [edi + 0x28], 2
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [esi], 0x400000
mov dword [edi + 0x38], 0xc0
call fcn.004cbf7b
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [edi + 0x7c], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov byte [ebp - 4], 0
push 0x4004
mov dword [ebx + 0x84], edi
call fcn.004cbf7b
mov dword [ebx + 0x8c], eax
add esp, 0x20
mov dword [ebx + 0x80], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret