joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b5390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
mov r15, rcx
mov rbx, rdx
mov r13, r8
mov rsi, r9
cmp rdx, 2
jbe 0x1400b54c0
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x1400b5528
cmp ax, 0x2f
je 0x1400b5528
cmp word [rcx + 2], 0x3a
je 0x1400b55e0
nop dword [rax + rax]
lea rcx, [rsi + rbp + 4]
add rcx, r14
add rcx, rbx
add rcx, rcx
call fcn.14009f970
mov rdx, qword [rsp + 0xa0]
mov r8, r14
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
lea rdi, [r12 + r14*2]
test r14, r14
jne 0x1400b5570
mov rcx, rdi
mov r8, rbx
lea rdi, [rdi + rbx*2]
mov rdx, r15
call sub.msvcrt.dll_wcsncpy
test rbx, rbx
jne 0x1400b55b0
mov r8, rsi
mov rdx, r13
lea rbx, [rdi + rsi*2]
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test rbp, rbp
je 0x1400b5488
test rsi, rsi
je 0x1400b5471
cmp word [rbx - 2], 0x2e
je 0x1400b5471
mov edx, 0x2e
add rbx, 2
mov word [rbx - 2], dx
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
lea rbx, [rbx + rbp*2]
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, r12
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b55a0
test al, 0x10
jne 0x1400b55a0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rdx, rdx
je 0x1400b53f0
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x1400b5539
cmp ax, 0x5c
je 0x1400b5539
cmp rdx, 2
jne 0x1400b53f0
cmp word [rcx + 2], 0x3a
jne 0x1400b53f0
cmp r14, 1
ja 0x1400b5600
lea rcx, [rsi + rbp + 4]
add rcx, rbx
add rcx, rcx
call fcn.14009f970
mov rdx, qword [rsp + 0xa0]
xor r8d, r8d
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov r12, rdi
jmp 0x1400b5426
movzx eax, word [r15 + 2]
cmp ax, 0x5c
je 0x1400b54f7
cmp ax, 0x2f
je 0x1400b54f7
mov edi, 4
mov r14d, 2
lea rcx, [rsi + rbp + 4]
add rcx, rbx
add rcx, r14
add rcx, rcx
call fcn.14009f970
mov rdx, qword [rsp + 0xa0]
mov r8, r14
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
add rdi, r12
movzx edx, word [rdi - 2]
lea rcx, [0x14029e670]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x1400b5426
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x1400b5426
mov rcx, r12
xor r12d, r12d
call fcn.14009f990
jmp 0x1400b54a7
movzx edx, word [rdi - 2]
lea rcx, [0x14029e670]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x1400b5441
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x1400b5441
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x1400b54f7
cmp ax, 0x5c
jne 0x1400b54ed
jmp 0x1400b54f7
mov rcx, qword [rsp + 0xa0]
mov r8d, 2
mov rdx, r15
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400b54f7
add r15, 4
sub rbx, 2
lea rdi, [r14 + r14]
jmp 0x1400b5544
Function at 0x1400b5720
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
mov r12, rcx
mov ebx, edx
cmp edx, 0x1c
ja 0x1400b5800
cmp edx, 2
je 0x1400b577f
jg 0x1400b5770
mov eax, 0xfffff02a
test edx, edx
jne 0x1400b5766
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400b57c0
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
cmove eax, ebx
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
cmp edx, 9
je 0x1400b577f
mov eax, 0xfffff02a
cmp edx, 0xf
jne 0x1400b5766
mov edx, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1400b5766
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
cmp eax, 5
je 0x1400b57d0
mov ecx, r13d
call fcn.1400a4200
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a4200
jmp 0x1400b5766
lea rdx, [rsp + 0x2c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400b57a5
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
jne 0x1400b5766
jmp 0x1400b57a5
mov eax, 0xfffff019
jmp 0x1400b5766
Function at 0x1400b8270
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x1400b82e0
test ah, 0x80
je 0x1400b82f0
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x1400b82c0
cmp eax, 0xe
je 0x1400b82d0
mov r8d, 0xfffff008
cmp eax, 7
je 0x1400b82b8
mov r8d, 0xbb
lea rdx, str.src_win_stream.c
lea rcx, [0x14029ecf1]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1400ba740
add rsp, 0x28
jmp 0x1400c1460
mov r8d, 0xfffff00d
jmp 0x1400b82b8
mov r8d, 0xfffff031
jmp 0x1400b82b8
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x1400ba7a8
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 0x1400ba790
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400a4200
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x1400ba787
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x1400c14b8
lea r9, [rsp + 0x2c]
call fcn.1400bd8b0
test eax, eax
jne 0x1400c14a0
mov edx, r13d
mov rcx, r12
call fcn.1400a2070
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400a4200
mov eax, 0xfffff008
jmp 0x1400c1491
Function at 0x1400b8ad0
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 0x1400b8c70
test eax, 0x10000
jne 0x1400b8c48
mov edx, eax
lea rdi, [rbx + 0xc0]
lea rcx, [0x140588020]
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 0x1400b8b6a
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x1400b8cf0
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 0x1400b8bf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400b8c98
mov eax, dword [rbx + 0x58]
test eax, 0x80000
je 0x1400b8be9
cmp qword [rbx + 0xf8], 0xffffffffffffffff
je 0x1400b8d20
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
and edx, 0x20000
je 0x1400b8bd4
mov qword [rbx + 0xe8], 0
mov eax, dword [rsp + 0x48]
mov qword [rbx + 0xc8], rax
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400b8cd4
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, [0x14029ee10]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x1400b8af5
mov r8d, 0x1e1
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029ede8]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x1400b8aea
mov rdi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rdi
test eax, eax
jle 0x1400b8d70
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 0x1400b8c23
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 0x1400b8b5f
mov dword [rsp + 0x28], 4
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov r9, rbp
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400b8940]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400b8be9
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
test eax, eax
jg 0x1400b8ca9
nop word [rax + rax]
call rdi
cdqe
jmp 0x1400b8cb5
Function at 0x1400b8d80
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 0x1400b8df2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x1400b8dd0
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 0x1400b8dc1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
pop rbx
pop r12
ret

Function at 0x1400b8e00
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 0x1400b9010
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400b8ef0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400b8ee0
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 0x1400b8f00
mov edx, dword [rsi + 0x58]
mov ecx, edx
and ecx, 0x80000
cmp edi, 0x17
je 0x1400b8f25
mov rax, qword [0x1402b0f90]
mov eax, dword [rax]
or eax, ecx
je 0x1400b8fe0
test edx, 0x1000000
jne 0x1400b8f60
test edx, 0x2000000
jne 0x1400b8fa1
mov qword [rsi + 0x110], rbx
cmp edi, 0x17
je 0x1400b8fc8
xor eax, eax
and edx, 0x400000
jne 0x1400b8f38
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 0x1400b8ee0
mov edx, dword [rsi + 0x58]
mov ecx, 0x80000
or edx, 0x80000
mov dword [rsi + 0x58], edx
cmp edi, 0x17
jne 0x1400b8e8f
mov rax, qword [0x1402b0fa0]
mov eax, dword [rax]
jmp 0x1400b8e98
mov dword [rsp + 0x3c], eax
mov r8d, 0x93
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029ee40]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
jmp 0x1400b8ed2
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 0x1400b9020
mov edx, dword [rsi + 0x58]
test edx, 0x2000000
je 0x1400b8eb8
mov r8d, 0x3c
mov edx, 1
mov rcx, rbx
call fcn.1400b8d80
test eax, eax
jne 0x1400b8ed2
mov edx, dword [rsi + 0x58]
jmp 0x1400b8eb8
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 0x1400b8ee0
mov edx, dword [rsi + 0x58]
or edx, 0x20000
mov dword [rsi + 0x58], edx
jmp 0x1400b8ea0
mov eax, 0xfffff00e
jmp 0x1400b8ed2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400b8ed2
jmp 0x1400b8f92
Function at 0x1400b9040
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 0x1400b90a8
cmp word [r12], 0x17
je 0x1400b9110
mov r8d, edi
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400b9158
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 0x1400b90b8
cmp ax, 0x17
jne 0x1400b9148
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400b9180
mov rcx, qword [rbx + 8]
movzx r9d, word [r12]
mov r8, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400b8e00
mov r13d, eax
test eax, eax
jne 0x1400b9198
cmp word [r12], 0x17
mov rcx, qword [rbx + 0x110]
jne 0x1400b9075
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 0x1400b9075
mov r13d, 0x57
jmp 0x1400b9094
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0x2740
jne 0x1400b9094
mov dword [rbx + 0x118], 0x2740
jmp 0x1400b908a
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 0x1400b9094
Function at 0x1400ba740
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x1400b82e0
test ah, 0x80
je 0x1400b82f0
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x1400b82c0
cmp eax, 0xe
je 0x1400b82d0
mov r8d, 0xfffff008
cmp eax, 7
je 0x1400b82b8
mov r8d, 0xbb
lea rdx, str.src_win_stream.c
lea rcx, [0x14029ecf1]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1400ba740
add rsp, 0x28
jmp 0x1400c1460
mov r8d, 0xfffff00d
jmp 0x1400b82b8
mov r8d, 0xfffff031
jmp 0x1400b82b8
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x1400ba7a8
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 0x1400ba790
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400a4200
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x1400ba787
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x1400c14b8
lea r9, [rsp + 0x2c]
call fcn.1400bd8b0
test eax, eax
jne 0x1400c14a0
mov edx, r13d
mov rcx, r12
call fcn.1400a2070
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400a4200
mov eax, 0xfffff008
jmp 0x1400c1491
Function at 0x1400baf10
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 0x1400baf41
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 0x1400bb018
mov eax, dword [r12 + 0x40]
test eax, eax
js 0x1400bafd5
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 0x1400bafd0
mov rax, qword [rbx + 0x130]
mov qword [r12 + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], r12
test rax, rax
je 0x1400bafee
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x1400baff5
nop dword [rax]
mov r8d, 0x4c4
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029f074]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x1400baff5
mov rcx, qword [r12 + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
jne 0x1400bb0b8
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x1400bafb0
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x1400bb009
test dl, 1
jne 0x1400bb090
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x1400bafee
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 0x1400bb058
test al, 1
jne 0x1400bb05c
test al, 4
je 0x1400bb05c
mov edx, eax
and edx, 0xffffffbb
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400bb05c
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov edx, dword [rbx + 0x7c]
nop dword [rax]
test edx, edx
js 0x1400bb0d0
cmp qword [rbx + 0x100], 0
je 0x1400bafee
mov ecx, dword [r12 + 0x40]
call fcn.1400c68c0
mov r12, qword [rbx + 0x100]
mov ecx, eax
call fcn.1400a4200
mov rcx, rbx
mov edx, eax
call r12
jmp 0x1400bafee
test dl, 0x20
jne 0x1400bb009
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.1400b8540
jmp 0x1400bafee
mov r8d, 0x4a5
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029f05b]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400bb05c
Function at 0x1400bb0f0
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 0x1400bb122
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 0x1400bb1c0
mov eax, dword [rbx + 0x58]
test al, 1
je 0x1400bb1a0
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x1400bb1ed
sub eax, 1
mov dword [rsi + 0x20], eax
mov ecx, dword [rbx + 0x118]
test ecx, ecx
je 0x1400bb21e
mov dword [rbx + 0x118], 0
mov rdi, qword [r12 + 0x70]
call fcn.1400a4200
mov rcx, r12
mov edx, eax
call rdi
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x1400bb2a8
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x1400bb191
test dl, 1
jne 0x1400bb280
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
test al, 4
je 0x1400bb138
mov edx, eax
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400bb138
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov eax, dword [rbx + 0x7c]
nop dword [rax + rax]
test eax, eax
jns 0x1400bb138
mov r8d, 0x4ce
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029f0c3]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x1400bb143
lea rcx, [0x14029ef18]
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 0x1400bb157
mov rax, qword [r12 + 0x40]
mov ecx, eax
test eax, eax
js 0x1400bb2d0
mov ecx, 0x3e3
test byte [rbx + 0x58], 1
jne 0x1400bb161
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 0x1400bb2e0
or dword [rbx + 0x58], 0xc080
add dword [rsi + 0xb0], 1
jmp 0x1400bb161
test dl, 0x20
jne 0x1400bb191
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, [0x14029f074]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x1400bb17d
call fcn.1400c68c0
mov ecx, eax
jmp 0x1400bb161
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x1400bb161

Function at 0x1400bb4d0
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 0x1400bb510
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 0x1400bb4e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test eax, eax
je 0x1400bb4e8
add rsp, 0x48
pop rbx
pop rsi
jmp fcn.1400a4200
Function at 0x1400bbf70
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 0x1400bbf50
xor eax, eax
lock cmpxchg qword [rbx + 8], r12
mov r13, rax
test rax, rax
jne 0x1400bbf10
call rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400bbef0
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 0x1400bbede
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 0x1400bbee1
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.1400a4140
nop
nop word cs:[rax + rax]
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140588040], eax
cmp eax, 0xffffffff
je 0x14027cc40
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 0x1400bc010
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 0x1400bc108
mov rbx, qword [rdx + 8]
test rbx, rbx
jne 0x1400bc0d8
mov ecx, 0x18
call fcn.14009f970
mov r12, rax
test rax, rax
je 0x1400bc10f
mov qword [rax], rdi
xor ecx, ecx
mov r9, rax
lea r8, [0x1400bbf90]
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 0x1400bc0b8
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, r12
mov ebx, dword [rax]
call fcn.14009f990
mov eax, 0xfffff01a
cmp ebx, 0x16
ja 0x1400bc0c8
lea rax, [0x14029f240]
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 0x1400bc039
mov eax, 0xfffff019
jmp 0x1400bc0c8
xor ebx, ebx
jmp 0x1400bc039
mov eax, 0xfffff027
jmp 0x1400bc0c8
Function at 0x1400bd5f0
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 0x1400bd660
mov dword [rsp + 0x20], r15d
mov edx, r13d
mov rcx, rsi
mov r9d, r12d
mov r8d, ebp
call fcn.1400bd3b0
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400bd680
call rdi
cmp eax, 0x57
jne 0x1400bd698
mov rcx, qword [rbx + 0x110]
mov rdx, rsi
call r14
test eax, eax
jne 0x1400bd630
call rdi
mov rdx, qword [rsp + 0xc8]
mov dword [rdx], eax
jmp 0x1400bd630
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 0x1400bd682