joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d09d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x4d0a40
test ah, 0x80
je 0x4d0a50
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x4d0a20
cmp eax, 0xe
je 0x4d0a30
mov r8d, 0xfffff008
cmp eax, 7
je 0x4d0a18
mov r8d, 0xc0
lea rdx, str.src_win_stream.c
lea rcx, [0x0071cf81]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x4d2910
add rsp, 0x28
jmp 0x4d9460
mov r8d, 0xfffff00d
jmp 0x4d0a18
mov r8d, 0xfffff031
jmp 0x4d0a18
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x4d2978
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 0x4d2960
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.004bb150
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x4d2957
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x4d94b8
lea r9, [rsp + 0x2c]
call fcn.004d5920
test eax, eax
jne 0x4d94a0
mov edx, r13d
mov rcx, r12
call fcn.004b9300
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
call fcn.004bb150
add rsp, 0x38
pop r12
pop r13
ret
mov eax, 0xfffff008
jmp 0x4d9491
Function at 0x4d1280
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 0x4d12f2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x4d12d0
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 0x4d12c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
pop rbx
pop r12
ret

Function at 0x4d1300
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [r8], 0xffffffffffffffff
mov rbp, rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
mov dword [rsp + 0x48], 1
jne 0x4d1528
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, r9
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4d13f0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4d13e0
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 0x4d1400
mov edx, dword [rsi]
mov eax, edx
and eax, 0x80000
cmp dword [rsp + 0xa0], 0x17
je 0x4d1428
mov rcx, qword [0x0072c6c0]
mov ecx, dword [rcx]
or ecx, eax
je 0x4d14e8
test edx, 0x1000000
jne 0x4d1470
test edx, 0x2000000
jne 0x4d14ac
cmp dword [rsp + 0xa0], 0x17
mov qword [rdi], rbx
je 0x4d14d0
xor eax, eax
and edx, 0x400000
jne 0x4d1440
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 + 0xa8]
test eax, eax
je 0x4d13e0
mov edx, dword [rsi]
mov eax, 0x80000
or edx, 0x80000
cmp dword [rsp + 0xa0], 0x17
mov dword [rsi], edx
jne 0x4d138e
mov rcx, qword [0x0072c6d0]
mov ecx, dword [rcx]
jmp 0x4d1397
mov dword [rsp + 0x3c], eax
mov r8d, 0x93
lea rdx, str.src_win_tcp.c
lea rcx, [0x0071d088]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
jmp 0x4d13d2
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 0x4d1510
mov edx, dword [rsi]
test edx, 0x2000000
je 0x4d13b7
mov r8d, 0x3c
mov edx, 1
mov rcx, rbx
call fcn.004d1280
test eax, eax
jne 0x4d13d2
mov edx, dword [rsi]
jmp 0x4d13b7
or edx, 0x400000
xor eax, eax
mov dword [rsi], 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 0x4d13e0
mov edx, dword [rsi]
or edx, 0x20000
mov dword [rsi], edx
jmp 0x4d139f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4d13d2
jmp 0x4d149e
mov eax, 0xfffff00e
jmp 0x4d13d2
Function at 0x4d1540
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 0x4d15a8
cmp ax, 0x17
je 0x4d1628
mov r8d, edi
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4d1660
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 0x4d15ba
mov r13d, 0x57
cmp ax, 0x17
jne 0x4d1592
movzx ecx, ax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x4d1688
movzx eax, word [r12]
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x58]
mov r9, r14
mov dword [rsp + 0x28], 0
lea r8, [rbx + 0x110]
mov dword [rsp + 0x20], eax
call fcn.004d1300
mov r13d, eax
test eax, eax
jne 0x4d16a0
movzx eax, word [r12]
mov rcx, qword [rbx + 0x110]
cmp ax, 0x17
jne 0x4d1573
nop dword [rax]
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 0x4d1573
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0x2740
jne 0x4d1592
mov dword [rbx + 0x118], 0x2740
jmp 0x4d1588
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
jmp 0x4d1592
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4d1592
Function at 0x4d2910
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x4d0a40
test ah, 0x80
je 0x4d0a50
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x4d0a20
cmp eax, 0xe
je 0x4d0a30
mov r8d, 0xfffff008
cmp eax, 7
je 0x4d0a18
mov r8d, 0xc0
lea rdx, str.src_win_stream.c
lea rcx, [0x0071cf81]
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0xfffff02a
mov eax, r8d
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x4d2910
add rsp, 0x28
jmp 0x4d9460
mov r8d, 0xfffff00d
jmp 0x4d0a18
mov r8d, 0xfffff031
jmp 0x4d0a18
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x4d2978
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 0x4d2960
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.004bb150
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x4d2957
push r13
push r12
sub rsp, 0x38
mov eax, dword [rcx + 0x100]
mov r12, rdx
mov r13d, r8d
test eax, eax
jne 0x4d94b8
lea r9, [rsp + 0x2c]
call fcn.004d5920
test eax, eax
jne 0x4d94a0
mov edx, r13d
mov rcx, r12
call fcn.004b9300
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, dword [rsp + 0x2c]
call fcn.004bb150
add rsp, 0x38
pop r12
pop r13
ret
mov eax, 0xfffff008
jmp 0x4d9491
Function at 0x4d30a0
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 0x4d30d1
mov r8d, 0x459
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 0x4d31a0
mov eax, dword [r12 + 0x40]
test eax, eax
js 0x4d3165
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 0x4d3160
mov rax, qword [rbx + 0x130]
mov qword [r12 + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], r12
test rax, rax
je 0x4d317e
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x4d3185
nop dword [rax]
mov r8d, 0x480
lea rdx, str.src_win_tcp.c
lea rcx, [0x0071d14f]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x4d3185
mov rcx, qword [r12 + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
jne 0x4d3238
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x4d3140
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x4d3195
test dl, 1
jne 0x4d3210
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x4d317e
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x4d3250
test al, 1
jne 0x4d31d8
test al, 4
je 0x4d31d8
mov edx, eax
and edx, 0xffffffbb
mov dword [rbx + 0x58], edx
test al, 8
je 0x4d31d8
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop dword [rax]
cmp qword [rbx + 0x100], 0
je 0x4d317e
mov rcx, qword [r12 + 0x40]
call fcn.004de9c0
mov r12, qword [rbx + 0x100]
mov ecx, eax
call fcn.004bb150
mov rcx, rbx
mov edx, eax
call r12
jmp 0x4d317e
test dl, 0x20
jne 0x4d3195
mov rax, qword [rsi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
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.004d0ba0
jmp 0x4d317e
jns 0x4d31d8
mov r8d, 0x461
lea rdx, str.src_win_tcp.c
lea rcx, [0x0071d225]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4d31d8
Function at 0x4d3280
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 0x4d32b2
mov r8d, 0x488
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
call qword [sym.imp.msvcrt.dll__assert]
sub dword [rbx + 0x7c], 1
jne 0x4d33c0
mov eax, dword [rbx + 0x58]
test al, 1
je 0x4d3358
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x4d33eb
mov rcx, qword [r12 + 0x40]
sub eax, 1
mov dword [rsi + 0x20], eax
test ecx, ecx
js 0x4d341b
mov ecx, 0x3e3
test byte [rbx + 0x58], 1
je 0x4d3380
mov rdi, qword [r12 + 0x70]
call fcn.004bb150
mov rcx, r12
mov edx, eax
call rdi
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x4d3430
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x4d3320
test dl, 1
jne 0x4d3330
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
test dl, 0x20
jne 0x4d3320
mov rax, qword [rsi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
test al, 4
je 0x4d32c7
mov edx, eax
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test al, 8
je 0x4d32c7
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x4d32c7
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 0x4d3458
or dword [rbx + 0x58], 0xc080
add dword [rsi + 0xa8], 1
jmp 0x4d32f4
jns 0x4d32c7
mov r8d, 0x48a
lea rdx, str.src_win_tcp.c
lea rcx, [0x0071d118]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x4d32d2
lea rcx, [0x0071d133]
mov r8d, 0x48a
lea rdx, str.src_win_tcp.c
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsi + 0x20]
mov rcx, qword [r12 + 0x40]
sub eax, 1
mov dword [rsi + 0x20], eax
test ecx, ecx
jns 0x4d32e5
call fcn.004de9c0
mov ecx, eax
jmp 0x4d32f4
mov r8d, 0x4a1
lea rdx, str.src_win_tcp.c
lea rcx, [0x0071d14f]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x4d3310
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x4d32f4

Function at 0x4d3660
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 0x4d36a8
mov eax, dword [rbx + 0x58]
test esi, esi
jne 0x4d3690
and eax, 0xfeffffff
mov dword [rbx + 0x58], eax
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
or eax, 0x1000000
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 0x4d3678
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4d3689
jmp 0x4d3678
Function at 0x4d3f80
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 0x4d3f60
xor eax, eax
lock cmpxchg qword [rbx + 8], r12
mov r13, rax
test rax, rax
jne 0x4d3f20
call rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4d3f00
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 0x4d3eee
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 0x4d3ef1
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.004bb090
nop
nop word cs:[rax + rax]
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x00a09f40], eax
cmp eax, 0xffffffff
je 0x6c7ec0
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
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop

Function at 0x4d3fc0
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 0x4d40b8
mov rbx, qword [rdx + 8]
test rbx, rbx
jne 0x4d4088
mov ecx, 0x18
call fcn.004b75d0
mov r12, rax
test rax, rax
je 0x4d40bf
mov qword [rax], rdi
xor ecx, ecx
mov r9, rax
lea r8, [0x004d4940]
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 0x4d4068
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, r12
mov ebx, dword [rax]
call fcn.004b75f0
mov eax, 0xfffff01a
cmp ebx, 0x16
ja 0x4d4078
lea rax, [0x0071d3a0]
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 edx, dword [rsp + 0x34]
lea rbx, [rbx + rdx - 1]
neg rdx
and rbx, rdx
mov eax, ebx
cmp rax, rbx
je 0x4d3fe9
mov eax, 0xfffff019
jmp 0x4d4078
xor ebx, ebx
jmp 0x4d3fe9
mov eax, 0xfffff027
jmp 0x4d4078
Function at 0x4d4920
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6c7efc
add rsp, 0x28
ret

Function at 0x4d5790
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 r13, qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, byte [rsp + 0xc0]
mov rbx, rcx
mov r12d, edx
mov ebp, r9d
movzx edi, r8b
lea rsi, [rsp + 0x30]
jmp 0x4d5801
mov dword [rsp + 0x20], r14d
mov edx, r12d
mov rcx, rsi
mov r9d, ebp
mov r8d, edi
call fcn.004d5560
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x4d5828
call r15
cmp eax, 0x57
jne 0x4d5840
mov rcx, qword [rbx + 0x110]
mov rdx, rsi
call r13
test eax, eax
jne 0x4d57d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xc8]
mov dword [rdx], eax
jmp 0x4d57d0
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call r15
mov rdi, qword [rsp + 0xc8]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x4d582a
Function at 0x4d8eb0
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 edx, ecx
and dh, 0xef
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x4d8f90
test cl, 1
je 0x4d8f08
test edx, 0x10000
je 0x4d8ef2
test edx, 0x2000000
jne 0x4d8f30
and edx, 0x200000
je 0x4d8fc0
xor r12d, r12d
mov eax, r12d
add rsp, 0x70
pop rbx
pop r12
pop r13
ret
test cl, 4
je 0x4d8ed6
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x4d8ed6
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x4d8ed6
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 0x4d8ef2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x4d8ef5
jns 0x4d8ed6
lea rdx, str.src_win_tty.c
mov r8d, 0x40e
lea rcx, [0x0071d987]
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [rbx + 0x58]
jmp 0x4d8ed6
lea rcx, [0x00a09f68]
call fcn.004d45c0
mov eax, 2
xchg dword [0x00a09fcc], eax
cmp eax, 1
je 0x4d8ff8
lea rcx, [0x00a09f68]
call fcn.004d4590
or dword [rbx + 0x58], 0x200000
jmp 0x4d8ef2
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 0x4d90c8
lea rdx, [0x00a09fb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x4d9160
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 0x4d9148
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d8fe8
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 0x4d8fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x4d8ef5
jmp 0x4d8fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r13
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d9133
lock or dword [0x00a09fc8], 1
jmp 0x4d9051
Function at 0x4d9a30
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 0x4d9bd0
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4d9b18
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4d9b00
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 0x4d9b00
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 0x4d9b00
cmp dword [rsp + 0x78], 1
je 0x4d9b70
mov edx, dword [rsi + 0x58]
mov qword [rsi + 0x70], rbx
cmp edi, 0x17
je 0x4d9b58
xor eax, eax
and edx, 0x400000
jne 0x4d9b30
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 0x4d9af4
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 0x4d9bb0
mov rax, qword [0x0072c6e0]
mov edx, dword [rsi + 0x58]
mov qword [rsi + 0x198], rax
mov rax, qword [0x0072c6f0]
or edx, 0x20000
mov dword [rsi + 0x58], edx
mov qword [rsi + 0x1a0], rax
jmp 0x4d9ae1
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
je 0x4d9ade
call rbp
jmp 0x4d9af4
mov eax, 0xfffff00e
jmp 0x4d9af4
Function at 0x4d9be0
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r12d, r12d
mov rbx, rcx
mov r13, rdx
mov edi, r8d
mov esi, r9d
mov dword [rsp + 0x38], 0
test byte [rcx + 0x59], 0x20
jne 0x4d9c59
mov ebp, r9d
and ebp, 1
je 0x4d9c1f
cmp word [rdx], 0x17
mov r12d, 0x57
jne 0x4d9c59
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x4d9ce0
and esi, 4
jne 0x4d9c70
cmp word [r13], 0x17
je 0x4d9cab
mov r8d, edi
mov rdx, r13
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4d9d20
or dword [rbx + 0x58], 0x2000
xor r12d, r12d
mov eax, r12d
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], 1
mov edx, 0xffff
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4d9d20
cmp word [r13], 0x17
mov rcx, qword [rbx + 0x70]
jne 0x4d9c3a
or dword [rbx + 0x58], 0x400000
test ebp, ebp
jne 0x4d9c3a
lea r9, [rsp + 0x38]
mov r8d, 0x1b
mov edx, 0x29
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x4d9c3a
movzx ecx, word [r13]
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x4d9d20
mov rcx, qword [rbx + 8]
movzx r9d, word [r13]
mov r8, rax
mov rdx, rbx
call fcn.004d9a30
mov r12d, eax
test eax, eax
jne 0x4d9d30
mov rcx, qword [rbx + 0x70]
jmp 0x4d9c2d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x4d9c59
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4d9c59