joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006340
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x140006579
cmp byte [rcx + 0x89], 0
je 0x140006579
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000654d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140006418
dec eax
jne 0x140006517
jmp 0x14000641f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14000646d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.14000e5f0
cmp rbx, rax
jne 0x14000653d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x14000656b
test rbx, rbx
jne 0x1400063d0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14000655e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140006551
cmp r9, rbx
jae 0x1400064c1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140007600
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x1400064de
test rbx, rbx
jne 0x1400064e7
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x1400063bb
test rbx, rbx
je 0x1400063d0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x1400063bb
sub eax, 2
je 0x140006530
cmp qword [rbp - 0x10], 0x10
jb 0x14000654d
mov rcx, qword [rbp - 0x28]
call fcn.14000e3d4
xor al, al
jmp 0x14000657b
cmp qword [rbp - 0x10], 0x10
jb 0x140006579
mov rcx, qword [rbp - 0x28]
jmp 0x140006574
cmp qword [rbp - 0x10], 0x10
jb 0x14000654d
mov rcx, qword [rbp - 0x28]
call fcn.14000e3d4
xor al, al
jmp 0x14000657b
lea rcx, str.string_too_long
call fcn.14000bcac
int3
lea rcx, str.string_too_long
call fcn.14000bcac
nop
cmp r9, 0x10
jb 0x140006579
mov rcx, r10
call fcn.14000e3d4
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140008690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret
Function at 0x140016e6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140016cdc

Function at 0x140019837
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140039950]
jne 0x14000faca
rol rcx, 0x10
test cx, 0xffff
jne 0x14000fac6
repz ret
ror rcx, 0x10
jmp 0x140019790
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003c080]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003c178]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140019815
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003c080]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140019837
mov rax, qword [rsp + 0x88]
mov qword [0x14003c178], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003c118], rax
mov rax, qword [0x14003c178]
mov qword [0x14003bff0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003c100], rax
mov dword [0x14003bfe0], 0xc0000409
mov dword [0x14003bfe4], 1
mov rax, qword [0x140039950]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140039958]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003c078], eax
mov ecx, 1
call fcn.14001e284
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002f1b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003c078], 0
jne 0x1400198be
mov ecx, 1
call fcn.14001e284
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140025f60
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140039950]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400164dc
xor ebx, ebx
cmp qword [0x14003c648], rbx
mov rdi, rax
jne 0x140026073
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002614a
lea rdx, [0x140030bb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002614a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14003c648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14003c650], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14003c658], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14003c668], rax
test rax, rax
je 0x14002606a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14003c660], rax
jmp 0x14002607a
mov rax, qword [0x14003c660]
jmp 0x140026081
mov rax, qword [0x14003c660]
mov r11, qword [0x14003c668]
cmp rax, rdi
je 0x1400260e8
cmp r11, rdi
je 0x1400260e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14003c668]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400260e8
test rax, rax
je 0x1400260e8
call rsi
test rax, rax
je 0x1400260e2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400260e2
test byte [rsp + 0x40], 1
jne 0x1400260e8
bts ebp, 0x15
jmp 0x140026128
mov rcx, qword [0x14003c650]
cmp rcx, rdi
je 0x140026128
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140026128
call rax
mov rbx, rax
test rax, rax
je 0x140026128
mov rcx, qword [0x14003c658]
cmp rcx, rdi
je 0x140026128
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140026128
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003c648]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002614a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14002614c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000fab0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009be0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140009c79
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 [0x1405df224], ecx
jle 0x140009c60
lea rcx, [0x1405df224]
call fcn.14003a8f0
cmp dword [0x1405df224], 0xffffffff
jne 0x140009c60
lea rcx, [0x14003f350]
call fcn.14003ac60
lea rcx, [0x1405df224]
call fcn.14003a884
lea rax, [0x1405daf48]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x140009c8e
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003a7b0
add rsp, 0x40
pop rbx
ret
lea rdx, [0x140043160]
lea rcx, [rsp + 0x20]
call fcn.140009ab0
int3

Function at 0x14000a060
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140054040]
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 0x14000a0d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000a152
cmp eax, 0xb7
jne 0x14000a0e8
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x14000a121
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14000a11e
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 0x14000a152
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 0x14000a152
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14003a7b0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x14000a1d0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140054040]
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 [0x1405df1e0], eax
test eax, eax
mov rax, qword [rbx + 8]
je 0x14000a24d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003a7b0
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
lea rcx, [fcn.140009f70]
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.14003a7b0
add rsp, 0x40
pop rbx
ret
Function at 0x14000abf0
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 [0x140054040]
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 0x14000ac46
call fcn.14000adc0
mov dword [rbp - 0x59], ebx
lea rax, [0x1405db110]
mov qword [rbp - 0x51], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x14000ad35
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 [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rbp - 0x39]
mov rcx, rdi
call fcn.14000b1f0
test rax, rax
je 0x14000acf3
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.14000b1f0
test rax, rax
jne 0x14000acd0
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x1405df284]
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 0x14000ad1e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rdi, 8
sub rsi, 1
jne 0x14000ad10
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.14003a7b0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000aea0
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 [0x1405df284]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000afe0
cmp qword [rax], rbx
je 0x14000aedc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000aec8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14000afe0
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14000afa0
cmp ecx, 1
jne 0x14000afe0
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, [0x14004fc08]
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 0x14000afc6
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 0x14000bc50
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140054040]
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 [0x1405df224], ecx
jle 0x14000bcd9
lea rcx, [0x1405df224]
call fcn.14003a8f0
cmp dword [0x1405df224], 0xffffffff
jne 0x14000bcd9
lea rcx, [0x14003f350]
call fcn.14003ac60
lea rcx, [0x1405df224]
call fcn.14003a884
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1405daf48]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x14000bd05
mov edx, 0x2746
jmp 0x14000bd11
cmp eax, 0x4d2
jne 0x14000bd19
mov edx, 0x274d
mov rcx, rbx
call fcn.140028700
test edi, edi
je 0x14000bd24
mov eax, 0xffffffff
jmp 0x14000bd2a
mov eax, dword [rsp + 0x50]
mov dword [rbx], esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003a7b0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000bd40
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140054040]
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 0x14000bd90
mov edx, 0x2719
mov rcx, rbx
call fcn.140028700
xor eax, eax
jmp 0x14000bf0e
cmp byte [rsp + 0x2c8], 0
mov qword [rsp + 0x2a8], rbp
je 0x14000bdb3
test dil, 0x10
je 0x14000bdb3
xor ebp, ebp
mov dword [rbx], ebp
xor eax, eax
jmp 0x14000bf06
mov qword [rsp + 0x268], rsi
mov r8, r12
mov rdx, r15
mov qword [rsp + 0x260], r13
mov qword [rsp + 0x20], rbx
call fcn.14000bc50
test eax, eax
jns 0x14000bef4
test dil, 1
jne 0x14000bf90
xor ebp, ebp
mov r13d, 4
mov rax, qword gs:[0x58]
mov edx, dword [0x1405df224]
mov edi, r13d
mov rsi, qword [rax]
cmp edx, dword [rsi + r13]
jle 0x14000be3d
lea rcx, [0x1405df224]
call fcn.14003a8f0
mov edx, dword [0x1405df224]
cmp edx, 0xffffffff
jne 0x14000be3d
lea rcx, [0x14003f350]
call fcn.14003ac60
lea rcx, [0x1405df224]
call fcn.14003a884
mov edx, dword [0x1405df224]
mov rcx, qword [rbx + 8]
mov rax, qword [0x1405daf50]
cmp qword [rcx + 8], rax
jne 0x14000be56
cmp dword [rbx], 0x2733
je 0x14000bead
cmp edx, dword [rsi + r13]
jle 0x14000be89
lea rcx, [0x1405df224]
call fcn.14003a8f0
cmp dword [0x1405df224], 0xffffffff
jne 0x14000be89
lea rcx, [0x14003f350]
call fcn.14003ac60
lea rcx, [0x1405df224]
call fcn.14003a884
mov rcx, qword [rbx + 8]
mov rax, qword [0x1405daf50]
cmp qword [rcx + 8], rax
jne 0x14000bf90
cmp dword [rbx], 0x4d5
jne 0x14000bf90
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 0x14000bf2e
mov r8, r12
mov dword [rbx], ebp
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call fcn.14000bc50
test eax, eax
js 0x14000bded
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.14003a7b0
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 [0x1405df224], eax
jle 0x14000bf72
lea rcx, [0x1405df224]
call fcn.14003a8f0
cmp dword [0x1405df224], 0xffffffff
jne 0x14000bf72
lea rcx, [0x14003f350]
call fcn.14003ac60
lea rcx, [0x1405df224]
call fcn.14003a884
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1405daf48]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x14000bef6
Function at 0x14000bfa0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140054040]
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 0x14000c017
mov dword [rdi], 0
cmp esi, 0x17
jne 0x14000c012
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 0x14000c085
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1405df224], eax
jle 0x14000c060
lea rcx, [0x1405df224]
call fcn.14003a8f0
cmp dword [0x1405df224], 0xffffffff
jne 0x14000c060
lea rcx, [0x14003f350]
call fcn.14003ac60
lea rcx, [0x1405df224]
call fcn.14003a884
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1405daf48]
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.14003a7b0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016750
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
sub rsp, 0xe8
mov rax, qword [0x140054040]
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 0x140016830
lea r8, [rsp + 0xcc]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140016852
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 0x140016874
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14003a7b0
add rsp, 0xe8
ret
lea rdx, str.OpenProcessToken_issues
lea rcx, [rsp + 0x38]
call fcn.140004790
lea rdx, [0x14004fb00]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.LookupPrivilegeValue_issues
lea rcx, [rsp + 0x50]
call fcn.140004790
lea rdx, [0x14004fb00]
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.1400045b0
nop
mov r8, rax
lea rcx, [rsp + 0xa0]
call fcn.140028970
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140004720
lea rdx, [0x14004fb00]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001abd0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14001abf1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001ac1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001ac20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001ac79
test ecx, ecx
jle 0x14001ac59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001ac79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001ac79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add bl, byte [rsi]
invalid