joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400151d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140015201
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14001527b
mov rdi, r14
mov rcx, rbx
call fcn.1400162b0
test rax, rax
jle 0x140015253
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400aab40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001526b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140015273
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140015215
sub r14, rdi
jmp 0x140015368
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140015292
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140015294
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400152c9
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400aab40
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140015365
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140015304
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140015340
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400b43c8
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140015386
cmp rbp, rax
ja 0x140015310
mov r8, rdi
test rdi, rdi
je 0x140015365
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400b43c8
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x140015368
Function at 0x140064e30
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14014a1f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140064e7b
test cl, 1
jne 0x140064e7b
test cl, 4
je 0x140064e7b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x140064e7b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x140065024
bt eax, 0x19
jae 0x140064ee1
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
mov eax, select
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
test eax, eax
jne 0x140065024
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140065026
bt eax, 0x15
jb 0x140065024
mov rcx, qword [0x140150988]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14006504c
mov eax, 2
xchg dword [0x140150968], eax
cmp eax, 1
je 0x140064f37
mov rcx, qword [0x140150988]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test eax, eax
je 0x14006504c
jmp 0x14006501d
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140064f9a
lea rdx, [0x140150970]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140064f9a
lock or dword [0x14015096c], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, select
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x140064ffe
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14006500d
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x14006501d
mov eax, edi
jmp 0x140065026
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008c170
add rsp, 0x90
pop rbx
ret
call fcn.1400b4fc0
int3
Function at 0x140065060
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14014a1f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x14006509e
mov eax, 0xffffffff
jmp 0x1400651c7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400650d3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x14014b074]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x14014b088], r11d
mov dword [0x14014b078], r8d
cmp eax, 0xffffffff
jne 0x140065110
mov eax, r9d
jmp 0x14006511d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x140065132
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x14014b074], eax
test r15b, r15b
jne 0x14006514a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x140065152
mov ecx, eax
jmp 0x14006515f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14006515f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x14006516b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x140065174
mov edx, r12d
jmp 0x14006517d
cmp edx, r11d
jl 0x14006517d
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
jne 0x1400651bb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x1400650b4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x1400651bd
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008c170
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140067760
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
test dword [rcx + 0x58], 0x8000
mov rbx, rdx
jne 0x14006777d
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140067828
cmp eax, 0xc
je 0x1400677d8
cmp eax, 0xe
je 0x14006779e
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x140067828
lea r9, [rsp + 0x50]
mov r8d, 1
call fcn.140065ab0
test eax, eax
je 0x1400677d0
mov ecx, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
jmp fcn.14006ef30
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x140067828
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x14006781e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.14006ef30
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret

Function at 0x140069050
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14006908b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400690a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400690eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x140069116
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400690df
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140069120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rbx, rdx
mov rbp, rcx
je 0x14006915c
mov eax, 0xfffff00e
jmp 0x140069228
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14006917f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140069228
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
jne 0x14006919e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140069228
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
je 0x140069193
mov ecx, dword [0x1403d9ee0]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x1403d9edc]
bt eax, 0x13
jb 0x1400691ec
test ecx, ecx
jne 0x1400691ec
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFileCompletionNotificationModes]
test eax, eax
je 0x140069193
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x1400691fe
mov rdx, rdi
call fcn.140069050
test eax, eax
jne 0x140069228
test dword [rbx + 0x58], 0x2000000
je 0x140069213
mov rdx, rdi
call fcn.1400690a0
test eax, eax
jne 0x140069228
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x140069226
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400694b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x140069524
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400694fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140069589
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.140069120
mov ebp, eax
test eax, eax
je 0x140069524
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x140069589
cmp word [rdi], 0x17
jne 0x140069555
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140069580
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x140069589
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140069890
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xorps xmm0, xmm0
lea rbx, [rdx + 0x80]
movups xmmword [rbx + 0x40], xmm0
lea r14, [rbx + 0x40]
xor ebp, ebp
movups xmmword [r14 + 0x10], xmm0
or dword [rdx + 0x58], 0x40000
lea rax, [0x140150987]
movups xmmword [r14], xmm0
mov rdi, rdx
mov rsi, rcx
movups xmmword [r14 + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ebp
je 0x1400698f6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140069981
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x1400699e9
bts eax, 0x10
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140069974
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140069a5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140069a5f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400699e9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x1400699a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400699ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400699dc
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140069a5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140069a5f
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x140069a5f
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x140069a5f
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400695a0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x140069a5f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x140069a41
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140069a4f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.140069020
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14006a190
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14006a20f
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x14006a287
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x14006a1e5
test dl, 1
jne 0x14006a1e5
test al, 4
je 0x14006a1e5
and eax, 0xffffffbb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14006a1e5
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov r9, qword [rbx + 0x100]
test r9, r9
je 0x14006a287
mov ecx, dword [r8 + 0x40]
call fcn.140070900
mov ecx, eax
call fcn.14006ef30
mov edx, eax
mov rcx, rbx
call r9
jmp 0x14006a287
cmp dword [r8 + 0x40], 0
jl 0x14006a264
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14006a264
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x14006a287
xor edx, edx
mov rcx, rbx
call rax
jmp 0x14006a287
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x14006a287
mov rdx, rdi
mov rcx, rbx
call fcn.1400695e0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x14006a2b0
test ecx, ecx
jne 0x14006a2b0
test al, 0x20
jne 0x14006a2b0
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14006b760
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x88
cmp byte [0x140150bc8], 0
jne 0x14006b99f
xor r9d, r9d
mov qword [rsp + 0xa0], rbx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov rbx, rax
test rax, rax
je 0x14006b9a7
mov qword [rsp + 0x80], rdi
xor eax, eax
lock cmpxchg qword [0x140150bd0], rbx
mov rdi, rax
jne 0x14006b978
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea rcx, [fcn.140001350]
call fcn.1400ad980
lea rcx, [0x140150be0]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call fcn.14006ebf0
call fcn.140070660
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x1403d9e00]
mov dword [0x140150da8], eax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor edi, edi
lea r8, [0x1403d8e08]
mov r9d, edi
lea rdx, [0x140150e00]
mov r10d, edi
nop dword [rax]
movsxd rax, r10d
inc r9d
mov qword [r8 - 8], rdi
lea r8, [r8 + 0x10]
imul rcx, rax, 0x288
add r10d, 0x10
add rcx, rdx
mov qword [r8 - 0x10], rcx
cmp r9d, 0x100
jb 0x14006b820
lea rcx, [0x140150b98]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x140068640]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
test eax, eax
je 0x14006b9bc
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [0x140150988], rax
test rax, rax
jne 0x14006b8a6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.14006ef30
test eax, eax
jne 0x14006b9bc
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [0x14014b090], rax
cmp rax, 0xffffffffffffffff
je 0x14006b8f0
xor edx, edx
lea rcx, [0x140067350]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
lea rcx, [0x140150998]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
test eax, eax
je 0x14006b92a
movsd xmm1, qword [0x1401333d8]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x90]
divsd xmm1, xmm0
jmp 0x14006b92d
xorps xmm1, xmm1
mov rax, qword [0x1403d9f00]
movsd qword [0x140150b90], xmm1
test rax, rax
je 0x14006b966
lea rdx, [0x140070df0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x40]
mov ecx, 2
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov byte [0x140150bc8], 1
jmp 0x14006b98f
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x88
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14006ee80
int3
call fcn.1400b4fc0
int3
Function at 0x14006d460
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rsi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rdi + 0x120]
xor r8d, r8d
mov edx, 0x40040003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14006d512
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14006d4cb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14006d4d9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14006d505
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14006d5f1
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14006d5f1
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.14006cc60
test eax, eax
je 0x14006d54c
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14006d4cb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14006d4d9
xorps xmm0, xmm0
mov qword [rsp + 0x50], r14
movups xmmword [rbx + 0x40], xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x14006d5ec
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x14006d5ec
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x217
jne 0x14006d58d
mov rax, rbp
jmp 0x14006d5c1
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14006d5b1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14006d5bf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14006d5e4
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14006d5e8
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret