joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569c57
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5d7008]
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 dword [ebp - 0x128], edi
cmp dword [edi + 0x278], 0
je 0x438dd3
xor esi, esi
jmp 0x438e21
mov eax, dword [edi + 0x26c]
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x12c], 0x10
push ecx
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [ebp - 0x120]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [edi + 0x270]
test eax, eax
mov edx, str._unavailable_
cmovne edx, eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x1b4]
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.00486920
test eax, eax
je 0x438f90
mov edx, 0x584fd8
lea ecx, [ebp - 0x114]
nop
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x438e60
test al, al
je 0x438e5c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x438e60
add ecx, 2
add edx, 2
test al, al
jne 0x438e40
xor eax, eax
jmp 0x438e65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x438e7b
mov ecx, dword [edi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x1ec]
test eax, eax
je 0x438ec5
cmp esi, 1
jne 0x438ec5
call fcn.00486990
test eax, eax
je 0x438ed8
mov ecx, dword [edi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x1ec]
test eax, eax
jne 0x438ed8
mov ecx, dword [edi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x1d4]
test eax, eax
je 0x438ece
mov ecx, dword [edi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x1cc]
lea esi, [eax - 1]
neg esi
sbb esi, esi
and esi, 2
cmp esi, 2
je 0x438f90
mov eax, 1
jmp 0x438f92
push 0x20
call fcn.0053d643
mov ebx, eax
add esp, 4
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x26c]
call fcn.00489180
mov ecx, dword [ebp - 0x128]
mov edi, eax
mov ecx, dword [ecx + 0x270]
mov edx, dword [ecx]
call dword [edx + 0x1cc]
mov esi, eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x270]
mov edx, dword [ecx]
call dword [edx + 0x1dc]
push edi
mov dword [ebx], vtable.vncAcceptDialog.0
mov dword [ebx + 8], eax
call fcn.0054cea1
add esp, 4
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x130]
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], esi
mov dword [ebx + 0x1c], 0
push eax
push 0
push ebx
push 0x432e20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x128]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x128], 1
je 0x438ece
xor eax, eax
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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x438fb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5d7008]
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]
call dword [eax + 0x1f4]
mov ecx, dword [edi + 0x26c]
test eax, eax
jne 0x4390ca
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_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.0054cea1
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.0054cea1
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x439193
test ebx, ebx
je 0x439193
push ebx
push eax
call fcn.0054cf39
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call fcn.005417da
add esp, 0xc
push ebx
call fcn.005417da
add esp, 4
test esi, esi
jne 0x439193
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncclient.cpp_:_loopback_connection_attempted___client_rejected_n
push esi
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
mov ecx, edi
push str.Local_loop_back_connections_are_disabled.
call fcn.004391b0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
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_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.0054cea1
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.0054cea1
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x439193
test ebx, ebx
je 0x439193
push ebx
push eax
call fcn.0054cf39
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call fcn.005417da
add esp, 0xc
push ebx
call fcn.005417da
add esp, 4
test esi, esi
jne 0x439193
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncclient.cpp_:_loopback_connection_attempted___client_accepted_n
push esi
push 0x5d7d48
call fcn.0041c960
mov eax, dword [edi + 0x274]
add esp, 0xc
mov dword [eax + 0x2a8], 1
mov ecx, dword [esp + 0x3c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x43c010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x104]
mov bl, cl
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, bl
test byte [ebp + eax - 0x104], 1
je 0x43c05d
push ecx
push 1
xor dl, dl
mov cl, bl
call fcn.0042e9f0
add esp, 4
xor dl, dl
mov cl, bl
push 3
call fcn.0042e9f0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x43c070
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5d7008]
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 0x43c0c3
push 0x100
push str.Host_name_unavailable
push 0x100
push edi
call fcn.0054cc69
add esp, 0x10
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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 0x43c0ff
push 0x100
push str.IP_address_unavailable
push 0x100
push edi
call fcn.0054cc69
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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 0x43c1fc
xor ecx, ecx
mov dword [ebp - 0x110], ecx
push esi
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0xa]
jge 0x43c183
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 0x5bf604
push eax
call fcn.004477a0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c151
sub eax, edx
mov ecx, 0xff
sub ecx, eax
lea eax, [ebp - 0xc]
push ecx
push eax
push 0x100
push edi
call fcn.005415c2
movsx eax, word [ebx + 0xa]
inc esi
mov ecx, dword [ebp - 0x110]
add esp, 0x10
cmp esi, eax
jl 0x43c130
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c188
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 0x43c1d7
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c1b0
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push eax
push 0x5bf608
push 0x100
push edi
call fcn.005415c2
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 0x43c121
pop esi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop edi
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x442c30
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a14d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5d7008]
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 + 0x354]
mov ecx, dword [edi + 0x270]
mov edx, dword [edi + 0x278]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x898]
add eax, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x8a0]
add eax, ecx
mov ecx, dword [edi + 0x26c]
add eax, edx
mov edx, dword [edi + 0x274]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x894]
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 + 0x89c]
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 0x442db8
cmp dword [edi + 0x3ac], 0
jne 0x442d17
cmp dword [edi + 0x488], 0
jne 0x442d17
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 + 0x3ac], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [edi + 0x490], 0
je 0x442db8
cmp dword [edi + 0x48c], 0
jne 0x442db8
lea eax, [ebp - 0x28]
push eax
call esi
mov eax, dword [edi + 0x274]
add eax, dword [edi + 0x26c]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [edi + 0x278]
sub eax, dword [edi + 0x270]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp ecx, dword [edi + 0x494]
jne 0x442d6d
cmp eax, dword [edi + 0x498]
je 0x442db8
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 + 0x494], edx
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x498], edx
mov dword [edi + 0x48c], 1
call fcn.00442a30
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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x444f10
Capabilities:
Compute adler32 checksum
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor al, al
mov dword [ebp - 8], 0
xor esi, esi
mov byte [ebp - 1], al
push 0x2000
mov dword [ebp - 0x10], esi
call fcn.0053d681
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
nop dword [eax]
push 0
lea eax, [ebp - 8]
push eax
push 0x2000
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x444f66
test ebx, ebx
je 0x444f6e
mov byte [ebp - 1], 1
jmp 0x444f6e
test ebx, ebx
je 0x445112
xor esi, esi
lea ecx, [esi + 1]
cmp ebx, ecx
jne 0x444f8a
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
inc eax
mov edi, eax
shl edi, 0x10
or edi, eax
jmp 0x4450fb
cmp ebx, 0x10
jae 0x444fc8
test ebx, ebx
je 0x444fb0
movzx eax, byte [edi]
lea edi, [edi + 1]
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x444f93
cmp ecx, 0xfff1
jb 0x444fb0
sub ecx, 0xfff1
mov eax, 0x80078071
mul esi
shr edx, 0xf
mov edi, edx
shl edi, 4
sub edi, edx
add edi, esi
jmp 0x4450f6
cmp ebx, 0x15b0
jb 0x44506e
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp - 0xc], edx
sub ebx, 0x15b0
mov edx, 0x2b6
nop dword [eax]
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add edi, 8
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x444ff0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
sub dword [ebp - 0xc], 1
jne 0x444fe1
test ebx, ebx
je 0x4450f4
cmp ebx, 8
jb 0x4450c1
mov edx, ebx
shr edx, 3
movzx eax, byte [edi]
sub ebx, 8
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add edi, 8
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x445073
test ebx, ebx
je 0x4450d0
movzx eax, byte [edi]
lea edi, [edi + 1]
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x4450c1
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov edi, esi
shl edi, 0x10
or edi, ecx
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esi + eax], edi
add esi, 4
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jmp 0x444f40
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.0053d63e
add esp, 4
or ecx, 0xffffffff
cmp byte [ebp - 1], 0
cmovne esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4451a0
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 + 0x61d], 0
je 0x4451c7
cmp byte [esi + 0x61c], 0
je 0x4451d2
call fcn.004452f0
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 0x4451e4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x2000
jg 0x4451c7
cmp dword [ebp + 0xc], 2
jne 0x445223
push 1
push 0
push edi
push dword [esi + 0x604]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4452a3
add dword [esi + 0x618], edi
mov al, bl
inc dword [esi + 0x610]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x29c]
push edi
push dword [esi + 0x5fc]
call fcn.00489800
cmp eax, 0xffffffff
sete bl
jne 0x4452bc
cmp dword [ebp + 0xc], 0
mov ecx, 0x2000
mov edx, dword [esi + 0x5fc]
mov dword [esp + 0x10], ecx
jne 0x445256
xor bh, bh
jmp 0x445283
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push edx
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x600]
call sym.winvnc.exe_uncompress2
add esp, 0x10
test eax, eax
jne 0x4452a3
mov edx, dword [esi + 0x600]
mov bh, 1
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esi + 0x614]
test bh, bh
push eax
cmovne edi, ecx
push edi
push edx
push dword [esi + 0x604]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4452ca
mov ecx, esi
mov byte [esi + 0x61c], 1
call fcn.004452f0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
mov byte [esi + 0x61c], 1
call fcn.004452f0
mov edi, dword [esi + 0x614]
mov al, bl
add dword [esi + 0x618], edi
inc dword [esi + 0x610]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x445c50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a34d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d7008]
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 + 0x636], 0
je 0x445db6
mov ecx, dword [edi + 0x380]
mov eax, dword [ecx]
call dword [eax + 0x204]
mov ecx, dword [edi + 0x29c]
imul eax, eax, 0x3e8
push eax
call fcn.00489330
cmp byte [edi + 0x635], 0
mov esi, dword [edi + 0x29c]
mov byte [edi + 0x636], 0
mov word [ebp - 0x1c], 0x607
je 0x445ceb
mov word [ebp - 0x1c], 0x707
cmp dword [esi + 8], 0xffffffff
je 0x445d24
cmp byte [esi + 0x1a], 0
jne 0x445d17
cmp byte [esi + 0x18], 0
je 0x445d17
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x445d17
push 1
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 7
push eax
mov ecx, esi
call fcn.00489680
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00489680
mov eax, dword [edi + 0x620]
cmp eax, 0xffffffff
je 0x445d40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x620], 0xffffffff
mov eax, dword [edi + 0x5fc]
test eax, eax
je 0x445d5d
push eax
call fcn.0053d63e
add esp, 4
mov dword [edi + 0x5fc], 0
mov eax, dword [edi + 0x600]
test eax, eax
je 0x445d7a
push eax
call fcn.0053d63e
add esp, 4
mov dword [edi + 0x600], 0
add edi, 0x111
push 0x5c
push edi
call fcn.0054d623
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.00547b10
add esp, 0x14
test eax, eax
jne 0x445db6
push 0x2c
push edi
call fcn.0054d623
add esp, 8
test eax, eax
je 0x445daf
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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x4469f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a46d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x258], 0
jne 0x446b2e
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 + 0x634], 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.0053f2b0
add esp, 0xc
cmp edi, 0x142
ja 0x446b27
mov ecx, dword [esi + 0x29c]
lea eax, [esi + 0x111]
push edi
push eax
call fcn.00489800
test eax, eax
je 0x446b27
mov ecx, dword [esi + 0x380]
mov eax, dword [ecx]
call dword [eax + 0x230]
test eax, eax
je 0x446b27
cmp byte [ebp + 0x1c], 0
je 0x446b27
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x4469a0
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 0x447010
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a4e4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d7008]
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 + 0x2a0], al
test al, al
je 0x447078
mov ecx, dword [esi + 0x2a4]
test ecx, ecx
je 0x44705a
push ecx
call fcn.00442280
mov dword [esi + 0x2a4], 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.0053d643
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x5e7ca0]
mov edi, dword [0x5d9cdc]
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 0x4470da
push 0x30
call fcn.0053d643
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [0x5d9cdc], edi
cmp dword [0x5d9d08], 0
jne 0x44715b
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x85
push eax
mov dword [0x5d9d08], 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 [0x5d9cdc]
test edi, edi
jne 0x447174
push 0x30
call fcn.0053d643
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5d9cdc], edi
mov eax, 1
nop dword [eax]
cmp byte [edi + eax + 0x24], 0
je 0x447191
inc eax
cmp eax, 7
jl 0x447180
xor eax, eax
jmp 0x447199
mov byte [edi + eax + 0x24], 1
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x14], eax
test edi, edi
jne 0x4471b5
push 0x30
call fcn.0053d643
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5d9cdc], edi
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push 0x426420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2a4], 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 0x44da90
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x5d9e64], 0
cmp dword [esi + 0xe934], 0
mov byte [esi + 0xe938], 1
je 0x44db5f
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 0
push 0
push 0x12
push dword [esi + 0xe398]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7d0
push dword [esi + 0xe934]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44db33
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 0
push dword [esi + 0xe934]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xe934]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe400], 0
mov dword [esi + 0xe934], 0
pop esi
ret
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_vncDesktop::_iniwindowthread_proper_closed__n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push dword [esi + 0xe934]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe934], 0
pop esi
ret
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_initwindowthread_already_closed__n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
pop esi
ret