joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4777a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x100
lea edi, [esi + 0x75e]
push edi
push 9
push dword [0x5e1df4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0xffffffffffffffff
push 0x5c9914
push 0x80
push edi
call fcn.00540d4e
mov ecx, dword [esi]
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 0xd0]
test eax, eax
je 0x477829
push ecx
lea eax, [ebp - 0x68]
push eax
call fcn.00476f30
push 0x64
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00531690
push 0xffffffffffffffff
lea eax, [ebp - 0x230]
push eax
push 0x80
push edi
call fcn.00540d4e
add esp, 0x1c
jmp 0x47783e
push 0xffffffffffffffff
push str.Not_listening
push 0x80
push edi
call fcn.00540d4e
add esp, 0x10
push 0x200
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0052d9b0
push 0x100
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.0052d9b0
add esp, 0x18
lea eax, [ebp - 0x168]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4778cc
lea ecx, [ebp - 0x168]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477886
sub ecx, edx
lea eax, [ebp - 0x168]
push ecx
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00531690
push 0xffffffffffffffff
push 0x5c9914
push 0x80
push edi
call fcn.00540d4e
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
push 0x80
push edi
call fcn.00540d4e
add esp, 0x2c
mov eax, dword [0x5e44e8]
mov edx, str.___service__
push 0xffffffffffffffff
mov ecx, str.___application__
cmp dword [eax + 0xe20], 0
cmovne ecx, edx
push ecx
push 0x80
push edi
call fcn.00540d4e
push 0xffffffffffffffff
push 0x5d9a10
push 0x80
push edi
call fcn.00540d4e
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x477c40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0053193e
add esp, 0xc
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x477e62
mov edx, dword [ebp - 0x118]
xor edi, edi
mov esi, dword [ebp - 0x11c]
xor eax, eax
test edx, edx
je 0x477cdb
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], edi
je 0x477cd5
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x477cb0
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
lea eax, [eax + eax*2]
mov edi, dword [esi + eax*4]
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test edi, edi
je 0x477e62
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x477e62
push 1
push dword [ebp - 0x10c]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x477e56
lea eax, [ebp - 0x114]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 1
push eax
push 0x1a
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor eax, eax
mov dword [ebp - 0x170], 0
mov word [ebp - 0x132], ax
xorps xmm0, xmm0
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x174]
movlpd qword [ebp - 0x168], xmm0
push eax
push 0
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x160], xmm0
push 0x420
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x114]
movlpd qword [ebp - 0x158], xmm0
movlpd qword [ebp - 0x150], xmm0
movlpd qword [ebp - 0x142], xmm0
movlpd qword [ebp - 0x13a], xmm0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x174], 0x44
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x16c], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x477e28
push dword [ebp - 0x12c]
call esi
push dword [ebp - 0x130]
call esi
push dword [ebp - 0x110]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x10c]
call esi
push dword [ebp - 0x114]
call esi
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x477e80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00426310
test eax, eax
je 0x477eda
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x477eec
mov byte [esp + 0x13], 0
jmp 0x478056
push 0x104
lea eax, [esp + 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.0053193e
add esp, 0xc
cmp esi, 0x8050
jne 0x477f2a
push str.__openhomepage
jmp 0x477f91
cmp esi, 0x804e
jne 0x477f39
push str.__openforum
jmp 0x477f91
cmp esi, 0x804f
jne 0x477f48
push str.__opengithub
jmp 0x477f91
cmp esi, 0x8051
jne 0x477f57
push str.__openmastodon
jmp 0x477f91
cmp esi, 0x804d
jne 0x477f66
push str.__openfacebook
jmp 0x477f91
cmp esi, 0x8054
jne 0x477f75
push str.__openxtwitter
jmp 0x477f91
cmp esi, 0x8053
jne 0x477f84
push str.__openreddit
jmp 0x477f91
cmp esi, 0x8052
jne 0x477fa3
push str.__openopenhub
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.00531998
add esp, 0xc
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
call fcn.0052d9b0
add esp, 0xc
mov dword [esp + 0x38], str.Winsta0Default
mov eax, 5
mov dword [esp + 0x30], 0x44
mov word [esp + 0x60], ax
xorps xmm0, xmm0
lea eax, [esp + 0x14]
movaps xmmword [esp + 0x20], xmm0
push 0
push edi
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x84]
je 0x47800e
push dword [esp + 0x20]
push 0x408
jmp 0x478012
push 0
push 8
push 0
push 0
push 0
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x478033
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47803e
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47804d
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x478069
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x478076
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x28c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x47bdb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x98], 0x94
push esi
lea eax, [ebp - 0x98]
push eax
mov dword [ebx], vtable.VNC_OSVersion.0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0xb], 0
mov dword [ebx + 6], 0
mov byte [ebx + 0xa], 0
mov word [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete al
mov byte [ebx + 0x11], al
mov eax, dword [ebp - 0x88]
sub eax, 1
je 0x47beb4
sub eax, 1
jne 0x47beb8
mov eax, dword [ebp - 0x94]
cmp eax, 6
jne 0x47be7f
mov eax, dword [ebp - 0x90]
cmp eax, 2
jae 0x47be81
cmp eax, 1
jne 0x47be75
mov byte [ebx + 7], al
jmp 0x47beb8
test eax, eax
jne 0x47beb4
mov byte [ebx + 8], 1
jmp 0x47beb8
jbe 0x47be87
mov byte [ebx + 6], 1
jmp 0x47beb8
cmp eax, 5
jne 0x47beb4
mov eax, dword [ebp - 0x90]
cmp eax, 2
je 0x47beaa
cmp eax, 1
je 0x47beaa
test eax, eax
jne 0x47beb4
mov byte [ebx + 0xa], 1
mov byte [ebx + 0xe], 1
jmp 0x47beb8
mov byte [ebx + 9], 1
mov byte [ebx + 0xe], 1
jmp 0x47beb8
mov byte [ebx + 0xd], 1
cmp byte [ebx + 0xe], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sete al
cmp byte [ebx + 6], 0
mov byte [ebx + 0xf], al
je 0x47bf6e
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47bf1d
push str.RtlGetVersion
push eax
call esi
mov esi, eax
test esi, esi
je 0x47bf1d
push 0x110
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.0052d9b0
add esp, 0xc
mov dword [ebp - 0x1ac], 0x114
lea eax, [ebp - 0x1ac]
push eax
call esi
test eax, eax
je 0x47bf33
push 0x114
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.0052d9b0
add esp, 0xc
mov ecx, 0x45
lea edi, [ebp - 0x2c4]
lea esi, [ebp - 0x1ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2c0], 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
jne 0x47bf6e
cmp dword [ebp - 0x2b8], 0x4a61
mov byte [ebx + 6], 0
mov byte [ebx + 4], 1
jb 0x47bf6e
mov byte [ebx + 5], 1
cmp dword [ebx + 0x14], 0
jne 0x47bf9e
push 0x5ca0ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x47bf9e
push 0x5ca0f8
push eax
call esi
push str.DwmEnableComposition
push dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x482f40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x2c8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x482fe7
push dword [eax + 0xe408]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x482fe1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x482fe1
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482f85
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x482fe0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x482fe0
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482fb8
sub ecx, dword [ebp + 8]
push ebx
lea eax, [ecx + 1]
push eax
push edx
call fcn.0053193e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4848c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2f4], 0
je 0x484928
cmp byte [0x5d960f], 0
jne 0x484928
push str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
push 9
push 0x5d6df8
call fcn.0041d510
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
je 0x48490a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x484928
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x5e1d5c]
push 0x4848a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x484930
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2f4], 0
je 0x484b0a
lea ebx, [esi + 0x300]
nop
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484955
sub ecx, edx
je 0x484b0a
cmp byte [0x5d960f], al
jne 0x484b0a
push str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push 0x23ac
call fcn.0052b79c
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.00485a20
mov edi, eax
mov dword [esi + 0x84], edi
test edi, edi
je 0x484a8e
mov ecx, dword [0x5e44e8]
cmp dword [ecx + 0xe64], 0
je 0x4849cb
push dword [esi + 0x2fc]
mov ecx, edi
push ebx
call fcn.00485bd0
jmp 0x484a26
cmp dword [edi + 0x10], 0xffffffff
mov dword [esp + 0xc], 1
je 0x4849e0
mov ecx, edi
call fcn.00486220
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
je 0x484a14
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x484a14
mov ecx, edi
call fcn.00487050
push dword [esi + 0x2fc]
mov ecx, dword [esi + 0x84]
push ebx
call fcn.004865a0
test eax, eax
setne al
test al, al
jne 0x484a9d
push str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
push 9
push 0x5d6df8
call fcn.0041d510
mov ecx, dword [esi + 0x84]
add esp, 0xc
test ecx, ecx
je 0x484a53
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x2f4], 0
mov dword [esi + 0x84], 0
je 0x484b0a
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484a70
sub ecx, edx
je 0x484a8e
cmp byte [0x5d960f], al
jne 0x484a8e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x2f4], 0
jne 0x484950
jmp 0x484b0a
lea edi, [esi + 0x3ff]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484aa8
sub ecx, edx
je 0x484add
mov ecx, dword [esi + 0x84]
push 0xfa
push edi
call fcn.00487520
mov ecx, dword [esi + 0x84]
push 0
call fcn.004871e0
push 1
push dword [esi + 0x2fc]
push ebx
push edi
jmp 0x484ae8
push 1
push dword [esi + 0x2fc]
push ebx
push 0
mov eax, dword [0x5e44e8]
xor ecx, ecx
mov edx, dword [esi]
push 0
push ecx
cmp dword [eax + 0xa64], ecx
push 1
sete cl
push ecx
push dword [esi + 0x84]
mov ecx, esi
call dword [edx]
push str.vncServer::actualRetryThread_:_leaving_reconnectThread...._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d04
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d60c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x5e44e8]
lea edi, [ebx + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x23b0], eax
cmp dword [ecx + 0xe64], 0
je 0x4857ad
push dword [ecx + 0xa5c]
mov ecx, edi
push eax
call fcn.00485fb0
test eax, eax
jne 0x4857ea
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 8
mov ecx, edi
call fcn.004861c0
test eax, eax
je 0x485797
mov eax, dword [0x5e44e8]
mov ecx, edi
push dword [eax + 0xa5c]
push dword [ebx + 0x23b0]
call fcn.00486510
test eax, eax
je 0x485797
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x485797
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x485797
mov esi, dword [ebx + 0x23b0]
push 8
call fcn.0052b79c
mov dword [ebp + 0xc], eax
mov dword [eax], esi
mov dword [eax + 4], 0x42d160
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x42d2c0
push 0
push 0
call fcn.0053a902
add esp, 0x1c
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4858d0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4858de
push ecx
push eax
call fcn.0052b397
add esp, 8
test eax, eax
jne 0x4858e5
xorps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
push 0x60
movlpd qword [ebp - 0x14], xmm0
call fcn.0052b79c
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
lea ecx, [esi + 4]
mov dword [ebp - 4], 2
push ecx
mov dword [esi], vtable.omni_thread.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 0xc
mov ecx, esi
call fcn.004aad30
push dword [ebp + 8]
mov dword [esi + 0x28], 0
mov ecx, esi
mov dword [esi + 0x2c], 0
mov dword [esi], vtable.vncSockConnectThread.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x23b4], esi
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebp - 0x10], 0
call fcn.0052b222
push 1
call fcn.0052b222
push eax
call fcn.0052b1f5
int3

Function at 0x4859a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4859e9
mov dword [esi], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 8]
mov ecx, dword [esp + 0x19c]
mov word [0x604a2c], ax
mov eax, esi
mov dword [esi], 0xffffffff
pop esi
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x485bd0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x2c]
push edi
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x10], 1
push eax
push dword [ebp + 0xc]
movaps xmmword [esp + 0x1c], xmm0
mov edi, ecx
movaps xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x24], 1
call fcn.0053a6ea
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x485d1f
mov esi, dword [esp + 8]
test esi, esi
je 0x485d3b
mov eax, dword [esi + 4]
mov ecx, dword [sym.imp.WS2_32.dll_socket]
cmp eax, 2
jne 0x485cb4
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call ecx
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x485d0a
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, edi
call fcn.00486eb0
push dword [esi + 0x10]
push dword [esi + 0x18]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x485d34
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0x17
jne 0x485d0a
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call ecx
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x485d0a
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, edi
call fcn.00486f80
push dword [esi + 0x10]
push dword [esi + 0x18]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x485d5f
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc], 0xffffffff
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x485c44
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.00486eb0
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x485d1f
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.00486f80
jmp 0x485d3b
Function at 0x485fb0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
push 0xa
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], 1
push eax
push dword [ebp + 8]
mov esi, ecx
call fcn.0053a6ea
add esp, 0xc
mov dword [esp + 0x34], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x20], 1
movlpd qword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x1c]
movlpd qword [esp + 0x30], xmm0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 5
push eax
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4861a7
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test edi, edi
je 0x486171
mov edx, dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
nop dword [eax]
cmp eax, 0x40
je 0x48616d
mov eax, dword [edi + 4]
cmp eax, 2
je 0x48606f
cmp eax, 0x17
jne 0x48615e
jmp 0x4860f6
push dword [edi + 0xc]
push dword [edi + 8]
push 2
call edx
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x486158
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, esi
call fcn.00486eb0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004863e0
mov ecx, dword [esi + 8]
test eax, eax
jne 0x4860c4
push ecx
call ebx
mov dword [esi + 8], 0xffffffff
jmp 0x486158
cmp ecx, 0xffffffff
je 0x4860b5
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4860e6
mov ecx, dword [esi + 8]
push ecx
call ebx
mov dword [esi + 8], 0xffffffff
jmp 0x486158
cmp dword [edi + 4], 0x17
jne 0x486196
mov edx, dword [sym.imp.WS2_32.dll_socket]
push dword [edi + 0xc]
push dword [edi + 8]
push 0x17
call edx
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x486158
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, esi
call fcn.00486f80
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00486470
mov ecx, dword [esi + 0xc]
test eax, eax
je 0x48614e
cmp ecx, 0xffffffff
je 0x48614e
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x486196
mov ecx, dword [esi + 0xc]
push ecx
call ebx
mov dword [esi + 0xc], 0xffffffff
mov edx, dword [sym.imp.WS2_32.dll_socket]
mov eax, dword [esp + 0xc]
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x486050
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x4861a7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
mov edx, dword [sym.imp.WS2_32.dll_socket]
inc eax
mov dword [esp + 0xc], eax
jmp 0x486162
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8