joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bfdb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, dword [rdx + 0x58]
mov rsi, rcx
mov rbx, rdx
test ah, 0x10
je 0x1400bff50
test eax, 0x10000
jne 0x1400bff28
mov edx, eax
lea rdi, [rbx + 0xc0]
lea rcx, [0x140584640]
mov qword [rbx + 0xc0], 0
or edx, 0x40000
mov qword [rsp + 0x58], rcx
lea rbp, [rbx + 0x80]
mov dword [rbx + 0x58], edx
mov qword [rbx + 0xc8], 0
mov dword [rsp + 0x50], 0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
test eax, 0x80000
je 0x1400bfe4a
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x1400bffd0
or rax, 1
mov qword [rbx + 0xd8], rax
lea rax, [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov r8d, 1
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edx, dword [rbx + 0x58]
add dword [rbx + 0x78], 1
mov r8d, eax
mov eax, edx
or eax, 0x10000
mov dword [rbx + 0x58], eax
test r8d, r8d
je 0x1400bfed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400bff78
mov eax, dword [rbx + 0x58]
test eax, 0x80000
je 0x1400bfec9
cmp qword [rbx + 0xf8], 0xffffffffffffffff
je 0x1400c0000
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
and edx, 0x20000
je 0x1400bfeb4
mov qword [rbx + 0xe8], 0
mov eax, dword [rsp + 0x48]
mov qword [rbx + 0xc8], rax
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400bffb4
mov rax, qword [rax + 0x68]
mov qword [rbx + 0xe8], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbp
mov qword [rsi + 0x48], rbp
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x1e2
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e010]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x1400bfdd5
mov r8d, 0x1e1
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029dfe8]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x1400bfdca
mov rdi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rdi
test eax, eax
jle 0x1400c0050
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov qword [rbx + 0xe8], 0
mov rax, qword [rsi + 0x48]
test rax, rax
jne 0x1400bff03
mov qword [rbx + 0xe8], rbp
mov qword [rsi + 0x48], rbp
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x1ff
lea rdx, str.src_win_tcp.c
lea rcx, str.req__event_handle___NULL
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [rbx + 0xf0]
jmp 0x1400bfe3f
mov dword [rsp + 0x28], 4
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov r9, rbp
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400bfc20]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400bfec9
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
test eax, eax
jg 0x1400bff89
nop word [rax + rax]
call rdi
cdqe
jmp 0x1400bff95
Function at 0x1400c0060
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x58], edx
mov r12, rcx
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov dword [rsp + 0x60], r8d
mov r8d, 8
mov dword [rsp + 0x20], 4
call rbx
cmp eax, 0xffffffff
je 0x1400c00d2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x1400c00b0
xor eax, eax
add rsp, 0x38
pop rbx
pop r12
ret
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 6
mov rcx, r12
mov r8d, 3
call rbx
cmp eax, 0xffffffff
jne 0x1400c00a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
pop rbx
pop r12
ret

Function at 0x1400c00e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov rbp, rcx
mov rsi, rdx
mov rbx, r8
mov edi, r9d
mov dword [rsp + 0x48], 1
jne 0x1400c02f0
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400c01d0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400c01c0
xor r9d, r9d
mov rdx, qword [rbp + 0x38]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400c01e0
mov edx, dword [rsi + 0x58]
mov ecx, edx
and ecx, 0x80000
cmp edi, 0x17
je 0x1400c0205
mov rax, qword [0x1402af430]
mov eax, dword [rax]
or eax, ecx
je 0x1400c02c0
test edx, 0x1000000
jne 0x1400c0240
test edx, 0x2000000
jne 0x1400c0281
mov qword [rsi + 0x110], rbx
cmp edi, 0x17
je 0x1400c02a8
xor eax, eax
and edx, 0x400000
jne 0x1400c0218
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x1400c01c0
mov edx, dword [rsi + 0x58]
mov ecx, 0x80000
or edx, 0x80000
mov dword [rsi + 0x58], edx
cmp edi, 0x17
jne 0x1400c016f
mov rax, qword [str._HX_]
mov eax, dword [rax]
jmp 0x1400c0178
mov dword [rsp + 0x3c], eax
mov r8d, 0x93
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e040]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
jmp 0x1400c01b2
mov dword [rsp + 0x4c], 1
lea r9, [rsp + 0x4c]
mov r8d, 1
mov rcx, rbx
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400c0300
mov edx, dword [rsi + 0x58]
test edx, 0x2000000
je 0x1400c0198
mov r8d, 0x3c
mov edx, 1
mov rcx, rbx
call fcn.1400c0060
test eax, eax
jne 0x1400c01b2
mov edx, dword [rsi + 0x58]
jmp 0x1400c0198
or edx, 0x400000
xor eax, eax
mov dword [rsi + 0x58], edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400c01c0
mov edx, dword [rsi + 0x58]
or edx, 0x20000
mov dword [rsi + 0x58], edx
jmp 0x1400c0180
mov eax, 0xfffff00e
jmp 0x1400c01b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400c01b2
jmp 0x1400c0272
Function at 0x1400c0320
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
movzx eax, word [rdx]
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov r12, rdx
mov edi, r8d
mov esi, r9d
cmp rcx, 0xffffffffffffffff
je 0x1400c0388
cmp word [r12], 0x17
je 0x1400c03f0
mov r8d, edi
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400c0438
or dword [rbx + 0x58], 0x2000
xor r13d, r13d
mov eax, r13d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
test r9b, 1
je 0x1400c0398
cmp ax, 0x17
jne 0x1400c0428
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400c0460
mov rcx, qword [rbx + 8]
movzx r9d, word [r12]
mov r8, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400c00e0
mov r13d, eax
test eax, eax
jne 0x1400c0478
cmp word [r12], 0x17
mov rcx, qword [rbx + 0x110]
jne 0x1400c0355
and esi, 1
lea r9, [rsp + 0x3c]
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x3c], esi
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
jmp 0x1400c0355
mov r13d, 0x57
jmp 0x1400c0374
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0x2740
jne 0x1400c0374
mov dword [rbx + 0x118], 0x2740
jmp 0x1400c036a
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400c0374
Function at 0x1400c1a20
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x1400bf5c0
test ah, 0x80
je 0x1400bf5d0
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x1400bf5a0
cmp eax, 0xe
je 0x1400bf5b0
mov r8d, 0xfffff008
cmp eax, 7
je 0x1400bf598
mov r8d, 0xbb
lea rdx, str.src_win_stream.c
lea rcx, [0x14029def1]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1400c1a20
add rsp, 0x28
jmp 0x1400c8740
mov r8d, 0xfffff00d
jmp 0x1400bf598
mov r8d, 0xfffff031
jmp 0x1400bf598
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x1400c1a88
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov r8d, eax
mov eax, dword [rsp + 0x4c]
cmp r8d, 0xffffffff
je 0x1400c1a70
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400ab4e0
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x1400c1a67
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x1400c8798
lea r9, [rsp + 0x2c]
call fcn.1400c4b90
test eax, eax
jne 0x1400c8780
mov edx, r13d
mov rcx, r12
call fcn.1400a9050
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400ab4e0
mov eax, 0xfffff008
jmp 0x1400c8771
Function at 0x1400c21f0
Capabilities:
Set socket configuration

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp dword [rdx + 0x10], 0xc
mov rsi, rcx
mov rbx, rdx
mov r12, r8
je 0x1400c2221
mov r8d, 0x49d
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
call qword [sym.imp.msvcrt.dll__assert]
mov rcx, qword [r12 + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400c22f8
mov eax, dword [r12 + 0x40]
test eax, eax
js 0x1400c22b5
mov dword [rsp + 0x20], 8
mov r8d, 0x700b
mov edx, 0xffff
lea r9, [rbx + 0x110]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400c22b0
mov rax, qword [rbx + 0x130]
mov qword [r12 + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], r12
test rax, rax
je 0x1400c22ce
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x1400c22d5
nop dword [rax]
mov r8d, 0x4c4
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e274]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x1400c22d5
mov rcx, qword [r12 + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
jne 0x1400c2398
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x1400c2290
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x1400c22e9
test dl, 1
jne 0x1400c2370
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x1400c22ce
mov edx, eax
and edx, 0xffffffbf
mov dword [rbx + 0x58], edx
mov edx, dword [rbx + 0x7c]
sub edx, 1
mov dword [rbx + 0x7c], edx
jne 0x1400c2338
test al, 1
jne 0x1400c233c
test al, 4
je 0x1400c233c
mov edx, eax
and edx, 0xffffffbb
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400c233c
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov edx, dword [rbx + 0x7c]
nop dword [rax]
test edx, edx
js 0x1400c23b0
cmp qword [rbx + 0x100], 0
je 0x1400c22ce
mov ecx, dword [r12 + 0x40]
call fcn.1400cdba0
mov r12, qword [rbx + 0x100]
mov ecx, eax
call fcn.1400ab4e0
mov rcx, rbx
mov edx, eax
call r12
jmp 0x1400c22ce
test dl, 0x20
jne 0x1400c22e9
or edx, 0x20
mov dword [rbx + 0x58], edx
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov rdx, r12
mov rcx, rbx
call fcn.1400bf820
jmp 0x1400c22ce
mov r8d, 0x4a5
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e25b]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400c233c
Function at 0x1400c23d0
Capabilities:
Set socket configuration

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp dword [rdx + 0x10], 0xc
mov rsi, rcx
mov rbx, rdx
mov r12, r8
je 0x1400c2402
mov r8d, 0x4cc
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x7c]
sub eax, 1
mov dword [rbx + 0x7c], eax
jne 0x1400c24a0
mov eax, dword [rbx + 0x58]
test al, 1
je 0x1400c2480
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x1400c24cd
sub eax, 1
mov dword [rsi + 0x20], eax
mov ecx, dword [rbx + 0x118]
test ecx, ecx
je 0x1400c24fe
mov dword [rbx + 0x118], 0
mov rdi, qword [r12 + 0x70]
call fcn.1400ab4e0
mov rcx, r12
mov edx, eax
call rdi
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x1400c2588
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x1400c2471
test dl, 1
jne 0x1400c2560
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
test al, 4
je 0x1400c2418
mov edx, eax
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400c2418
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov eax, dword [rbx + 0x7c]
nop dword [rax + rax]
test eax, eax
jns 0x1400c2418
mov r8d, 0x4ce
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e2c3]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x1400c2423
lea rcx, [0x14029e118]
mov r8d, 0x4ce
lea rdx, str.src_win_tcp.c
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsi + 0x20]
sub eax, 1
mov dword [rsi + 0x20], eax
mov ecx, dword [rbx + 0x118]
test ecx, ecx
jne 0x1400c2437
mov rax, qword [r12 + 0x40]
mov ecx, eax
test eax, eax
js 0x1400c25b0
mov ecx, 0x3e3
test byte [rbx + 0x58], 1
jne 0x1400c2441
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], 0
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, eax
test eax, eax
jne 0x1400c25c0
or dword [rbx + 0x58], 0xc080
add dword [rsi + 0xb0], 1
jmp 0x1400c2441
test dl, 0x20
jne 0x1400c2471
or edx, 0x20
mov dword [rbx + 0x58], edx
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
mov r8d, 0x4ec
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e274]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x1400c245d
call fcn.1400cdba0
mov ecx, eax
jmp 0x1400c2441
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x1400c2441

Function at 0x1400c27b0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x1400c27f0
mov eax, dword [rbx + 0x58]
mov edx, eax
or eax, 0x1000000
and edx, 0xfeffffff
test esi, esi
cmove eax, edx
mov dword [rbx + 0x58], eax
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
mov dword [rsp + 0x3c], edx
lea r9, [rsp + 0x3c]
mov edx, 6
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400c27c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test eax, eax
je 0x1400c27c8
add rsp, 0x48
pop rbx
pop rsi
jmp fcn.1400ab4e0
Function at 0x1400c3250
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
mov rsi, rdx
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r12, rax
test rax, rax
je 0x1400c3230
xor eax, eax
lock cmpxchg qword [rbx + 8], r12
mov r13, rax
test rax, rax
jne 0x1400c31f0
call rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400c31d0
mov byte [rbx], 1
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
mov r8d, 0x36
lea rdx, str.src_win_thread.c
lea rcx, str.result
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400c31be
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400c31c1
mov r8d, 0x3e
lea rdx, str.src_win_thread.c
lea rcx, str.result__WAIT_OBJECT_0
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp qword [sym.imp.msvcrt.dll__assert]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateEvent
mov ecx, eax
call fcn.1400ab420
nop
nop word cs:[rax + rax]
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140584660], eax
cmp eax, 0xffffffff
je 0x1402691e0
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop

Function at 0x1400c32f0
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rdi, r8
mov rbp, r9
test byte [rdx], 1
je 0x1400c33e8
mov rbx, qword [rdx + 8]
test rbx, rbx
jne 0x1400c33b8
mov ecx, 0x18
call fcn.1400a6950
mov r12, rax
test rax, rax
je 0x1400c33ef
mov qword [rax], rdi
xor ecx, ecx
mov r9, rax
lea r8, [0x1400c3270]
mov qword [rax + 8], rbp
mov edx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
test rax, rax
jne 0x1400c3398
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, r12
mov ebx, dword [rax]
call fcn.1400a6970
mov eax, 0xfffff01a
cmp ebx, 0x16
ja 0x1400c33a8
lea rax, [0x14029e440]
mov eax, dword [rax + rbx*4]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov qword [rsi], rax
mov qword [r12 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x34]
lea rbx, [rbx + rax - 1]
neg rax
and rbx, rax
mov eax, ebx
cmp rax, rbx
je 0x1400c3319
mov eax, 0xfffff019
jmp 0x1400c33a8
xor ebx, ebx
jmp 0x1400c3319
mov eax, 0xfffff027
jmp 0x1400c33a8
Function at 0x1400c48d0
Capabilities:
Manipulate console buffer

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r14, qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r15d, byte [rsp + 0xc0]
mov rbx, rcx
mov r13d, edx
mov r12d, r9d
movzx ebp, r8b
lea rsi, [rsp + 0x30]
jmp 0x1400c4940
mov dword [rsp + 0x20], r15d
mov edx, r13d
mov rcx, rsi
mov r9d, r12d
mov r8d, ebp
call fcn.1400c4690
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400c4960
call rdi
cmp eax, 0x57
jne 0x1400c4978
mov rcx, qword [rbx + 0x110]
mov rdx, rsi
call r14
test eax, eax
jne 0x1400c4910
call rdi
mov rdx, qword [rsp + 0xc8]
mov dword [rdx], eax
jmp 0x1400c4910
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call rdi
mov rdi, qword [rsp + 0xc8]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x1400c4962
Function at 0x1400c81a0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
mov eax, dword [rbx + 0x7c]
mov edx, ecx
and dh, 0xef
sub eax, 1
mov dword [rbx + 0x58], edx
mov dword [rbx + 0x7c], eax
jne 0x1400c8220
test cl, 1
je 0x1400c8200
test edx, 0x10000
je 0x1400c81e7
test edx, 0x2000000
jne 0x1400c8258
and edx, 0x200000
je 0x1400c82b8
xor r12d, r12d
mov eax, r12d
add rsp, 0x70
pop rbx
pop r12
pop r13
ret
test cl, 4
je 0x1400c81c7
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x1400c81c7
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov eax, dword [rbx + 0x7c]
test eax, eax
js 0x1400c8230
mov edx, dword [rbx + 0x58]
jmp 0x1400c81c7
lea rdx, str.src_win_tty.c
mov r8d, 0x423
lea rcx, [0x14029ebd7]
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [rbx + 0x58]
jmp 0x1400c81c7
mov r9d, 0x10
mov dword [rsp + 0x60], 0
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r8d, 1
mov word [rsp + 0x50], r9w
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400c81e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x1400c81ea
lea r12, [0x140584698]
mov rcx, r12
call fcn.1400c3790
mov eax, 2
xchg dword [0x1405846ec], eax
cmp eax, 1
je 0x1400c82f0
mov rcx, r12
call fcn.1400c3760
or dword [rbx + 0x58], 0x200000
jmp 0x1400c81e7
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov qword [rsp + 0x30], 0
lea rcx, str.conout_
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400c83c0
lea rdx, [0x1405846d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400c8458
mov ecx, 1
xor edx, edx
movabs rax, 0xd000100000001
mov word [rsp + 0x50], cx
mov ecx, 0xd
mov qword [rsp + 0x54], rax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0xd
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], r8w
lea r9, [rsp + 0x4c]
mov rcx, qword [rbx + 0x110]
mov r8d, 1
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x1400c8440
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c82df
mov eax, 1
xor edx, edx
mov ecx, 0xd
mov word [rsp + 0x50], ax
movabs rax, 0xd000100000001
mov qword [rsp + 0x54], rax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, 0xd
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], dx
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x50]
mov r8d, 1
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400c82df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x1400c81ea
jmp 0x1400c82df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r13
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c842b
lock or dword [0x1405846e8], 1
jmp 0x1400c8349
Function at 0x1400c8dd0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2d8
cmp qword [rdx + 0x70], 0xffffffffffffffff
mov rbp, rcx
mov rsi, rdx
mov rbx, r8
mov edi, r9d
mov dword [rsp + 0x48], 1
jne 0x1400c8f70
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400c8eb8
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400c8ea0
xor r9d, r9d
mov rdx, qword [rbp + 0x38]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400c8ea0
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x4c], 0x274
mov qword [rsp + 0x20], rax
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400c8ea0
cmp dword [rsp + 0x78], 1
je 0x1400c8f10
mov edx, dword [rsi + 0x58]
mov qword [rsi + 0x70], rbx
cmp edi, 0x17
je 0x1400c8ef8
xor eax, eax
and edx, 0x400000
jne 0x1400c8ed0
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x3c], eax
mov r8d, 0x79
lea rdx, str.src_win_udp.c
lea rcx, str.__handle__flags__UV_HANDLE_IPV6_
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
jmp 0x1400c8e94
or edx, 0x400000
xor eax, eax
mov dword [rsi + 0x58], edx
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400c8f50
mov rax, qword [0x1402af3f0]
mov edx, dword [rsi + 0x58]
mov qword [rsi + 0x198], rax
mov rax, qword [0x1402af400]
or edx, 0x20000
mov dword [rsi + 0x58], edx
mov qword [rsi + 0x1a0], rax
jmp 0x1400c8e81
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
je 0x1400c8e7e
call rbp
jmp 0x1400c8e94
mov eax, 0xfffff00e
jmp 0x1400c8e94