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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [0x5bdff0]
push esi
push edi
mov edi, ecx
cmp dword [eax + 0xa60], 0
mov ecx, dword [edi + 0x26c]
jne 0x43c353
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x40]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [esp + 0x40]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call esi
test eax, eax
mov ecx, str._unavailable_
cmovne ecx, eax
push ecx
call fcn.0052bf02
mov ecx, dword [edi + 0x26c]
add esp, 4
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x24]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [esp + 0x24]
call esi
test eax, eax
mov ecx, str._unavailable_
cmovne ecx, eax
push ecx
call fcn.0052bf02
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x43c428
test eax, eax
je 0x43c428
push eax
push ecx
call fcn.0052bbfc
push dword [esp + 0x18]
mov esi, eax
call fcn.0051cad9
add esp, 0xc
push dword [esp + 0x1c]
call fcn.0051cad9
add esp, 4
test esi, esi
jne 0x43c428
push str.vncClientThread::CheckLoopBack_:_loopback_connection_attempted___client_rejected_n
push esi
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov ecx, edi
push str.Local_loop_back_connections_are_disabled.
call fcn.0043c440
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x40]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [esp + 0x40]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call esi
test eax, eax
mov ecx, str._unavailable_
cmovne ecx, eax
push ecx
call fcn.0052bf02
mov ecx, dword [edi + 0x26c]
add esp, 4
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x24]
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [esp + 0x24]
call esi
test eax, eax
mov ecx, str._unavailable_
cmovne ecx, eax
push ecx
call fcn.0052bf02
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x43c428
test eax, eax
je 0x43c428
push eax
push ecx
call fcn.0052bbfc
push dword [esp + 0x18]
mov esi, eax
call fcn.0051cad9
add esp, 0xc
push dword [esp + 0x14]
call fcn.0051cad9
add esp, 4
test esi, esi
jne 0x43c428
push str.vncClientThread::CheckLoopBack_:_loopback_connection_attempted___client_accepted_n
push esi
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [edi + 0x274]
add esp, 0xc
mov byte [eax + 0x3ac], 1
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x43f590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x100
lea eax, [ebp - 0x104]
mov bl, cl
push 0
push eax
call fcn.0051a780
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, bl
test byte [ebp + eax - 0x104], 1
je 0x43f5f3
push ecx
push 1
xor dl, dl
mov cl, bl
call fcn.00431c40
add esp, 4
xor dl, dl
mov cl, bl
push 3
call fcn.00431c40
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret

Function at 0x43f610
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5b0008]
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 0x43f663
push 0x100
push str.Host_name_unavailable
push 0x100
push edi
call fcn.0052bbb8
add esp, 0x10
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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 0x43f69f
push 0x100
push str.IP_address_unavailable
push 0x100
push edi
call fcn.0052bbb8
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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 0x43f79c
xor ecx, ecx
mov dword [ebp - 0x110], ecx
push esi
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0xa]
jge 0x43f723
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx]
movzx eax, byte [eax + esi]
push eax
lea eax, [ebp - 0xc]
push 0x59d288
push eax
call fcn.0044b1b0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f6f1
sub eax, edx
mov ecx, 0xff
sub ecx, eax
lea eax, [ebp - 0xc]
push ecx
push eax
push 0x100
push edi
call fcn.0051c761
movsx eax, word [ebx + 0xa]
inc esi
mov ecx, dword [ebp - 0x110]
add esp, 0x10
cmp esi, eax
jl 0x43f6d0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f728
sub ecx, edx
mov byte [ecx + edi - 1], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x110]
cmp dword [ecx + eax + 4], 0
je 0x43f777
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f750
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push eax
push 0x59d28c
push 0x100
push edi
call fcn.0051c761
mov eax, dword [ebx + 0xc]
add esp, 0x10
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 0x43f6c1
pop esi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop edi
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4464f0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548cad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b0008]
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 + 0x450]
mov ecx, dword [edi + 0x374]
mov edx, dword [edi + 0x37c]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x89c]
add eax, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x8a4]
add eax, ecx
mov ecx, dword [edi + 0x370]
add eax, edx
mov edx, dword [edi + 0x378]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x898]
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 + 0x8a0]
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 0x446678
cmp dword [edi + 0x4b0], 0
jne 0x4465d7
cmp dword [edi + 0x58c], 0
jne 0x4465d7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x4b0], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [edi + 0x594], 0
je 0x446678
cmp dword [edi + 0x590], 0
jne 0x446678
lea eax, [ebp - 0x28]
push eax
call esi
mov eax, dword [edi + 0x378]
add eax, dword [edi + 0x370]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [edi + 0x37c]
sub eax, dword [edi + 0x374]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp ecx, dword [edi + 0x598]
jne 0x44662d
cmp eax, dword [edi + 0x59c]
je 0x446678
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov esi, eax
mov dword [ebp - 0x34], 0x5e
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x28]
mov dword [edi + 0x598], edx
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x59c], edx
mov dword [edi + 0x590], 1
call fcn.004462f0
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.00518799
mov esp, ebp
pop ebp
ret
Function at 0x448b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
cmp byte [esi + 0x721], 0
je 0x448b67
cmp byte [esi + 0x720], 0
je 0x448b72
call fcn.00448c90
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 0x448b84
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x2000
jg 0x448b67
cmp dword [ebp + 0xc], 2
jne 0x448bc3
push 1
push 0
push edi
push dword [esi + 0x708]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x448c43
add dword [esi + 0x71c], edi
mov al, bl
inc dword [esi + 0x714]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x3a0]
push edi
push dword [esi + 0x700]
call fcn.004842f0
cmp eax, 0xffffffff
sete bl
jne 0x448c5c
cmp dword [ebp + 0xc], 0
mov ecx, 0x2000
mov edx, dword [esi + 0x700]
mov dword [esp + 0x10], ecx
jne 0x448bf6
xor bh, bh
jmp 0x448c23
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push edx
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x704]
call sym.winvnc.exe_uncompress2
add esp, 0x10
test eax, eax
jne 0x448c43
mov edx, dword [esi + 0x704]
mov bh, 1
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esi + 0x718]
test bh, bh
push eax
cmovne edi, ecx
push edi
push edx
push dword [esi + 0x708]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x448c6a
mov ecx, esi
mov byte [esi + 0x720], 1
call fcn.00448c90
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
mov byte [esi + 0x720], 1
call fcn.00448c90
mov edi, dword [esi + 0x718]
mov al, bl
add dword [esi + 0x71c], edi
inc dword [esi + 0x714]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4495f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ead
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x28]
mov ebx, eax
mov dword [ebp - 0x24], 0x66
push ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x73a], 0
je 0x449760
mov eax, dword [0x5bdff0]
mov ecx, dword [edi + 0x3a0]
imul eax, dword [eax + 0x758], 0x3e8
push eax
call fcn.00483e20
cmp byte [edi + 0x739], 0
xorps xmm0, xmm0
mov esi, dword [edi + 0x3a0]
movq qword [ebp - 0x1c], xmm0
mov byte [edi + 0x73a], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x1c], 0x607
je 0x449695
mov word [ebp - 0x1c], 0x707
cmp dword [esi + 8], 0xffffffff
je 0x4496ce
cmp byte [esi + 0x1a], 0
jne 0x4496c1
cmp byte [esi + 0x18], 0
je 0x4496c1
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x4496c1
push 1
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 7
push eax
mov ecx, esi
call fcn.00484170
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00484170
mov eax, dword [edi + 0x724]
cmp eax, 0xffffffff
je 0x4496ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x724], 0xffffffff
mov eax, dword [edi + 0x700]
test eax, eax
je 0x449707
push eax
call fcn.005187a7
add esp, 4
mov dword [edi + 0x700], 0
mov eax, dword [edi + 0x704]
test eax, eax
je 0x449724
push eax
call fcn.005187a7
add esp, 4
mov dword [edi + 0x704], 0
add edi, 0x111
push 0x5c
push edi
call fcn.0052c5db
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.005267e0
add esp, 0x14
test eax, eax
jne 0x449760
push 0x2c
push edi
call fcn.0052c5db
add esp, 8
test eax, eax
je 0x449759
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x44a400
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ffd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x258], 0
jne 0x44a53a
mov eax, dword [esi]
call dword [eax + 0x28]
mov ebx, eax
mov dword [ebp - 0x14], 0x5a
push ebx
mov dword [ebp - 0x18], ebx
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 edi, ecx
shl eax, 8
or edx, eax
cmp edx, 1
push 0x144
sete al
and edi, 0xff0000
mov byte [esi + 0x738], al
mov eax, ecx
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
shl eax, 8
or edi, eax
lea eax, [esi + 0x111]
push 0
push eax
call fcn.0051a780
add esp, 0xc
cmp edi, 0x142
ja 0x44a533
mov ecx, dword [esi + 0x3a0]
lea eax, [esi + 0x111]
push edi
push eax
call fcn.004842f0
test eax, eax
je 0x44a533
mov eax, dword [0x5bdff0]
cmp dword [eax + 0x790], 0
je 0x44a533
cmp byte [ebp + 0x1c], 0
je 0x44a533
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x44a3b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x258], 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 ebx
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
Function at 0x44aa20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549074
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov al, byte [ebp + 8]
mov byte [esi + 0x3a4], al
test al, al
je 0x44aa88
mov ecx, dword [esi + 0x3a8]
test ecx, ecx
je 0x44aa6a
push ecx
call fcn.00445a20
mov dword [esi + 0x3a8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x24
call fcn.005187ac
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x5bb904]
mov edi, dword [0x5b2e30]
mov dword [ebp + 8], eax
mov byte [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], eax
test edi, edi
jne 0x44aaea
push 0x30
call fcn.005187ac
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [0x5b2e30], edi
cmp dword [0x5b2e34], 0
jne 0x44ab6b
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x85
push eax
mov dword [0x5b2e34], eax
call esi
push 0x81
push dword [ebp + 8]
mov dword [edi], eax
call esi
push 0x82
push dword [ebp + 8]
mov dword [edi + 4], eax
call esi
push 0x42e
push dword [ebp + 8]
mov dword [edi + 8], eax
call esi
push 0x84
push dword [ebp + 8]
mov dword [edi + 0xc], eax
call esi
push 0x86
push dword [ebp + 8]
mov dword [edi + 0x10], eax
call esi
push 0x87
push dword [ebp + 8]
mov dword [edi + 0x14], eax
call esi
mov esi, dword [ebp - 0x10]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x24], eax
mov word [edi + 0x28], ax
mov byte [edi + 0x2a], al
mov edi, dword [0x5b2e30]
test edi, edi
jne 0x44ab84
push 0x30
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5b2e30], edi
mov eax, 1
nop dword [eax]
cmp byte [edi + eax + 0x24], 0
je 0x44aba1
inc eax
cmp eax, 7
jl 0x44ab90
xor eax, eax
jmp 0x44aba9
mov byte [edi + eax + 0x24], 1
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x14], eax
test edi, edi
jne 0x44abc5
push 0x30
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5b2e30], edi
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push 0x427790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3a8], 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 4
Function at 0x451620
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x5b318c], 0
cmp dword [esi + 0xe938], 0
mov byte [esi + 0xe93c], 1
je 0x4516ef
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0
push 0
push 0x12
push dword [esi + 0xe39c]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7d0
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4516c3
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe404], 0
mov dword [esi + 0xe938], 0
pop esi
ret
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::_iniwindowthread_proper_closed__n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe938], 0
pop esi
ret
push str.vncDesktop::StopInitWindowthread_:_initwindowthread_already_closed__n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
pop esi
ret
Function at 0x451710
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5b0008]
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.vncDesktop::StartInitWindowthread_:_StartInitWindowthread__n
push 9
push 0x5b0d48
mov esi, eax
mov byte [edi + 0xe93c], 0
call fcn.0041ccb0
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 0x4518ca
mov ecx, str.Default
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4517a0
test dl, dl
je 0x45179c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4517a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x451780
xor eax, eax
jmp 0x4517a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4518b6
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
cmp dword [edi + 0xe938], 0
jne 0x45188a
push dword [edi + 0xe398]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5bdff0]
cmp dword [eax + 0x788], 0
je 0x4517ed
call fcn.00432000
lea eax, [edi + 0xe39c]
push eax
push 0
push edi
push 0x4518e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [edi + 0xe398]
mov dword [edi + 0xe938], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x451883
push str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [edi + 0xe938]
add esp, 0xc
test eax, eax
je 0x45186b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xe938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xe404], 0
mov dword [edi + 0xe938], 0
xor al, al
mov byte [edi + 0xe93c], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
jmp 0x45188f
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov al, 1
mov byte [edi + 0xe93c], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x459220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.vncEncoder::GetRemotePalette_:_remote_palette_data_requested_n
push 9
push 0x5b0d48
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.0041ccb0
add esp, 0xc
cmp word [esi + 0x38], 0
je 0x459390
cmp word [esi + 0x34], 0
je 0x459390
cmp word [esi + 0x36], 0
je 0x459390
cmp byte [esi + 0x13], 0
jne 0x45928a
mov ecx, esi
call fcn.00459420
test eax, eax
je 0x459390
cmp byte [esi + 0x23], 0
jne 0x459390
cmp byte [esi + 0x13], 0
lea edi, [esi + 0xc]
je 0x4593a6
push str.vncEncoder::GetRemotePalette_:_generating_BGR233_palette_data_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edi]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x4592ce
push eax
call fcn.0051cad9
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0051e703
mov ecx, eax
add esp, 4
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x459372
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x459372
inc ecx
mov dword [esp + 0x14], ecx
nop word [eax + 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 0x459300
mov ebx, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4593f2
push str.vncEncoder::GetRemotePalette_:_failed_to_obtain_colour_map_data__n
push esi
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
push str.vncEncoder::GetRemotePalette_:_generating_8_bit_palette_data_n
push 9
push 0x5b0d48
call fcn.0041ccb0
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 [0x56aac0]
add esp, 0xc
jmp 0x459376
mov edi, ebx
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 8