joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017b358
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14017b388
xor eax, eax
jmp 0x14017b44b
mov rbp, rbx
cmp word [rax], si
je 0x14017b3ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14017b394
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14017b390
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14017b278
movsxd r14, eax
test eax, eax
jne 0x14017b3eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14017b381
mov rcx, r14
call fcn.14017619c
mov rdi, rax
test rax, rax
jne 0x14017b404
xor ecx, ecx
call fcn.140172f58
jmp 0x14017b3e0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14017b278
test eax, eax
jne 0x14017b435
mov rcx, rdi
call fcn.140172f58
jmp 0x14017b43f
xor ecx, ecx
call fcn.140172f58
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14017b468
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14017b4ef
mov rsi, rbx
cmp word [rax], bp
je 0x14017b4ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14017b498
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14017b494
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14017619c
mov rdi, rax
test rax, rax
je 0x14017b4dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14014b1c0
mov rbp, rdi
xor ecx, ecx
call fcn.140172f58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14017daa4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140156354
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14017db2e
cmp byte [rbp - 0x21], r15b
je 0x14017db29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14017db64
call fcn.140174074
test eax, eax
jne 0x14017db50
cmp byte [rbp - 0x21], r15b
je 0x14017db48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14017db64
cmp byte [rbp - 0x21], r15b
je 0x14017db61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14015b96c
test eax, eax
jne 0x14017dc04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140156354
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14017dba3
cmp byte [rbp - 0x21], r15b
je 0x14017dbd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14017dbd8
call fcn.140174074
test eax, eax
jne 0x14017dbc4
cmp byte [rbp - 0x21], r15b
je 0x14017dbbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14017dbd8
cmp byte [rbp - 0x21], r15b
je 0x14017dbd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14015b96c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14017dc04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14017dc07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14017dc15
mov rcx, rdi
call fcn.140172f58
cmp byte [rbp + 0x3f], r15b
je 0x14017dc24
mov rcx, qword [rbp + 0x27]
call fcn.140172f58
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14017dd2c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14017dd76
call fcn.14015e9bc
mov dword [rax], 0xf
call fcn.14015e99c
mov dword [rax], 0xd
call fcn.140175b64
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148650
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14017dd81
lea eax, [rbx + 1]
jmp 0x14017dd63
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14017dd61
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14017dd63
Function at 0x14017ee10
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14017ee26
mov al, 1
jmp 0x14017ee86
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14017ee37
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14017ee84
mov ecx, dword [rcx + 0x18]
nop
call fcn.14015f22c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14017ee84
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14017ee84
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14017ee84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14017ee86
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001d90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, 1
mov rdi, rcx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [rsp + 0x20], 0
mov edx, ebx
lea r15d, [rbx + 1]
mov ecx, r15d
lea r8d, [rbx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140001ee9
lea r9, [rbp - 0x1c]
mov dword [rbp - 0x1c], ebx
mov r8d, ebx
mov dword [rsp + 0x20], 4
lea edx, [rbx + 5]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140001ee9
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov dword [rbp - 0x20], ebx
lea r8d, [rbx - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x140001efd
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x18], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x16], ax
cmp byte [rdi + 0x4a], bl
je 0x140001e63
and dword [rbp - 0x14], ebx
jmp 0x140001e71
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140001ed5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140001ee9
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
and dword [rbp - 0x20], 0
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140001ee9
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140001efd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005040
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140001f20
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
xor esi, esi
mov rdi, rcx
mov dword [r11 - 0x50], r14d
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, r14d
lea ebx, [rsi + 6]
lea r12d, [r14 + 0x16]
mov r8d, ebx
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140002086
lea r9, [rbp - 0x2c]
mov dword [rbp - 0x2c], r14d
mov r8d, r14d
mov dword [rsp + 0x20], 4
mov edx, ebx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140002086
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], r14d
lea r8d, [r14 - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x14000209a
xor eax, eax
mov word [rbp - 0x26], si
mov dword [rbp - 0x24], esi
mov dword [rbp - 0x10], esi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp byte [rdi + 0x4a], sil
jne 0x140001ffe
mov byte [rbp - 0x11], r14b
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x28], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r14d, 0x1c
mov word [rbp - 0x26], ax
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140002072
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140002086
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], esi
lea r8d, [r14 - 0x21]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140002086
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14000209a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005040
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x1400020c4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp byte [rcx + 0x48], 0
mov rbx, rcx
je 0x1400020e5
xor eax, eax
jmp 0x14000215b
call fcn.1400022c4
mov edi, eax
test eax, eax
jne 0x140002151
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rbx
mov esi, dword [rsp + 0x40]
cmp byte [rbx + 0x4b], dil
je 0x14000210f
call fcn.140001f20
jmp 0x140002114
call fcn.140001d90
mov edi, eax
test eax, eax
jne 0x140002151
lea ebp, [rsi + rsi*2]
mov byte [rbx + 0x48], 1
mov esi, ebp
test ebp, ebp
jle 0x14000213b
mov rcx, rbx
call fcn.140001d10
mov edi, eax
test eax, eax
jne 0x140002151
dec esi
test esi, esi
jg 0x140002127
mov r8d, ebp
lea rdx, [0x1400064ec]
mov ecx, 0x40000434
call sub.webengine4.dll_XspLogEvent
jmp 0x140002159
mov rcx, rbx
call fcn.140002170
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400022c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [r11 + 0x20]
xor ebx, ebx
mov qword [r11 - 0x18], rax
and qword [r11 + 0x20], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000233a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.AllowRemoteConnection
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000234a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002354
cmp dword [rsp + 0x50], ebx
setne al
mov byte [rdi + 0x4a], al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002364
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000236e
mov byte [rdi + 0x4a], 0
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000237c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x20], rax
and qword [rsp + 0x68], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 0xf]
test eax, eax
jne 0x1400023f4
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.SocketTimeout
lea rax, [rsp + 0x58]
mov dword [rsp + 0x60], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140002404
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002414
mov eax, dword [rsp + 0x58]
test eax, eax
cmovle eax, esi
mov dword [rsp + 0x58], eax
mov dword [rdi + 0x20], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002424
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000242b
mov dword [rdi + 0x20], esi
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002438
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
and qword [rsp + 0x38], 0
mov rdi, rcx
mov byte [rcx + 0x4b], 0
call fcn.14000117c
mov ebx, eax
test eax, eax
jne 0x1400025bf
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400024a6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400025bf
xor r9d, r9d
mov byte [rdi + 4], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x1400025af
mov qword [rdi + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov eax, 0xa5b8
mov r9d, 0x20019
mov word [rdi + 0x30], ax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000258e
mov rcx, qword [rsp + 0x38]
lea ebx, [rax + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Port
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000254e
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x14000254e
mov word [rdi + 0x30], cx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UseIPV6
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000258e
cmp dword [rsp + 0x44], eax
je 0x14000258e
mov byte [rdi + 0x4b], 1
call fcn.140004c4c
mov ebx, eax
test eax, eax
jne 0x1400025bf
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400025b8
call fcn.140005578
mov ebx, eax
jmp 0x1400025bf
call sub.webengine4.dll_PerfCounterInitialize
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400025cf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140005040
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000278c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
mov byte [rcx + 0x10], dil
call fcn.14000237c
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x140002780]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400027d1
call fcn.140005578
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002b04
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x140003d74
mov rcx, qword [rcx + 0x30]
jmp 0x140005c28
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140005c54
xor eax, eax
jmp 0x140005cb6
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rcx
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x140005c8e
lea eax, [rdi + 1]
jmp 0x140005cb6
cmp eax, 0xffffffff
je 0x140005c50
mov r9d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
seta dil
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005040
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
lea rax, [fcn.140004238]
mov rsi, rcx
mov qword [rcx + 0x20], rax
xor ebx, ebx
mov ebp, r8d
mov r14, rdx
lea ecx, [rbx + 0x40]
call fcn.1400055dc
test rax, rax
je 0x14000434d
mov rdx, rsi
mov rcx, rax
call fcn.14000341c
mov rdi, rax
jmp 0x140004350
mov rdi, rbx
test rdi, rdi
jne 0x14000435f
mov ebx, 0x8007000e
jmp 0x140004411
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, dword [rsi + 0xd8]
mov rcx, qword [0x1400099c0]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x70], ebx
call fcn.14000489c
lea rcx, [rsi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsi + 0x30]
lea rax, [rdi + 8]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140004411
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x3e5
je 0x140004411
mov edx, dword [rsi + 0xd8]
mov rcx, qword [0x1400099c0]
call fcn.1400048f0
mov qword [rsi + 0x20], rbx
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.WS2_32.dll_recv]
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
mov rcx, rdi
call fcn.140005c14
lea r8, str.Tracker::Read
mov edx, ebx
mov rcx, rsi
call fcn.140004444
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000464c
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r14d, r14d
mov ebx, r8d
mov rdi, rcx
mov r12d, 1
cmp byte [rcx + 0x110], r14b
jne 0x140004882
mov rbp, qword [rsp + 0xb8]
mov byte [rcx + 0x110], r12b
test rbp, rbp
je 0x1400046a0
mov r13d, dword [rbp + 4]
jmp 0x1400046a3
xor r13d, r13d
mov eax, dword [rsp + 0xb0]
add eax, ebx
lea esi, [rax*2 + 0x3e]
movsxd rcx, esi
mov dword [rsp + 0x90], esi
call fcn.1400055a4
mov r15, rax
test rax, rax
je 0x140004872
and qword [rsp + 0x38], r14
mov r9d, ebx
and qword [rsp + 0x30], r14
xor edx, edx
mov r8, qword [rsp + 0x98]
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and qword [rsp + 0x38], r14
mov ecx, esi
and qword [rsp + 0x30], r14
xor edx, edx
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
movsxd rbx, eax
sub ecx, ebx
mov dword [rsp + 0x28], ecx
xor ecx, ecx
lea rax, [r15 + rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [str.Content_Length:]
add ebx, eax
mov r9d, 0xa
movsxd rax, ebx
mov ecx, r13d
add ebx, 0x10
movsxd rsi, ebx
add rsi, r15
movdqu xmmword [rax + r15], xmm0
mov eax, dword [rsp + 0x90]
mov rdx, rsi
sub eax, ebx
movsxd r8, eax
call qword [sym.imp.MSVCR120_CLR0400.dll__itoa_s]
test eax, eax
jne 0x140004872
jmp 0x140004774
add rsi, r12
cmp byte [rsi], r14b
jne 0x140004771
mov dword [rsi], 0xa0d0a0d
lea rbx, [rdi + 0xe8]
sub esi, r15d
mov qword [rdi + 0xf0], r15
add esi, 4
mov dword [rbx], esi
xor esi, esi
mov r15d, esi
test r13d, r13d
jle 0x1400047c1
mov qword [rdi + 0x108], rbp
lock add dword [rbp], r12d
lea rax, [rbp + 8]
mov dword [rdi + 0xf8], r13d
mov qword [rdi + 0x100], rax
lea r12d, [rsi + 2]
lea rax, [0x1400042b4]
mov ecx, 0x40
mov qword [rdi + 0x20], rax
call fcn.1400055dc
test rax, rax
je 0x1400047e9
mov rdx, rdi
mov rcx, rax
call fcn.14000341c
mov r14, rax
test r14, r14
je 0x140004872
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x1400099c0]
call fcn.14000489c
lea rcx, [rdi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rdi + 0x30]
lea rax, [r14 + 8]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r8d, r12d
mov rdx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140004872
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140004872
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x1400099c0]
call fcn.1400048f0
mov qword [rdi + 0x20], rsi
mov rcx, r14
mov rax, qword [r14]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, r14
call fcn.140005c14
mov rcx, r15
call fcn.140005614
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret