joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4758b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e210
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xa1
jne 0x4759a5
push dword [0x6179b8]
mov dword [ebp - 0x2b4], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x475a3c
lea eax, [ebp - 0x2b4]
push eax
push dword [0x6179b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x2b4]
push 0
push 0xa
push 0xc0de30da
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xa1
push dword [ebp - 0x2b8]
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov dword [ebx], eax
push dword [0x6179b8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x2b4]
cmp eax, ecx
jne 0x475a1c
push 0
push dword [0x6179b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x4759a1
push 0xc0de30da
push dword [eax + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov al, 1
jmp 0x4759ff
cmp eax, 0x113
jne 0x4759fd
cmp dword [ebp + 0x10], 0xc0de30da
jne 0x4759fd
push 0
push 0x615a7c
push 0x615a60
push 0
mov dword [ebp - 4], 1
call fcn.004bc250
push eax
call fcn.0054763f
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [esi + 0xb4]
call fcn.004bb6b0
mov ecx, esi
call fcn.004bbe20
mov dword [ebx], 0
mov al, 1
jmp 0x4759ff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret 0x14
push 0x1b3
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswinwindow.cxx
push str.thrPumper__this
lea ecx, [ebp - 0x160]
call fcn.00465850
push eax
call fcn.004658d0
push 0x1ac
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswinwindow.cxx
push str._thrPumper
lea ecx, [ebp - 0x2b0]
call fcn.00465850
push eax
call fcn.004658d0
int3
Function at 0x475ee0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x475f29
cmp dword [esi + 0x10], 0
jne 0x475ef6
cmp byte [esi + 8], 0
je 0x475f29
push 0
push esi
push eax
call fcn.004771b0
add esp, 0xc
push 0xfffffffffffffffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, 0x4773b0
jne 0x475f22
push dword [esi + 0x14]
push 0xfffffffffffffffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 0x14], 0
push edi
push dword [0x6179b8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x475f56
push dword [0x6179b8]
call edi
cmp dword [eax], esi
jne 0x475f56
push dword [0x6179b8]
call edi
mov dword [eax], 0
mov eax, dword [esi + 4]
pop edi
test eax, eax
je 0x475f6b
cmp byte [esi + 8], 0
je 0x475f6b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
mov byte [esi + 8], 0
pop esi
ret

Function at 0x476610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e370
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
je 0x476669
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00544c6b
add esp, 4
mov esi, eax
jmp 0x47666b
xor esi, esi
push 0
call fcn.0054454b
xor eax, eax
mov dword [ebp - 0x10], esi
mov word [esi + edi*2 - 2], ax
add esp, 4
mov word [esi], ax
push edi
push esi
push dword [ebx + 4]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x1c]
call fcn.0046c430
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4766bc
push 0x5bad80
push dword [ebp - 0x18]
call fcn.00448e80
add esp, 8
mov eax, dword [ebp - 0x18]
lea ecx, [ebx + 0xc]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0045f890
mov edi, dword [eax]
cmp byte [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
je 0x4766f8
test eax, eax
je 0x4766f8
push dword [ebp - 0x1c]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x18]
add esp, 8
push eax
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, esi
mov dword [ebp - 4], 3
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476720
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
call fcn.0045fa10
push esi
call fcn.0054454b
push 0
call fcn.0054454b
add esp, 0x10
mov eax, edi
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 0x477010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e47f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
je 0x477087
call fcn.004755b0
mov esi, eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov edi, dword [esi]
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.00474300
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [esi + 4]
sub ecx, eax
cmp ecx, 1
jb 0x477199
inc eax
mov dword [esi + 4], eax
mov dword [edi + 4], edx
mov dword [ebx], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
call fcn.004755b0
mov ecx, eax
call fcn.00477330
call fcn.00477c40
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [eax]
mov edi, dword [edi]
push dword [0x6179bc]
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
jne 0x477101
push 8
call fcn.0054450d
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4770eb
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00475150
mov dword [esi], eax
jmp 0x4770ed
xor esi, esi
push esi
push dword [0x6179bc]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x6179bc]
call ebx
cmp edi, dword [eax]
je 0x477075
mov edx, dword [edi + 8]
mov dword [ebp + 0xc], edx
mov esi, dword [edx]
mov ecx, esi
mov eax, dword [esi]
cmp eax, esi
je 0x47714b
mov edi, edx
mov edx, dword [ebp + 8]
cmp dword [eax + 8], edx
lea ecx, [eax + 8]
jne 0x477137
lea ebx, [ebp + 8]
cmp ecx, ebx
jne 0x477175
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x477126
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, ecx
je 0x4770a4
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push 0xc
push esi
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edx + 4]
call fcn.0054453d
add esp, 8
jmp 0x4770a4
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
push 0xc
push eax
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 4]
call fcn.0054453d
mov edx, dword [ebp + 8]
add esp, 8
mov eax, ebx
jmp 0x477139
push str.list_T__too_long
call fcn.00543d40
int3
Function at 0x477c40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e50f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x6179bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x477cb9
push 8
call fcn.0054450d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x477caa
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00475150
mov dword [esi], eax
jmp 0x477cac
xor esi, esi
push esi
push dword [0x6179bc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x6179bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x477ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e53f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x6179c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x477d55
push 8
call fcn.0054450d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x477d46
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00475100
mov dword [esi], eax
jmp 0x477d48
xor esi, esi
push esi
push dword [0x6179c4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x6179c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4802d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f117
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x613384]
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 dword [ebp - 0x164], edi
mov dword [ebp - 0x170], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [ebp - 4], 2
call fcn.004bf810
push 0x80
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0
push eax
mov ecx, edi
mov dword [ebp - 0x168], 0
call fcn.0044ee30
push 0x80
push 0
push dword [edi + 4]
call fcn.00546c70
mov eax, dword [edi]
add esp, 0xc
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
push eax
push dword [edi + 4]
push dword [ebp + 8]
je 0x48039e
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x480471
jmp 0x4803b8
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4803b8
call sub.KERNEL32.dll_GetLastError
push eax
push str.getpeername
jmp 0x48047c
mov esi, dword [ebp - 0x164]
mov ecx, esi
cmp esi, dword [edi]
mov edx, dword [edi + 4]
cmovge ecx, dword [edi]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x168], edx
push esi
cmovg eax, ecx
mov ecx, edi
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0044ee30
mov eax, dword [edi + 4]
movzx eax, word [eax]
cmp eax, 2
je 0x48041e
cmp eax, 0x17
je 0x48041e
push 0x2b
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseioipinfo.cxx
push str.family____2____family_____23_
lea ecx, [ebp - 0x160]
call fcn.00465850
push 0x5f46d8
lea eax, [ebp - 0x160]
jmp 0x480492
mov eax, dword [ebp - 0x164]
cmp eax, 0x10
je 0x480452
cmp eax, 0x1c
je 0x480452
push 0x2c
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseioipinfo.cxx
push str.slen__sizeof_sockaddr_in_____slen___sizeof_sockaddr_in6__
lea ecx, [ebp - 0x160]
call fcn.00465850
push 0x5f46d8
lea eax, [ebp - 0x160]
jmp 0x480492
mov eax, edi
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.00544c5a
mov esp, ebp
pop ebp
ret 8
call sub.KERNEL32.dll_GetLastError
push eax
push str.getsockname
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x481a50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c]
lea eax, [ebp - 0x408]
push edi
mov edi, dword [ebp + 8]
push 0x401
push 0
push eax
mov dword [ebp - 0x820], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x818], 0
call fcn.00546c70
push 0x401
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00546c70
push 0x400
push edi
lea eax, [ebp - 0x408]
push 0x401
lea ebx, [ebp - 0x80c]
mov dword [ebp - 0x81c], eax
push eax
mov dword [ebp - 0x810], ebx
call fcn.0056b286
add esp, 0x28
nop dword [eax]
nop dword [eax + eax]
push dword [ebp - 0x820]
mov edi, esi
mov dword [esi], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x481c49
cmp word [ebx + 8], 2
jne 0x481b3e
cmp word [ebx + 0xa], 4
jne 0x481b3e
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x481b3e
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00481ca0
mov dword [edi], eax
test eax, eax
je 0x481bee
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x481b18
push 0x400
push dword [ebx]
mov ebx, dword [ebp - 0x810]
push 0x401
push ebx
call fcn.0056b286
mov eax, dword [ebp - 0x814]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x481bf8
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481b70
sub ecx, edx
je case.0x481c59.11003
mov edi, dword [ebp - 0x81c]
mov ecx, ebx
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x481bb0
test dl, dl
je 0x481bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x481bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x481b90
xor eax, eax
jmp 0x481bb5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x481c59.11003
mov esi, dword [ebp - 0x818]
inc esi
mov dword [ebp - 0x818], esi
cmp esi, 0x10
je case.0x481c59.11003
mov esi, dword [ebp - 0x814]
mov eax, edi
mov dword [ebp - 0x81c], ebx
mov ebx, eax
mov dword [ebp - 0x810], ebx
jmp 0x481ae0
mov esi, 8
jmp 0x481c73
cmp dword [ebp + 0x18], esi
je 0x481c73
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481c02
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.0056b291
mov edi, eax
add esp, 8
test edi, edi
je 0x481c2f
push dword [ebp - 0x810]
push ebx
push edi
call fcn.0056b0a7
add esp, 0xc
mov ecx, dword [ebp - 0x814]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
mov ecx, 8
cmp dword [eax + 0x14], esi
cmove esi, ecx
jmp 0x481c73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x481c59.11001
jmp dword [eax*4 + 0x481c88]
mov esi, 0x2afa
jmp 0x481c73
mov esi, 0x2afb
jmp 0x481c73
mov esi, 0x2af9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544c5a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x481f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f304
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00463020
mov dword [ebp - 4], 0
mov dword [esi + 0x18], vtable.rdr::OutStream.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], vtable.rdr::Serializable.0
mov dword [esi], vtable.rdr::MemIoStream.1.0
mov dword [esi + 0x18], vtable.rdr::MemIoStream.2.0
mov dword [esi + 0x24], vtable.rdr::MemIoStream.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x48]
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], eax
mov dword [eax], eax
mov eax, dword [ebp + 0x10]
mov edi, 0x800
test eax, eax
mov byte [ebp - 4], 4
mov dword [esi + 0x54], 1
cmovns edi, eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov byte [esi + 0x64], 0
test edi, edi
je 0x482089
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x48207c
dec eax
add eax, edi
cdq
idiv edi
inc eax
mov dword [esi + 0x54], eax
jmp 0x48208b
mov eax, accept
cdq
idiv edi
mov dword [esi + 0x54], eax
jmp 0x48208b
xor edi, edi
push edi
call fcn.00544c6b
mov dword [ebp - 0x18], eax
lea ecx, [esi + 0x28]
add eax, edi
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00482a20
mov ecx, dword [esi + 0x34]
and ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov ecx, dword [esi + 0x34]
and ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x34]
and ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485ef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f930
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push str.__s:__s_r_n
push eax
call fcn.0040c750
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00481da0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
je 0x485f89
test ecx, ecx
je 0x485f89
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x1c]
add esp, 8
push ecx
call fcn.0054454b
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0054454b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x488250
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fe56
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x613384]
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 al, byte [ebp + 8]
mov byte [ebp - 0x2a1], al
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x1c], 0
test eax, eax
je 0x48829d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x2b8]
push 0xffffffffffffffff
push str..pipe_
mov dword [ebp - 4], 0
mov esi, dword [eax + 4]
call fcn.004491e0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x2b8]
call fcn.004491e0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 0x2a8], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 1
call fcn.00481da0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x28]
add eax, 0xc
push eax
movzx eax, byte [ebp - 0x2a1]
push 0
push ecx
push ecx
push 0xff
shl eax, 0x13
push 0
or eax, 0x40000003
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x1c], eax
test ecx, ecx
je 0x488359
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2a8], 0
mov ecx, dword [ebp - 0x2ac]
mov byte [ebp - 4], 2
je 0x488388
test ecx, ecx
je 0x488388
mov eax, dword [ebp - 0x2b0]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x2ac]
add esp, 8
push ecx
call fcn.0054454b
push dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0054454b
mov ecx, dword [edi + 0x1c]
add esp, 8
cmp ecx, 0xffffffff
je 0x488434
lea eax, [edi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x488410
call esi
cmp eax, 0x217
je 0x488405
cmp eax, 0x3e5
jne 0x488410
mov byte [edi + 0x24], 1
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.00544c5a
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4883e8
call esi
push eax
push 0x5bc8a8
lea ecx, [ebp - 0x2a0]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x2a0]
push eax
call fcn.005461fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x492370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push 0x118
push 0
lea eax, [ebx + 4]
push eax
call fcn.00546c70
add esp, 0xc
mov dword [ebx], 0x11c
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x492437
cmp dword [ebx + 4], 6
ja 0x4923be
jne 0x492413
cmp dword [ebx + 8], 2
ja 0x4923be
jne 0x492413
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.00546c70
add esp, 0xc
call fcn.004924c0
cmp dword [eax], 0
je 0x492413
call fcn.004924c0
mov eax, dword [eax]
test eax, eax
je 0x492454
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jne 0x492413
push esi
push edi
mov ecx, 0x47
lea esi, [ebp - 0x120]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp dword [ebx + 4], 5
ja 0x492420
jne 0x49247a
mov eax, dword [ebx + 8]
test eax, eax
cmp dword [ebx + 0x10], 2
jne 0x492497
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push 0x1e
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswinosversion.cxx
push str.gotVersion
lea ecx, [ebp - 0x270]
call fcn.00465850
push eax
call fcn.004658d0
push str.RtlGetVersion
push 0x5bcbb4
lea ecx, [ebp - 0x264]
call fcn.00439540
push 0x5f9fd8
lea eax, [ebp - 0x264]
push eax
call fcn.005461fc
push 0x2f
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswinosversion.cxx
push str.atLeastVersion_5_0_
lea ecx, [ebp - 0x270]
call fcn.00465850
push eax
call fcn.004658d0
push 0x30
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswinosversion.cxx
push str.dwPlatformId__2
lea ecx, [ebp - 0x270]
call fcn.00465850
push eax
call fcn.004658d0
int3