joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140240c80
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.Oculus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14055af68], rax
test rax, rax
jne 0x140240ca7
mov eax, 1
add rsp, 0x28
ret
lea rdx, str.OculusInit
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusSetup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af60], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusShutdown
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af78], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusStereo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af80], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusMono
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af88], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.Oculus2D
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af38], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusReset
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af30], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusBeginFrame
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af40], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusEndFrame
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af50], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, str.OculusGetTracking
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af58], rax
test rax, rax
je 0x140240e46
mov rcx, qword [0x14055af68]
lea rdx, [0x1403135f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055af48], rax
test rax, rax
je 0x140240e46
lea r9, [0x14037de80]
lea r8, [0x14037de88]
lea rdx, [0x14037de7c]
lea rcx, [0x14037de84]
call rbx
test eax, eax
je 0x140240e6d
mov rcx, qword [0x14055af68]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x20]
mov qword [0x14055af68], 0
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140243470
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.OpenVR.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14055a1b0], rax
test rax, rax
jne 0x140243497
mov eax, 1
add rsp, 0x28
ret
lea rdx, str.OpenVRInit
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVRSetup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a1a8], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVRShutdown
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a1d0], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVR3D
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a190], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVR2D
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a188], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVRReset
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a1a0], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVRBeginFrame
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a1b8], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVREndFrame
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a1c8], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVRGetTracking
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a1c0], rax
test rax, rax
je 0x140243612
mov rcx, qword [0x14055a1b0]
lea rdx, str.OpenVRDeinit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14055a198], rax
test rax, rax
je 0x140243612
lea r9, [0x14037df30]
lea r8, [0x14037df38]
lea rdx, [0x14037df2c]
lea rcx, [0x14037df34]
call rbx
test eax, eax
je 0x140243639
mov rcx, qword [0x14055a1b0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x20]
mov qword [0x14055a1b0], 0
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140251900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 4]
imul ecx, dword [rbx]
shl ecx, 2
call fcn.14014a890
mov rdx, rax
mov qword [rbx + 8], rax
test rax, rax
jne 0x14025192e
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x14]
sub ecx, 1
je 0x14025197e
sub ecx, 1
je 0x14025196b
sub ecx, 1
je 0x140251958
cmp ecx, 1
jne 0x140251923
mov r8d, dword [rbx]
xor r9d, r9d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140254010
mov r8d, dword [rbx]
xor r9d, r9d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140253930
mov r8d, dword [rbx]
xor r9d, r9d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1402530e0
mov r8d, dword [rbx]
xor r9d, r9d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140252a60
Function at 0x140254a00
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
cmp dword [rcx + 0x24], 0xcc
mov rdi, rcx
je 0x140254a2e
mov rax, qword [rcx + 0x220]
call qword [rax]
mov dword [rdi + 0xa8], ebp
mov dword [rdi + 0x24], 0xcc
mov rax, qword [rdi + 0x220]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
cmp dword [rax + 0x10], ebp
je 0x140254ae3
nop dword [rax + rax]
mov ecx, dword [rdi + 0xa8]
cmp ecx, dword [rdi + 0x8c]
jae 0x140254ab3
nop
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140254a82
mov dword [rax + 8], ecx
mov rcx, qword [rdi + 0x10]
mov eax, dword [rdi + 0x8c]
mov dword [rcx + 0xc], eax
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [rax]
mov rax, qword [rdi + 0x228]
mov ebx, dword [rdi + 0xa8]
lea r8, [rdi + 0xa8]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rdi + 0xa8]
cmp ecx, ebx
je 0x140254b0d
cmp ecx, dword [rdi + 0x8c]
jb 0x140254a60
mov rax, qword [rdi + 0x220]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov r11, qword [rdi + 0x220]
mov rcx, rdi
call qword [r11]
mov dword [rdi + 0xa8], ebp
mov rax, qword [rdi + 0x220]
cmp dword [rax + 0x10], ebp
jne 0x140254a50
cmp dword [rdi + 0x5c], ebp
mov eax, 1
setne bpl
add ebp, 0xcd
mov dword [rdi + 0x24], ebp
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x140254af8
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x140254c26
call fcn.1402599d0
cmp dword [rbx + 0x58], 0
je 0x140254c1f
mov dword [rbx + 0x24], 0xcf
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
mov eax, dword [rbx + 0x24]
cmp eax, 0xcb
jne 0x140254cb2
mov rax, qword [rbx + 0x240]
cmp dword [rax + 0x20], 0
je 0x140254c99
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140254c4f
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140254c91
cmp eax, 2
je 0x140254c99
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140254c41
cmp eax, 3
je 0x140254c77
cmp eax, 1
jne 0x140254c41
inc dword [rcx + 8]
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xc]
cmp dword [rcx + 8], eax
jl 0x140254c41
mov eax, dword [rbx + 0x1a4]
add dword [rcx + 0xc], eax
jmp 0x140254c41
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0xac]
mov rcx, rbx
mov dword [rbx + 0xb4], eax
add rsp, 0x20
pop rbx
jmp 0x140254a00
cmp eax, 0xcc
je 0x140254cd4
mov rax, qword [rbx]
mov dword [rax + 0x28], reloc.WS2_32.dll_sendto
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140254a00
Function at 0x140254bf0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
cmp dword [rcx + 0x24], 0xcc
mov rdi, rcx
je 0x140254a2e
mov rax, qword [rcx + 0x220]
call qword [rax]
mov dword [rdi + 0xa8], ebp
mov dword [rdi + 0x24], 0xcc
mov rax, qword [rdi + 0x220]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
cmp dword [rax + 0x10], ebp
je 0x140254ae3
nop dword [rax + rax]
mov ecx, dword [rdi + 0xa8]
cmp ecx, dword [rdi + 0x8c]
jae 0x140254ab3
nop
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140254a82
mov dword [rax + 8], ecx
mov rcx, qword [rdi + 0x10]
mov eax, dword [rdi + 0x8c]
mov dword [rcx + 0xc], eax
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [rax]
mov rax, qword [rdi + 0x228]
mov ebx, dword [rdi + 0xa8]
lea r8, [rdi + 0xa8]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rdi + 0xa8]
cmp ecx, ebx
je 0x140254b0d
cmp ecx, dword [rdi + 0x8c]
jb 0x140254a60
mov rax, qword [rdi + 0x220]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov r11, qword [rdi + 0x220]
mov rcx, rdi
call qword [r11]
mov dword [rdi + 0xa8], ebp
mov rax, qword [rdi + 0x220]
cmp dword [rax + 0x10], ebp
jne 0x140254a50
cmp dword [rdi + 0x5c], ebp
mov eax, 1
setne bpl
add ebp, 0xcd
mov dword [rdi + 0x24], ebp
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x140254af8
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x140254c26
call fcn.1402599d0
cmp dword [rbx + 0x58], 0
je 0x140254c1f
mov dword [rbx + 0x24], 0xcf
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
mov eax, dword [rbx + 0x24]
cmp eax, 0xcb
jne 0x140254cb2
mov rax, qword [rbx + 0x240]
cmp dword [rax + 0x20], 0
je 0x140254c99
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140254c4f
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140254c91
cmp eax, 2
je 0x140254c99
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140254c41
cmp eax, 3
je 0x140254c77
cmp eax, 1
jne 0x140254c41
inc dword [rcx + 8]
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xc]
cmp dword [rcx + 8], eax
jl 0x140254c41
mov eax, dword [rbx + 0x1a4]
add dword [rcx + 0xc], eax
jmp 0x140254c41
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0xac]
mov rcx, rbx
mov dword [rbx + 0xb4], eax
add rsp, 0x20
pop rbx
jmp 0x140254a00
cmp eax, 0xcc
je 0x140254cd4
mov rax, qword [rbx]
mov dword [rax + 0x28], reloc.WS2_32.dll_sendto
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140254a00
Function at 0x140259020
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
mov qword [rcx + 8], rsi
call fcn.14025a880
mov edx, 0x98
mov rcx, rbx
mov dword [rsp + 0x38], eax
call fcn.14025a6a0
mov rdi, rax
test rax, rax
jne 0x140259077
mov rcx, rbx
call fcn.140221150
mov r11, qword [rbx]
mov dword [r11 + 0x28], 0x36
mov rcx, qword [rbx]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
mov dword [rdi + 0x5c], 0x3b9aca00
lea rax, [fcn.1402582c0]
lea rcx, str.JPEGMEM
mov qword [rdi], rax
lea rax, [fcn.140258440]
mov qword [rdi + 8], rax
lea rax, [fcn.140258520]
mov qword [rdi + 0x10], rax
lea rax, [fcn.140258610]
mov qword [rdi + 0x18], rax
lea rax, [0x140258720]
mov qword [rdi + 0x20], rax
lea rax, [0x1402587c0]
mov qword [rdi + 0x28], rax
lea rax, [0x140258860]
mov qword [rdi + 0x30], rax
lea rax, [0x140258bc0]
mov qword [rdi + 0x38], rax
lea rax, [0x140258d20]
mov qword [rdi + 0x40], rax
lea rax, [fcn.140258e80]
mov qword [rdi + 0x48], rax
lea rax, [0x140258fd0]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x58], eax
mov qword [rdi + 0x68], rsi
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x88], rsi
mov dword [rdi + 0x90], 0x98
mov qword [rbx + 8], rdi
call sub.MSVCR90.dll_getenv
test rax, rax
je 0x140259182
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call sub.MSVCR90.dll_sscanf
test eax, eax
jle 0x140259182
movzx eax, byte [rsp + 0x30]
cmp al, 0x6d
je 0x14025916f
cmp al, 0x4d
je 0x14025916f
mov eax, dword [rsp + 0x38]
jmp 0x140259179
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
mov dword [rdi + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140261bc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0x70], 1
mov rbp, qword [rcx + 0x270]
mov rsi, rcx
mov qword [rsp + 0x68], rbp
jne 0x140261bee
mov ebx, 0x1fe
mov dword [rbp + 0x38], 1
jmp 0x140261bf3
xor ebx, ebx
mov dword [rbp + 0x38], ebx
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 0x90]
lea r8d, [rbx + 0x100]
mov edx, 1
call qword [rax + recvfrom]
mov r14d, dword [rbp + 0x28]
xor edi, edi
movsxd r8, ebx
mov qword [rbp + 0x30], rax
cmp dword [rsi + 0x90], edi
mov qword [rsp + 0x60], r8
jle 0x140261d2d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
lea r15, [rbp + 0x3c]
xor r13d, r13d
mov ecx, dword [r15]
mov eax, r14d
cdq
idiv ecx
mov r14d, eax
test r8, r8
je 0x140261c5e
mov rax, qword [rbp + 0x30]
add qword [rax + r13], 0xff
mov rax, qword [rbp + 0x30]
lea ebp, [rcx - 1]
xor r8d, r8d
mov rbx, qword [r13 + rax]
mov edx, edi
mov rcx, rsi
mov r9d, ebp
xor r10d, r10d
call fcn.1402619b0
xor r11d, r11d
xor r12d, r12d
mov r9d, eax
cmp r11d, r9d
jle 0x140261cab
nop dword [rax + rax]
inc r10d
mov r9d, ebp
mov edx, edi
mov r8d, r10d
mov rcx, rsi
call fcn.1402619b0
cmp r11d, eax
mov r9d, eax
jg 0x140261c90
movzx eax, r10b
inc r12
inc r11d
imul r14b
cmp r12, 0xff
mov byte [r12 + rbx - 1], al
jle 0x140261c86
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140261d03
mov ecx, 1
lea rdx, [rbx - 1]
nop dword [rax]
movzx eax, byte [rbx]
inc rcx
dec rdx
cmp rcx, 0xff
mov byte [rdx + 1], al
movzx eax, byte [rbx + 0xff]
mov byte [rbx + rcx + 0xfe], al
jle 0x140261ce0
mov rbp, qword [rsp + 0x68]
inc edi
add r15, 4
add r13, 8
cmp edi, dword [rsi + 0x90]
jl 0x140261c41
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14026d1a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov dword [rsp + 0x38], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x14026d1d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x20
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14026d210
mov ecx, 0x106
call fcn.14026c090
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret

Function at 0x14026d2d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rdi, rdx
test r8d, r8d
jns 0x14026d2f2
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edx, ecx
lea rcx, [rsp + 0x58]
call fcn.14026c060
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x50], 0x1c
movsxd rcx, dword [rax + 0xc]
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov rdx, rdi
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14026d390
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, r8d
mov rsi, rdx
test r8d, r8d
jns 0x14026d3b8
xor eax, eax
jmp 0x14026d451
mov edx, ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x70], rbx
call fcn.14026c060
mov rbx, qword [rsp + 0x30]
mov eax, dword [rbx + 8]
cmp eax, 0x13
je 0x14026d412
cmp eax, 0x19
je 0x14026d412
cmp word [rbx + 0x38], 2
jne 0x14026d3f7
lea rdx, [rsp + 0x38]
lea rcx, [rbx + 0x38]
call fcn.14026d340
mov eax, 0x1c
jmp 0x14026d42b
lea rcx, [rsp + 0x38]
lea rdx, [rbx + 0x38]
mov r8d, 0x28
call sub.MSVCR90.dll_memcpy
mov eax, 0x1c
jmp 0x14026d42b
lea rcx, [rsp + 0x38]
lea rdx, [rbx + 0x38]
mov r8d, 0x28
call sub.MSVCR90.dll_memcpy
mov eax, recvfrom
movsxd rcx, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14026d470
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x480
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
xor ebp, ebp
lea rsi, [0x14037e060]
xor edx, edx
mov rcx, rsi
mov r8d, 0x190
mov qword [rsp + 0x40], rbp
mov dword [0x14037e1f0], ebp
call sub.MSVCR90.dll_memset
xor r11d, r11d
mov r12d, 2
mov qword [rsp + 0x48], r11
lea r8, [rsp + 0x4c]
lea rdx, str.127.0.0.1
mov ecx, r12d
mov qword [rsp + 0x50], r11
mov word [rsp + 0x48], r12w
call qword [sym.imp.WS2_32.dll_inet_pton]
mov dword [rsp + 0x30], ebp
lea r8, [rsp + 0x60]
lea edx, [rbp + 0x1c]
lea rcx, [rsp + 0x48]
mov r9d, 0x401
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_getnameinfo]
lea r9, [rsp + 0x40]
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14026d5e4
mov qword [rsp + 0x4a8], rdi
nop dword [rax]
cmp dword [0x14037e1f0], 0xa
jge 0x14026d5d7
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x20]
mov dword [rsp + 0x30], r12d
lea r8, [rsp + 0x60]
mov r9d, 0x401
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14026d5ca
movsxd rax, dword [0x14037e1f0]
lea rdi, [rax + rax*4]
mov eax, dword [rbx + 4]
cmp eax, r12d
je 0x14026d5a8
cmp eax, 0x17
jne 0x14026d5bf
mov word [rsi + rdi*8], ax
mov ecx, dword [rbx + 4]
lea r8, [rsi + rdi*8 + 8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_pton]
jmp 0x14026d5bf
mov word [rsi + rdi*8], ax
mov ecx, dword [rbx + 4]
lea r8, [rsi + rdi*8 + 4]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_pton]
inc dword [0x14037e1f0]
mov byte [rsi + rdi*8 + 0x24], 1
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14026d540
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x4a8]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [0x14037e1f0], 0
mov rsi, qword [rsp + 0x4a0]
mov rbp, qword [rsp + 0x498]
mov rbx, qword [rsp + 0x490]
jne 0x14026d63a
lea r8, [0x14037e064]
lea rdx, str.127.0.0.1
mov ecx, r12d
mov word [0x14037e060], r12w
call qword [sym.imp.WS2_32.dll_inet_pton]
inc dword [0x14037e1f0]
mov byte [0x14037e084], 1
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x480
pop r12
ret

Function at 0x14026d660
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14026d6bb
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14026d6bb
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x1d8
ret
call fcn.14026d470
mov al, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x1d8
ret
Function at 0x14026d930
Capabilities:
Convert ip address from string

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x90
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [r11 - 0x68]
mov rsi, rdx
lea r9, [r11 - 0x64]
mov qword [r11 - 0x78], rax
lea rax, [r11 - 0x5c]
lea r8, [r11 - 0x58]
mov qword [r11 - 0x80], rax
lea rax, [r11 - 0x60]
lea rdx, str._lu._lu._lu._lu:_lu
xor r12d, r12d
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov dword [r11 - 0x68], r12d
call sub.MSVCR90.dll_sscanf
mov edi, dword [rsp + 0x50]
mov r11d, eax
cmp edi, 0xff
ja 0x14026da0a
mov edx, dword [rsp + 0x44]
cmp edx, 0xff
ja 0x14026da0a
mov eax, dword [rsp + 0x48]
cmp eax, 0xff
ja 0x14026da0a
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xff
ja 0x14026da0a
cmp dword [rsp + 0x40], 0xffff
ja 0x14026da0a
cmp r11d, 4
jl 0x14026da0a
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
mov eax, 2
shl edi, 8
mov word [rsi], ax
or ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [rsp + 0x40]
mov dword [rsi + 4], eax
call qword [sym.imp.WS2_32.dll_htons]
mov byte [rsi + 0x24], 1
mov word [rsi + 2], ax
mov al, 1
jmp 0x14026daa2
cmp byte [rbx], 0x5b
mov qword [rsp + 0xc0], rbp
mov dword [rsp + 0x40], r12d
jne 0x14026dad9
mov edx, 0x5d
mov rcx, rbx
call sub.MSVCR90.dll_strchr
mov rbp, rax
test rax, rax
je 0x14026da76
mov ecx, eax
lea rdx, [rbx + 1]
sub ecx, ebx
dec ecx
movsxd rdi, ecx
lea rcx, [rsp + 0x58]
mov r8, rdi
call sub.MSVCR90.dll_strncpy
mov byte [rsp + rdi + 0x58], r12b
cmp byte [rbp + 1], 0x3a
lea rdi, [rbp + 1]
jne 0x14026dac6
lea rcx, [rbp + 2]
call sub.MSVCR90.dll_atol
mov dword [rsp + 0x40], eax
cmp eax, 0xffff
jbe 0x14026daef
mov eax, 2
mov ecx, 0x10b
mov dword [rsi + 4], 0xffffffff
mov word [rsi], ax
mov word [rsi + 2], r12w
call fcn.14026c090
mov byte [rsi + 0x24], r12b
xor al, al
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140291ec0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r12
pop rdi
pop rsi
ret
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x14026daef
jmp 0x14026da76
lea rcx, [rsp + 0x58]
sub rcx, rbx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x14026dae1
mov edi, reloc.WS2_32.dll_socket
lea r8, [rsi + 8]
lea rdx, [rsp + 0x58]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14026da76
movzx ecx, word [rsp + 0x40]
mov word [rsi], di
call qword [sym.imp.WS2_32.dll_htons]
mov byte [rsi + 0x24], 1
mov word [rsi + 2], ax
mov al, 1
jmp 0x14026da9a