joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078430
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
cmp byte [rcx + 9], 0
mov rsi, rdx
mov rbp, rcx
je 0x140078454
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [rbp + 0xa], 0
mov rbx, 0xffffffffffffffff
je 0x1400784a6
mov qword [rsp + 0x48], rdi
mov rdi, rbx
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140078470
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rdi, qword [rsp + 0x48]
cmp byte [rbp + 8], 0
je 0x1400784d8
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400784d8
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400784b5
mov r8, rbx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret

Function at 0x140078660
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9d, dword [0x14022a7a8]
lea r8, str.RestoreDesktop_:_Restorewallpaper__i_n
mov edx, 8
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov r9d, dword [0x14022a7a8]
test r9d, r9d
je 0x14007875a
mov eax, dword [0x14022a7ac]
lea r8, str.RestoreDesktop_:_Restorewallpaper__i__i_n
mov edx, 8
mov dword [rsp + 0x20], eax
lea rcx, vtable.VNCLog.0
call fcn.140018d00
cmp dword [0x14022a7ac], 0
je 0x1400786d1
call fcn.140021da0
cmp eax, 0x40047
jb 0x1400786d1
mov cl, 1
call fcn.140021e40
xor edx, edx
lea r8, [0x14022a830]
mov r9d, 2
lea ecx, [rdx + 0x14]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
lea rax, [rsp + 0x40]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktop
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007875a
lea rcx, [0x14022ac30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140078722
mov dword [rsp + 0x28], eax
lea rdx, str.WallpaperStyle
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x14022a7a8], 0
add rsp, 0x38
ret
Function at 0x140078e60
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x698], 0
mov rbx, rcx
je 0x140078f0c
xor edx, edx
lea rcx, str.SYSTEM
nop
movzx eax, byte [rbx + rdx + 0x698]
inc rdx
cmp al, byte [rcx + rdx - 1]
jne 0x140078e9d
cmp rdx, 7
jne 0x140078e80
add rsp, 0x20
pop rbx
ret
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x140078ec3
inc dword [rbx + 0x7c8]
mov byte [rbx + 0x7c4], al
add rsp, 0x20
pop rbx
ret
cmp byte [rbx + 0x7c4], 0
jne case.default.0x140078f05
mov rcx, rbx
call fcn.140078f20
mov rcx, rbx
call fcn.140079500
lea r8, [rbx + 0x7ce]
mov edx, 0x80
lea rcx, [rbx + 0x2b8]
call fcn.14015b9d4
lea rdx, [rbx + 0x290]
mov ecx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add rsp, 0x20
pop rbx
ret
imul eax, dword [rax], 0x67006e
xor al, 0
push rbp
add byte [rsi], ch
invalid
Function at 0x140086f10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
lea rbp, [rcx + 0x548]
mov rbx, rcx
mov rcx, rbp
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x140086fdc
mov rcx, qword [rcx + 0xe4b8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140086fd6
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140086fd6
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140086f73
inc rdx
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140086fd1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140086fd1
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne case.default.0x140086fee
lea rdx, [rbx + 1]
mov r8, rdi
mov rcx, rax
call fcn.140150800
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rsi, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140087af0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov qword [rsp + 0x60], r9
mov r14, r8
mov qword [rsp + 0x58], r8
mov r13, rdx
mov rbx, rcx
lea r12, [rcx + 0x548]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], gethostname
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x108]
test rax, rax
jne 0x140087cd3
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
jne 0x140087b98
lea r8, str.vncServer::GetScreenInfo_:_Failed_rootdc__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
xor ebx, ebx
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x140087ce4
mov edx, 8
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
mov word [rsp + 0x40], di
mov edx, 0xa
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov word [rsp + 0x42], ax
movzx r8d, ax
movzx edx, di
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
test rax, rax
jne 0x140087bf5
xor ebx, ebx
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140087ce4
xor edx, edx
mov r8d, 0x430
lea rcx, [rsp + 0x70]
call fcn.14014a5c0
mov dword [rsp + 0x74], 0x28
xor ebx, ebx
mov word [rbp - 0x7e], bx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
test rax, rax
jne 0x140087c36
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
jmp 0x140087cb8
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x140087ca4
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x140087ca4
movzx eax, byte [rbp - 0x7e]
mov ecx, eax
mov edx, 0x20
cmp al, 0x18
cmove ecx, edx
mov byte [rsp + 0x44], cl
jmp 0x140087caf
movzx edi, bx
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x44], bl
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r14, qword [rsp + 0x58]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140087ce4
movups xmm0, xmmword [rax + 0xe460]
movups xmmword [rsp + 0x40], xmm0
movzx edi, word [rsp + 0x40]
movzx eax, di
mov dword [r13], eax
mov rdx, qword [rsp + 0x40]
mov rax, rdx
shr rax, 0x10
movzx eax, ax
mov dword [r14], eax
shr rdx, 0x20
movzx eax, dl
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140088c90
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x594], 0
mov rbx, rcx
je 0x140088d19
cmp byte [0x14021fa63], 0
jne 0x140088d19
lea r8, str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x140088ce8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140088d19
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [0x140227dd0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140088c70]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xb0], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140088d20
Capabilities:
Print debug messages
Set socket configuration
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [rcx + 0x594], 0
mov rbx, rcx
je 0x140088f82
mov qword [rsp + 0x80], rsi
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], rdi
lea rdi, [rcx + 0x5a0]
mov qword [rsp + 0x50], r14
xor r14d, r14d
nop dword [rax]
mov rax, rsi
inc rax
cmp byte [rdi + rax], r14b
jne 0x140088d63
test rax, rax
je 0x140088f70
cmp byte [0x14021fa63], r14b
jne 0x140088f70
lea r8, str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov ecx, 0x23f8
call fcn.140147b18
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.14008a420
mov qword [rbx + 0xc8], rax
test rax, rax
je 0x140088e48
mov rcx, rax
call fcn.14008a5c0
mov r8d, dword [rbx + 0x59c]
mov rdx, rdi
mov rcx, qword [rbx + 0xc8]
call fcn.14008a720
test eax, eax
jne 0x140088e5a
lea r8, str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
lea edx, [rax + 9]
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140088e0f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0xc8], r14
cmp dword [rbx + 0x594], r14d
je 0x140088f70
mov rax, rsi
inc rax
cmp byte [rdi + rax], r14b
jne 0x140088e26
test rax, rax
je 0x140088e48
cmp byte [0x14021fa63], r14b
jne 0x140088e48
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x594], r14d
jne 0x140088d60
jmp 0x140088f70
mov qword [rsp + 0x78], rbp
lea rbp, [rbx + 0x69f]
inc rsi
cmp byte [rsi + rbp], r14b
jne 0x140088e66
test rsi, rsi
je 0x140088f1a
mov rcx, qword [rbx + 0xc8]
mov r8d, 0xfa
mov rdx, rbp
call fcn.14008ab60
cmp byte [0x14026aca8], 2
mov rsi, qword [rbx + 0xc8]
jb 0x140088eeb
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], r14d
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140088eeb
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [0x14022a710]
mov r8d, r14d
mov dword [rsp + 0x48], 1
cmp dword [rax + 0xa64], r14d
mov eax, dword [rbx + 0x59c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbp
jmp 0x140088f47
mov rax, qword [0x14022a710]
mov r8d, r14d
mov dword [rsp + 0x48], 1
cmp dword [rax + 0xa64], r14d
mov eax, dword [rbx + 0x59c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
mov r10, qword [rbx]
mov r9d, 1
mov rdx, qword [rbx + 0xc8]
sete r8b
mov qword [rsp + 0x28], r14
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [r10]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
lea r8, str.vncServer::actualRetryThread_:_leaving_reconnectThread...._n
mov edx, 9
lea rcx, vtable.VNCLog.0
add rsp, 0x60
pop rbx
jmp fcn.140018d00
Function at 0x14008a180
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, rdx
mov rdi, rcx
mov dword [rcx + 0x2400], r8d
add rcx, 8
call fcn.14008a5c0
test eax, eax
je 0x14008a2cd
mov rax, qword [0x14022a710]
mov r8d, dword [rax + 0xa5c]
mov edx, dword [rdi + 0x2400]
lea rcx, [rdi + 8]
call fcn.14008a690
test eax, eax
je 0x14008a2cd
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14008a2cd
mov edx, 5
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14008a2cd
mov ebx, dword [rdi + 0x2400]
mov ecx, reloc.WS2_32.dll_recv
call fcn.140147b18
mov dword [rax], ebx
lea rcx, [0x14002a000]
mov qword [rax + 8], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14002a170]
xor edx, edx
xor ecx, ecx
call fcn.14015b1d0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14008a2e5
cmp dword [rsp + 0x38], r14d
je 0x14008a2f5
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1401475d4
test eax, eax
jne 0x14008a300
mov ecx, 0xb0
call fcn.140147b18
mov rbx, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.omni_thread.0
mov qword [rbx], rax
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rbx
call fcn.1400b2120
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
lea rax, vtable.vncSockConnectThread.0
mov qword [rbx], rax
mov qword [rdi + 0x2408], rbx
mov rax, qword [rbx]
mov r8, rbp
lea rdx, [rdi + 8]
mov rcx, rbx
call qword [rax + 0x18]
jmp 0x14008a2cf
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov dword [rsp + 0x38], r14d
mov ecx, 6
call fcn.140147424
nop
mov ecx, 1
call fcn.140147424
int3
mov ecx, eax
call fcn.1401473e8
int3

Function at 0x14008a5c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
mov dword [rsp + 0x40], 1
je 0x14008a62e
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rcx, qword [rbx + 0x10]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x10], 0xffffffffffffffff
test rcx, rcx
je 0x14008a62e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov qword [rbx + 0x28], rax
mov qword [rbx + 8], rax
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x14008a680
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14008a680
mov rcx, rbx
call fcn.14008a8d0
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14008a720
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x14008a7c1
xorps xmm0, xmm0
mov eax, 2
movups xmmword [rsp + 0x20], xmm0
mov rcx, rdx
mov word [rsp + 0x20], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
jne 0x14008a78b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14008a7c1
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008a7c1
mov eax, dword [rcx]
mov dword [rsp + 0x24], eax
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14008a7c1
mov rcx, rbx
call fcn.14008a8d0
mov eax, 0xffffffff
jmp 0x14008a7c3
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x14008a7e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14008a8b5
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 4
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 0x10]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x48], 0x8000
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008a8b5
mov ecx, 0x23f8
call fcn.140147b18
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.14008a420
mov rbx, rax
test rax, rax
je 0x14008a89e
mov rcx, rax
mov qword [rax + 0x10], rdi
call fcn.14008a8d0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14008a8d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebx, 0xffffffff
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
lea edx, [rbx + 7]
lea r8d, [rbx + 2]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x50]
xor esi, esi
mov dword [rsp + 0x20], 4
test eax, eax
mov edx, 0xffff
cmovne ebx, esi
lea r8d, [rsi + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14008a94e
mov eax, esi
jmp 0x14008a9bc
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x68], rax
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x70], eax
mov edx, 0x98000004
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0x2710
mov dword [rsp + 0x60], 0x3e8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14008a9e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14026aca8], 2
mov rbx, rcx
jb 0x14008aa4f
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edx
mov r8d, 0x1006
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14008aa4f
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14008aa4f
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14008aa60
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14026aca8], 2
mov rbx, rcx
jae 0x14008aa7a
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edx
mov r8d, 0x1006
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14008aa72
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
sbb eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14008aae0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14026aca8], 2
mov rbx, rcx
jae 0x14008aafa
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], edx
mov r8d, 0x1006
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14008aaf2
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14008af60
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x14008af8f
xor eax, eax
jmp 0x14008b129
test r8d, r8d
je 0x14008afd4
xor r14d, r14d
cmp byte [rcx + 0x30], r14b
je 0x14008b045
mov r15, qword [rcx + 0x20]
cmp byte [r15 + 0x39], r14b
je 0x14008b045
cmp byte [rcx + 0xb8], r14b
je 0x14008afde
mov r8, rbp
movsxd rcx, dword [rcx + 0xbc]
add rcx, qword [rbx + 0xb0]
call fcn.140149f10
add dword [rbx + 0xbc], ebp
mov eax, 0xffffffff
jmp 0x14008b129
mov dword [rsp + 0x50], r14d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14008afff
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, ebp
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, rax
jmp 0x14008b041
lea rdi, [r15 + 0x320]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], WSAGetLastError
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x50]
mov edx, ebp
mov rcx, rsi
call qword [r15 + 0x2d8]
mov rsi, rax
mov qword [r15 + 0x310], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [rsp + 0x50]
mov edi, ebp
mov ecx, dword [rbx + 0x23ec]
lea eax, [rcx + rbp]
cmp eax, dword [rbx + 0x23f0]
jb 0x14008b103
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
mov ecx, dword [rbx + 0x23ec]
mov r8d, dword [rbx + 0x23f0]
sub r8d, ecx
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140149f10
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23f0]
mov rcx, qword [rbx + 0x10]
call fcn.14008b380
test al, al
jne 0x14008b0a7
mov eax, r14d
jmp 0x14008b120
mov edx, dword [rbx + 0x23f0]
mov edi, dword [rbx + 0x23ec]
mov ecx, edx
sub ecx, edi
add rsi, rcx
sub edi, edx
add edi, ebp
mov dword [rbx + 0x23ec], r14d
mov ecx, r14d
cmp edi, edx
jb 0x14008b103
nop dword [rax]
mov r8d, edx
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.14008b380
test al, al
je 0x14008b0a2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 0x23f0]
add rsi, rax
sub edi, eax
mov edx, eax
cmp edi, eax
jae 0x14008b0d0
mov ecx, dword [rbx + 0x23ec]
mov r8d, edi
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140149f10
add dword [rbx + 0x23ec], edi
mov eax, ebp
cmp eax, ebp
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret