joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073470
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 0x1400734a0
xor eax, eax
jmp 0x140073563
mov rbp, rbx
cmp word [rax], si
je 0x1400734c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400734ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400734a8
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.140073390
movsxd r14, eax
test eax, eax
jne 0x140073503
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140073499
mov rcx, r14
call fcn.14006db84
mov rdi, rax
test rax, rax
jne 0x14007351c
xor ecx, ecx
call fcn.14006be18
jmp 0x1400734f8
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.140073390
test eax, eax
jne 0x14007354d
mov rcx, rdi
call fcn.14006be18
jmp 0x140073557
xor ecx, ecx
call fcn.14006be18
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 0x140076834
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006a930
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400768d5
cmp ebx, dword [rsp + 0x30]
je 0x1400768ce
test esi, esi
je 0x1400768ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400768a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400768b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140076893
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400768ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400768d7
mov eax, 1
jmp 0x1400768d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007b264
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.14005631c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007b2ee
cmp byte [rbp - 0x21], r15b
je 0x14007b2e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007b324
call fcn.14006c11c
test eax, eax
jne 0x14007b310
cmp byte [rbp - 0x21], r15b
je 0x14007b308
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007b324
cmp byte [rbp - 0x21], r15b
je 0x14007b321
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.1400619bc
test eax, eax
jne 0x14007b3c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14005631c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007b363
cmp byte [rbp - 0x21], r15b
je 0x14007b398
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007b398
call fcn.14006c11c
test eax, eax
jne 0x14007b384
cmp byte [rbp - 0x21], r15b
je 0x14007b37d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007b398
cmp byte [rbp - 0x21], r15b
je 0x14007b395
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.1400619bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007b3c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007b3c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007b3d5
mov rcx, rdi
call fcn.14006be18
cmp byte [rbp + 0x3f], r15b
je 0x14007b3e4
mov rcx, qword [rbp + 0x27]
call fcn.14006be18
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 0x14007c5d0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14006a514
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006a514
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007c720
cmp rax, 0xffffffffffffffff
je 0x14007c720
xor edi, edi
test rbp, rbp
jle 0x14007c6cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006bda0
mov rbx, rax
test rax, rax
jne 0x14007c658
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007c6c1
mov edx, 0x8000
mov ecx, r14d
call fcn.140064368
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14006d478
cmp eax, 0xffffffff
je 0x14007c6a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007c668
mov edx, r15d
mov ecx, r14d
call fcn.140064368
jmp 0x14007c6c1
cmp byte [rsi + 0x38], dil
je 0x14007c6b8
cmp dword [rsi + 0x34], 5
jne 0x14007c6b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007c6c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006be18
jmp 0x14007c734
jns 0x14007c734
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006a514
cmp rax, 0xffffffffffffffff
jne 0x14007c6ec
cmp byte [rsi + 0x30], dil
je 0x14007c734
mov edi, dword [rsi + 0x2c]
jmp 0x14007c734
mov ecx, r14d
call fcn.140074184
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007c734
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14007c734
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007c72d
mov eax, dword [rsi + 0x2c]
jmp 0x14007c732
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006a514
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14007d2b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007d2d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007d2d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009b40
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140009bd9
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140054184], ecx
jle 0x140009bc0
lea rcx, [0x140054184]
call fcn.1400386d0
cmp dword [0x140054184], 0xffffffff
jne 0x140009bc0
lea rcx, [0x14003d2f0]
call fcn.140038a40
lea rcx, [0x140054184]
call fcn.140038664
lea rax, [0x140050100]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x140009bee
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140038590
add rsp, 0x40
pop rbx
ret
lea rdx, [0x1400408f0]
lea rcx, [rsp + 0x20]
call fcn.140009a10
int3

Function at 0x140009fc0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.140004430
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x14000a033
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000a0b2
cmp eax, 0xb7
jne 0x14000a048
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x14000a081
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14000a07e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14000a0b2
mov byte [rbx], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000a0b2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140038590
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x14000a130
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov rax, qword [rcx + 8]
mov r9d, 0xffffffff
mov ecx, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140054140], eax
test eax, eax
mov rax, qword [rbx + 8]
je 0x14000a1ad
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140038590
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
lea rcx, [fcn.140009ed0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140038590
add rsp, 0x40
pop rbx
ret
Function at 0x14000ab50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14000aba6
call fcn.14000ad20
mov dword [rbp - 0x59], ebx
lea rax, [0x1400502c0]
mov qword [rbp - 0x51], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x14000ac95
mov dword [rbp + 0x17], ebx
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rbx
lea rcx, [rbp + 0x1f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
xor eax, eax
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rax
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x51], rax
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rbp - 0x39]
mov rcx, rdi
call fcn.14000b150
test rax, rax
je 0x14000ac53
nop dword [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rbp - 0x39]
mov rcx, rdi
call fcn.14000b150
test rax, rax
jne 0x14000ac30
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rbp - 0x39]
mov esi, 0xa
nop dword [rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000ac7e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rdi, 8
sub rsi, 1
jne 0x14000ac70
lea rcx, [rbp + 0x1f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140038590
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ae00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1400541e4]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000af40
cmp qword [rax], rbx
je 0x14000ae3c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000ae28
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14000af40
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14000af00
cmp ecx, 1
jne 0x14000af40
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x14004c928]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x14000af26
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret
Function at 0x14000bbb0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xa0]
lea r9, [rsp + 0x50]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSASend]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140054184], ecx
jle 0x14000bc39
lea rcx, [0x140054184]
call fcn.1400386d0
cmp dword [0x140054184], 0xffffffff
jne 0x14000bc39
lea rcx, [0x14003d2f0]
call fcn.140038a40
lea rcx, [0x140054184]
call fcn.140038664
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x140050100]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x14000bc65
mov edx, 0x2746
jmp 0x14000bc71
cmp eax, 0x4d2
jne 0x14000bc79
mov edx, 0x274d
mov rcx, rbx
call fcn.140027950
test edi, edi
je 0x14000bc84
mov eax, 0xffffffff
jmp 0x14000bc8a
mov eax, dword [rsp + 0x50]
mov dword [rbx], esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140038590
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000bca0
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rsp + 0x2d0]
mov r12, r9
mov r15, r8
movzx edi, dl
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14000bcf0
mov edx, 0x2719
mov rcx, rbx
call fcn.140027950
xor eax, eax
jmp 0x14000be6e
cmp byte [rsp + 0x2c8], 0
mov qword [rsp + 0x2a8], rbp
je 0x14000bd13
test dil, 0x10
je 0x14000bd13
xor ebp, ebp
mov dword [rbx], ebp
xor eax, eax
jmp 0x14000be66
mov qword [rsp + 0x268], rsi
mov r8, r12
mov rdx, r15
mov qword [rsp + 0x260], r13
mov qword [rsp + 0x20], rbx
call fcn.14000bbb0
test eax, eax
jns 0x14000be54
test dil, 1
jne 0x14000bef0
xor ebp, ebp
mov r13d, 4
mov rax, qword gs:[0x58]
mov edx, dword [0x140054184]
mov edi, r13d
mov rsi, qword [rax]
cmp edx, dword [rsi + r13]
jle 0x14000bd9d
lea rcx, [0x140054184]
call fcn.1400386d0
mov edx, dword [0x140054184]
cmp edx, 0xffffffff
jne 0x14000bd9d
lea rcx, [0x14003d2f0]
call fcn.140038a40
lea rcx, [0x140054184]
call fcn.140038664
mov edx, dword [0x140054184]
mov rcx, qword [rbx + 8]
mov rax, qword [0x140050108]
cmp qword [rcx + 8], rax
jne 0x14000bdb6
cmp dword [rbx], 0x2733
je 0x14000be0d
cmp edx, dword [rsi + r13]
jle 0x14000bde9
lea rcx, [0x140054184]
call fcn.1400386d0
cmp dword [0x140054184], 0xffffffff
jne 0x14000bde9
lea rcx, [0x14003d2f0]
call fcn.140038a40
lea rcx, [0x140054184]
call fcn.140038664
mov rcx, qword [rbx + 8]
mov rax, qword [0x140050108]
cmp qword [rcx + 8], rax
jne 0x14000bef0
cmp dword [rbx], 0x4d5
jne 0x14000bef0
mov edi, r13d
lea ecx, [r14 + 1]
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000be8e
mov r8, r12
mov dword [rbx], ebp
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call fcn.14000bbb0
test eax, eax
js 0x14000bd4d
mov eax, eax
mov rsi, qword [rsp + 0x268]
mov r13, qword [rsp + 0x260]
mov rbp, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140038590
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rdi + rdx]
cmp dword [0x140054184], eax
jle 0x14000bed2
lea rcx, [0x140054184]
call fcn.1400386d0
cmp dword [0x140054184], 0xffffffff
jne 0x14000bed2
lea rcx, [0x14003d2f0]
call fcn.140038a40
lea rcx, [0x140054184]
call fcn.140038664
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x140050100]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x14000be56
Function at 0x14000bf00
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000bf77
mov dword [rdi], 0
cmp esi, 0x17
jne 0x14000bf72
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
jmp 0x14000bfe5
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140054184], eax
jle 0x14000bfc0
lea rcx, [0x140054184]
call fcn.1400386d0
cmp dword [0x140054184], 0xffffffff
jne 0x14000bfc0
lea rcx, [0x14003d2f0]
call fcn.140038a40
lea rcx, [0x140054184]
call fcn.140038664
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x140050100]
mov qword [rsp + 0x38], rax
mov rax, 0xffffffffffffffff
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038590
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016090
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
sub rsp, 0xe8
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov qword [r11 - 0x28], 0
xorps xmm0, xmm0
movups xmmword [r11 - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0xc0]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140016170
lea r8, [rsp + 0xcc]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140016192
mov dword [rsp + 0xc8], 1
mov dword [rsp + 0xd4], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, select
lea r8, [rsp + 0xc8]
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400161b4
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140038590
add rsp, 0xe8
ret
lea rdx, str.OpenProcessToken_issues
lea rcx, [rsp + 0x38]
call fcn.1400046b0
lea rdx, [0x14004c848]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.LookupPrivilegeValue_issues
lea rcx, [rsp + 0x50]
call fcn.1400046b0
lea rdx, [0x14004c848]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.140004550
nop
mov r8, rax
lea rcx, [rsp + 0xa0]
call fcn.140027bc0
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140004640
lea rdx, [0x14004c848]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3