joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b4b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1401fe208]
test esi, esi
je 0x1401b4bf8
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1401b4bef
je 0x1401b4bed
movzx eax, byte [0x14031a2c8]
mov edx, 0x10
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x1401b4c19
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1401b4be8
mov rax, qword [rdi]
test rax, rax
je 0x1401b4bd7
lock dec qword [rax]
jne 0x1401b4bd7
mov rcx, qword [rdi]
call fcn.1401b2ab0
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, rdi
call fcn.1401fb9c4
mov rax, rsi
jmp 0x1401b4bef
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401fe1f0]
call fcn.1401b4d10
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401b4b7a
jmp 0x1401b4bef
mov ecx, 8
mov edx, 0x10
call fcn.140033f80
int3

Function at 0x1401b4d10
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x1401b4da5
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x1401b4de4
cmp dword [rbp], 0
je 0x1401b4dc8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1401b4e07
mov edi, eax
mov rax, qword [0x14031d038]
mov rax, qword [0x14031a2a8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14031a2a8], rsi
jne 0x1401b4d80
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1401b4dd9
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1401b4e49
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1401b4dcd
mov edi, dword [rbp + 4]
jmp 0x1401b4dd9
mov edi, dword [rsi + 0x18]
jmp 0x1401b4dd7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x1402db128]
lea r9, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.1401b4e80
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.1400567b0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.1401b4ec0
int3
Function at 0x1401b5740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1401fe1a8]
test esi, esi
je 0x1401b57ce
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1401b57c5
je 0x1401b57c3
movzx eax, byte [0x14031a2c8]
mov edx, 0x18
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x1401b57ef
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1401b57be
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, rdi
call fcn.1401fb9c4
mov rax, rsi
jmp 0x1401b57c5
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401fe190]
call fcn.1401b4d10
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401b5766
jmp 0x1401b57c5
mov ecx, 8
mov edx, 0x18
call fcn.140033f80
int3
Function at 0x1401b6e90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d8], rcx
mov qword [rbp + 0x3e0], 0
mov qword [rbp + 0x3e8], 2
mov qword [rbp + 0x3f0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1401b6f20
jmp 0x1401b6f0f
jae 0x1401b6fea
cmp r8, 0x201
jae 0x1401b6f20
mov r14d, 0x200
lea r15, [rbp - 0x50]
mov r12, r8
jmp 0x1401b6f86
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401b6f5e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e0]
mov rdx, rbx
call fcn.1401b8f90
mov rsi, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.kernel32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x1401b6fac
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1401b7052
mov r8d, r13d
cmp r12, r8
jne 0x1401b6f00
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401b7083
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1401b6f0f
jmp 0x1401b6f20
cmp r14, r8
jb 0x1401b709d
lea rcx, [rbp + 0x3b0]
mov rdx, r15
call fcn.1401b7d50
movups xmm0, xmmword [rbp + 0x3b0]
movups xmm1, xmmword [rbp + 0x3c0]
mov rax, qword [rbp + 0x3d8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp + 0x3e0], 0
je 0x1401b703d
mov r8, qword [rbp + 0x3e8]
mov rcx, qword [0x14031a288]
xor edx, edx
call fcn.1401fb9c4
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3d8]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rbp + 0x3e0], 0
jne 0x1401b7028
jmp 0x1401b703d
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_actual_state__EMPTY__actual_state__NOTIFIEDassertion_failed:_self.tail.is_none__
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400576c0
jmp 0x1401b70b2
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140057200
ud2
Function at 0x1401d4a90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x308
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r8, rdx
mov qword [rbp + 0x270], rcx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1401d4ad8
xor edx, edx
div r8
jmp 0x1401d4add
xor edx, edx
div r8d
mov qword [rbp + 0x240], rax
cmp r8, 0x1001
mov qword [rbp + 0x260], r8
mov rax, r8
jae 0x1401d4b13
shr rax, 1
sub r8, rax
cmp r8, 0x40
mov eax, 0x40
cmovb rax, r8
mov qword [rbp + 0x268], rax
jmp 0x1401d4b3b
or rax, 1
bsr rcx, rax
xor ecx, 0xffffffc0
add ecx, 0x41
shr ecx, 1
mov eax, 1
shl rax, cl
shr r8, cl
add r8, rax
shr r8, 1
mov qword [rbp + 0x268], r8
mov rax, qword [rbp + 0x270]
lea rcx, [rax + 0x20]
mov qword [rbp + 0x248], rcx
lea rcx, [rax + 0x10]
mov qword [rbp + 0x228], rcx
add rax, 0xfffffffffffffff0
mov qword [rbp + 0x238], rax
mov r15d, 1
xor r13d, r13d
xor r10d, r10d
mov qword [rbp + 0x278], r9
mov qword [rbp + 0x280], rsi
mov r11, qword [rbp + 0x260]
sub r11, r13
ja 0x1401d4bb0
nop dword [rax]
Function at 0x1401d9690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x1401d9701
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x1401d9701
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x1401d9701
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1401d97dc
cmp byte [rdx], 0xed
jne 0x1401d97e5
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x1401d97e5
add byte [rax], al
invalid
cmp rbx, 3
jb 0x1401d9741
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x1401d98cf
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [0x140208400]
por xmm6, xmmword [0x140208410]
cmp rcx, 3
jbe 0x1401d9901
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x1401d9873
test rdi, rdi
je 0x1401d9870
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x1401d9808
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x1401d9870
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1401d9800
cmp r10b, 0xe0
jb 0x1401d97ee
cmp r10b, 0xed
jne 0x1401d983f
cmp r8, rax
je 0x1401d9870
lea r8, [r9 + 2]
cmp r8, rax
je 0x1401d9870
cmp byte [r9 + 1], 0x9f
ja 0x1401d986c
add r9, 3
mov r8, r9
jmp 0x1401d9800
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x1401d9800
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x1401d9800
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1401d98a2
add rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.1401b8f90
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1401d987b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.1401b8f90
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x1401d9760
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.1401b8f90
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x1401d97be
Function at 0x1401da5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1401fe1c8]
test esi, esi
je 0x1401da668
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1401da65f
je 0x1401da65d
movzx eax, byte [0x14031a2c8]
mov edx, 0x10
xor ecx, ecx
call fcn.1401dbaa0
test rax, rax
je 0x1401da689
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1401da658
mov rax, qword [rdi]
test rax, rax
je 0x1401da647
lock dec qword [rax]
jne 0x1401da647
mov rcx, qword [rdi]
call fcn.1401da6a0
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, rdi
call fcn.1401fb9c4
mov rax, rsi
jmp 0x1401da65f
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401fe1b0]
call fcn.1401b4d10
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401da5ea
jmp 0x1401da65f
mov ecx, 8
mov edx, 0x10
call fcn.140033f80
int3
Function at 0x1401daec0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov eax, dword [0x14031a298]
cmp eax, 3
jne 0x1401db0ac
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1401db0d2
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1401daf58
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1401db014
inc rdx
cmp rax, rdx
jne 0x1401daf40
jmp 0x1401db077
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1401daf8e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1401db014
inc rdx
cmp rcx, rdx
jne 0x1401daf70
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1401daf92
jmp 0x1401dafe0
lea rdx, [rdi - 0xf]
movabs r8, 0x8080808080808080
movabs r9, 0x101010101010100
nop word cs:[rax + rax]
mov r10, qword [rbp + rcx - 0x60]
mov r11, qword [rbp + rcx - 0x58]
mov rbx, r9
sub rbx, r11
or rbx, r11
mov r11, r9
sub r11, r10
or r11, r10
and r11, r8
and r11, rbx
cmp r11, r8
jne 0x1401dafe0
add rcx, 0x10
cmp rcx, rdx
jbe 0x1401dafb0
sub rax, rcx
je 0x1401db077
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1401db011
inc rdx
cmp rax, rdx
jne 0x1401db000
jmp 0x1401db077
add rdx, rcx
cmp rdx, rdi
jne 0x1401db077
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1401db08b
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401db0a3
lea rax, [0x1402da658]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401db0e4
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1401db0e4
mov rbx, rdx
call fcn.1401db460
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x1401daf15
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.1401db4d0
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401db4d0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x1401db6e7
mov rbx, r8
mov r15, r8
inc r15
js 0x1401db6f3
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14031a2c8]
xor ecx, ecx
mov rdx, r15
call fcn.1401dbaa0
test rax, rax
je 0x1401db6f8
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0x10
jae 0x1401db568
test rbx, rbx
je 0x1401db60f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x1401db672
inc rax
cmp rbx, rax
jne 0x1401db550
jmp 0x1401db60f
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x1401db5c1
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x8080808080808080
movabs r8, 0x101010101010100
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, r8
sub r11, r10
or r11, r10
mov r10, r8
sub r10, r9
or r10, r9
and r10, rdx
and r10, r11
cmp r10, rdx
jne 0x1401db5ec
add rax, 0x10
cmp rax, rcx
jbe 0x1401db590
jmp 0x1401db5ec
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x1401db672
inc rcx
cmp rax, rcx
jne 0x1401db5d0
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x1401db57b
cmp rax, rbx
je 0x1401db60f
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x1401db672
inc rax
cmp rbx, rax
jne 0x1401db600
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.140034060
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1401db6a3
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401db6b7
lea rax, [0x1402da658]
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.1401fb9c4
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x1401db6d7
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, rbx
call fcn.1401fb9c4
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [0x14020a3b0]
call fcn.14005c6c0
call fcn.140033f40
mov ecx, 1
mov rdx, r15
call fcn.140033f20
int3
Function at 0x1401de740
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov esi, 1
test cl, 1
jne 0x1401de8c0
mov eax, dword [0x14031a298]
cmp eax, 3
jne 0x1401de8d0
mov r15, rdx
cmp byte [rdx], 0
mov eax, 0x17
mov ebx, 2
cmovne ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401de7d8
test byte [r15], 1
je 0x1401de84b
movups xmm0, xmmword [r15 + 4]
mov eax, dword [r15 + 0x14]
mov edx, dword [r15 + 0x18]
movzx ecx, word [r15 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1401de862
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1401de7f2
mov r14d, eax
cmp eax, 0x2726
jne 0x1401de8b5
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1401de8ad
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1401de7ac
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call sub.ws2_32.dll_closesocket
jmp 0x1401de8b5
mov eax, dword [r15 + 2]
movzx ecx, word [r15 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp - 0x14], r9w
mov word [rbp - 0x12], cx
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], edx
lea rdx, [rbp - 0x14]
mov rcx, rdi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x1401de891
xor esi, esi
mov rdx, rdi
jmp 0x1401de8c0
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call sub.ws2_32.dll_closesocket
mov rdx, rbx
jmp 0x1401de8c0
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov rdx, r14
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, rdx
call fcn.1401db460
mov rdx, rdi
jmp 0x1401de76e
Function at 0x1401e02b0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r8
mov rbx, rdx
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1401e045f
mov r14, qword [rcx + 0x10]
mov r12, qword [rcx + 0x20]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
jmp 0x1401e0325
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, rbp
call fcn.1401fb9c4
dec r13
mov rcx, qword [0x14031a288]
xor edx, edx
mov r8, r13
call fcn.1401fb9c4
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rbx
mov r9b, 1
call fcn.1401e8de0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x1401e047c
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x1401e0496
movzx edi, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401e04a0
test r12, r12
sete sil
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.14009ff60
cmp al, 0xd
setne al
or al, sil
jne 0x1401e03d1
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x1401e04b9
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.14009fce0
test rax, rax
cmovne r13, rax
mov rcx, r13
call fcn.14019b450
cmp al, 0xd
jne 0x1401e048f
and ebp, 0x23
mov rax, qword [r14 + 0x90]
xor rbp, 0x2f
mov ecx, edi
shl ecx, 0x10
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x1401e041c
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r14 + 0x90], rdx
jne 0x1401e0400
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x1401e0325
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x1401e0440
mov rcx, rbp
call rax
cmp qword [rdi + 8], 0
je 0x1401e0311
cmp qword [rdi + 0x10], 0x11
jb 0x1401e0300
mov rbp, qword [rbp - 8]
jmp 0x1401e0300
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
mov r8, rbx
mov r9b, 1
call fcn.1401e8de0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x1401e0486
mov eax, 2
mov r13, rbp
jmp 0x1401e04a5
cmp al, 2
jne 0x1401e04bb
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x1401e04a5
mov eax, 1
mov r13, rbp
jmp 0x1401e04a5
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str._redacted_
call fcn.14005c6c0
int3