joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801ad140
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x40
call fcn.1803fdff0
sub rsp, rax
mov rbx, r8
mov r14, rdx
mov r8, qword [rsp + 0xb0]
mov rbp, rcx
mov edi, dword [r8]
mov dword [rsp + 0x30], edi
test edi, edi
je 0x1801ad1a5
mov rdx, qword [rsp + 0xa8]
test rbx, rbx
je 0x1801ad1a1
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x1801ad180
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0xa0]
mov esi, 1
mov ecx, dword [rax + 0xc]
lea r15, [rax + 0xc]
mov r10, qword [rsp + 0xb8]
mov r13d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x80], r12
bswap ecx
mov dword [rsp + 0x90], ecx
cmp rbx, 0x10
jb 0x1801ad2b3
mov rdi, qword [rsp + 0xa0]
mov eax, 0x10000000
nop
mov rdx, rbx
mov qword [rsp + 0x20], rdi
shr rdx, 4
cmp rdx, rax
cmova rdx, rax
add ecx, edx
mov r12, rdx
mov eax, ecx
sub r12, rax
cmp rax, rdx
cmovae r12, rdx
xor r8d, r8d
cmp rax, rdx
mov rdx, r14
cmovae r8d, ecx
mov rcx, rbp
mov dword [rsp + 0x90], r8d
mov r8, r12
call r10
mov ecx, dword [rsp + 0x90]
mov eax, ecx
bswap eax
mov dword [r15], eax
test ecx, ecx
jne 0x1801ad26c
mov r8d, r13d
mov eax, esi
mov rdx, r15
nop dword [rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x1801ad250
mov ecx, dword [rsp + 0x90]
mov r10, qword [rsp + 0xb8]
mov eax, 0x10000000
mov r9, qword [rsp + 0x98]
shl r12, 4
sub rbx, r12
add r14, r12
add rbp, r12
cmp rbx, 0x10
jae 0x1801ad1f0
mov edi, dword [rsp + 0x30]
mov r8, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x90], ecx
test rbx, rbx
je 0x1801ad332
mov r12, qword [rsp + 0xa8]
xorps xmm0, xmm0
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r12
movups xmmword [r12], xmm0
call r10
mov r8d, dword [rsp + 0x90]
add r8d, esi
bswap r8d
mov dword [r15], r8d
jne 0x1801ad310
nop dword [rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x1801ad2f0
nop word [rax + rax]
mov ecx, edi
inc edi
movzx eax, byte [r12 + rcx]
xor al, byte [rcx + rbp]
mov byte [r14 + rcx], al
sub rbx, 1
jne 0x1801ad310
mov rax, qword [rsp + 0xb0]
mov dword [rax], edi
jmp 0x1801ad335
mov dword [r8], edi
mov r12, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801ad410
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r15
mov eax, 0x28
call fcn.1803fdff0
sub rsp, rax
mov rsi, qword [rsp + 0x88]
mov r10, r9
mov r15, qword [rsp + 0x80]
mov rdi, r8
mov rbp, rdx
mov r12, rcx
mov ebx, dword [rsi]
test ebx, ebx
jns 0x1801ad45f
mov dword [rsi], 0xffffffff
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
je 0x1801ad484
test rdi, rdi
je 0x1801ad484
mov eax, ebx
dec rdi
movzx ecx, byte [rax + r15]
xor cl, byte [r12]
inc r12
mov byte [rbp], cl
inc rbp
inc ebx
and ebx, 0xf
jne 0x1801ad461
mov r9, qword [rsp + 0x90]
cmp rdi, 0x10
jb 0x1801ad549
mov qword [rsp + 0x60], r13
mov rsi, rbp
mov r13, rdi
mov qword [rsp + 0x20], r14
shr r13, 4
mov r14, r12
imul rax, r13, 0xfffffffffffffff0
sub rsi, r15
sub r14, r15
add rdi, rax
mov rax, r13
shl rax, 4
add rbp, rax
mov qword [rsp + 0x68], rbp
add r12, rax
mov rbp, qword [rsp + 0x78]
mov r8, rbp
mov rdx, r15
mov rcx, r15
call r9
cmp ebx, 0x10
jae 0x1801ad515
mov edx, reloc.WS2_32.dll_ntohs
mov eax, ebx
sub edx, ebx
add rax, r15
shr edx, 3
inc edx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r14 + rax]
xor rcx, qword [rax]
mov qword [rsi + rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x1801ad500
mov r9, qword [rsp + 0x90]
add rsi, 0x10
add r14, 0x10
xor ebx, ebx
sub r13, 1
jne 0x1801ad4d1
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
test rdi, rdi
je 0x1801ad576
mov r8, r10
mov rdx, r15
mov rcx, r15
call r9
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [r15 + rcx]
xor al, byte [r12 + rcx]
mov byte [rcx + rbp], al
sub rdi, 1
jne 0x1801ad560
mov dword [rsi], ebx
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801adf70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
mov eax, 0x20
call fcn.1803fdff0
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x1801adfa0
mov eax, 0xfffffffe
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, rbx
cmp rcx, rax
ja 0x1801ae092
cmp rcx, rbx
jb 0x1801ae092
mov qword [rsp + 0x40], rsi
mov esi, dword [rbp + 0x17c]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rbp + 0x30], rcx
test esi, esi
je 0x1801ae016
test rbx, rbx
je 0x1801ae072
movzx eax, byte [r14]
dec rbx
mov ecx, esi
inc r14
xor byte [rcx + rbp + 0x40], al
inc esi
and esi, 0xf
jne 0x1801adfe0
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov rdx, r12
mov rcx, rdi
call qword [rbp + 0x170]
jmp 0x1801ae01e
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov qword [rsp + 0x58], r15
mov r15, rbx
and r15, 0xfffffffffffffff0
je 0x1801ae044
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rdi
call qword [rbp + 0x168]
add r14, r15
sub rbx, r15
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x1801ae072
mov esi, ebx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rdi - 0x40]
xor byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x1801ae060
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov r12, qword [rsp + 0x50]
mov dword [rbp + 0x17c], esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x1801af030
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x20
call fcn.1803fdff0
sub rsp, rax
xor r13d, r13d
lea r14, [rcx + 0x40]
mov qword [rcx + 0x30], r13
mov rdi, r8
mov qword [rcx + 0x38], r13
mov rsi, rdx
mov qword [rcx + 0x178], r13
mov rbx, rcx
cmp r8, 0xc
jne 0x1801af089
movsd xmm0, qword [rdx]
mov edi, 1
movsd qword [rcx], xmm0
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov dword [rcx + 0xc], 0x1000000
jmp 0x1801af1b1
mov qword [rsp + 0x50], rbp
mov rbp, rdi
mov qword [rsp + 0x60], r15
lea r15, [rcx + 0x60]
mov qword [r14], r13
mov qword [rcx + 0x48], r13
cmp rdi, 0x10
jb 0x1801af151
mov qword [rsp + 0x58], r12
mov r12, rdi
shr r12, 4
imul rax, r12, 0xfffffffffffffff0
add rdi, rax
nop
movzx eax, byte [r14]
mov rdx, r15
xor al, byte [rsi]
mov rcx, r14
mov byte [r14], al
movzx eax, byte [rsi + 1]
xor byte [rbx + 0x41], al
movzx eax, byte [rsi + 2]
xor byte [rbx + 0x42], al
movzx eax, byte [rsi + 3]
xor byte [rbx + 0x43], al
movzx eax, byte [rsi + 4]
xor byte [rbx + 0x44], al
movzx eax, byte [rsi + 5]
xor byte [rbx + 0x45], al
movzx eax, byte [rsi + 6]
xor byte [rbx + 0x46], al
movzx eax, byte [rsi + 7]
xor byte [rbx + 0x47], al
movzx eax, byte [rsi + 8]
xor byte [rbx + 0x48], al
movzx eax, byte [rsi + 9]
xor byte [rbx + 0x49], al
movzx eax, byte [rsi + 0xa]
xor byte [rbx + 0x4a], al
movzx eax, byte [rsi + 0xb]
xor byte [rbx + 0x4b], al
movzx eax, byte [rsi + 0xc]
xor byte [rbx + 0x4c], al
movzx eax, byte [rsi + 0xd]
xor byte [rbx + 0x4d], al
movzx eax, byte [rsi + 0xe]
xor byte [rbx + 0x4e], al
movzx eax, byte [rsi + 0xf]
xor byte [rbx + 0x4f], al
call qword [rbx + 0x170]
add rsi, 0x10
sub r12, 1
jne 0x1801af0c0
mov r12, qword [rsp + 0x58]
test rdi, rdi
je 0x1801af17d
mov rcx, r14
sub rsi, rbx
nop dword [rax]
movzx eax, byte [rsi + rcx - 0x40]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdi, 1
jne 0x1801af160
mov rdx, r15
mov rcx, r14
call qword [rbx + 0x170]
shl rbp, 3
mov rdx, r15
bswap rbp
xor qword [rbx + 0x48], rbp
mov rcx, r14
call qword [rbx + 0x170]
mov rax, qword [r14]
mov edi, dword [rbx + 0x4c]
mov r15, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov qword [rbx], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 8], rax
bswap edi
mov qword [r14], r13
lea rdx, [rbx + 0x20]
mov qword [rbx + 0x48], r13
mov rcx, rbx
mov r8, qword [rbx + 0x188]
call qword [rbx + 0x180]
inc edi
bswap edi
mov dword [rbx + 0xc], edi
add rsp, 0x20
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801af9b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x78
call fcn.1803fdff0
sub rsp, rax
mov rax, qword [0x180594240]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx edi, byte [rcx]
mov rbp, r9
mov r10, qword [rsp + 0xe0]
mov r13, r9
mov r9, qword [rcx + 0x30]
mov r15, r8
mov rax, qword [rcx + 0x28]
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rbx, rcx
mov qword [rsp + 0x40], r10
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x48], rax
test dil, 0x40
jne 0x1801afa28
lea rdx, [rcx + 0x10]
mov r8, r9
call rax
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov r12d, reloc.WS2_32.dll_ntohs
xor esi, esi
mov r8d, edi
mov eax, r12d
and r8d, 7
mov ecx, esi
sub eax, r8d
mov dword [rsp + 0x40], r8d
mov byte [rbx], r8b
cmp eax, r12d
jae 0x1801afa68
mov edx, eax
add rdx, rbx
movzx eax, byte [rdx]
mov byte [rdx], sil
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
sub r8, 1
jne 0x1801afa51
movzx eax, byte [rbx + 0xf]
or rcx, rax
mov byte [rbx + 0xf], 1
cmp rcx, rbp
je 0x1801afa82
mov eax, 0xffffffff
jmp 0x1801afbad
mov rdi, rbp
shr rdi, 4
test rdi, rdi
je 0x1801afb03
lea rax, [rbx + 0x10]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call r10
shl rdi, 4
add r14, rdi
add r15, rdi
sub rbp, rdi
je 0x1801afb59
shr rdi, 4
lea r8, [rbx + 0x10]
mov r9, 0xfffffffffffffff8
mov rdx, rsi
sub r9, rbx
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
add rdx, rax
movzx ecx, dil
add rdx, rcx
shr rdi, 8
mov byte [r8], dl
lea rax, [r8 + r9]
shr rdx, 8
test rax, rax
je 0x1801afb08
test rdi, rdi
jne 0x1801afad0
test rdx, rdx
jne 0x1801afad0
jmp 0x1801afb08
test r13, r13
je 0x1801afb59
mov rdi, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov r8, rdi
mov rcx, rbx
call r13
test rbp, rbp
je 0x1801afb4a
mov rcx, rsi
nop dword [rax + rax]
movzx eax, byte [rcx + r14]
inc esi
xor al, byte [rsp + rcx + 0x50]
mov byte [rcx + r15], al
xor byte [rcx + rbx + 0x10], al
mov ecx, esi
cmp rcx, rbp
jb 0x1801afb30
lea rcx, [rbx + 0x10]
mov r8, rdi
mov rdx, rcx
call r13
jmp 0x1801afb63
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
sub r12d, dword [rsp + 0x40]
cmp r12d, 0x10
jae 0x1801afb84
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r12d
sub r8d, r12d
add rcx, rbx
xor edx, edx
call fcn.180436c50
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call r13
mov rax, qword [rsp + 0x50]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x58]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1803fd0a0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801b1a50
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1801b1bb9
mov eax, 8
call fcn.1803fdff0
sub rsp, rax
xor r10d, r10d
mov r11, rcx
cmp r8, rax
jb 0x1801b1b8d
lea rcx, [r9 - 1]
lea rax, [rdx - 1]
add rcx, r8
add rax, r8
cmp r9, rax
ja 0x1801b1a91
cmp rcx, rdx
jae 0x1801b1b8d
lea rax, [r8 - 1]
add rax, r11
cmp r9, rax
ja 0x1801b1aa6
cmp rcx, r11
jae 0x1801b1b8d
mov rcx, r11
mov qword [rsp + 0x10], rbx
sub rcx, rdx
mov qword [rsp], rdi
cmp r8, 0x40
jb 0x1801b1b47
mov rdi, r8
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r8
sub rsi, rdi
mov rbx, r9
lea rax, [rdx + 0x10]
sub rbx, rdx
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r10, rsi
jb 0x1801b1ae0
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x1801b1b7f
mov rbx, r8
and rbx, 0xfffffffffffffff8
mov rdi, r9
lea rax, [r10 + rdx]
sub rdi, rdx
nop dword [rax + rax]
movq xmm1, qword [rcx + rax]
add r10, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r10, rbx
jb 0x1801b1b60
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r10, r8
jae 0x1801b1bb5
sub r11, rdx
lea rax, [r10 + rdx]
sub r9, rdx
sub r8, r10
nop word [rax + rax]
movzx ecx, byte [rax + r11]
xor cl, byte [rax]
mov byte [rax + r9], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x1801b1ba0
add rsp, 8
ret
Function at 0x1801b1ca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
mov eax, 0x20
call fcn.1803fdff0
sub rsp, rax
mov rdi, qword [rcx + 0x28]
mov rbx, rdx
mov r15, rcx
cmp rdx, rdi
ja 0x1801b1ce0
shl rbx, 4
add rbx, qword [rcx + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rcx + 0x30]
cmp rbx, rcx
jb 0x1801b1d2d
sub rdx, rcx
lea r8, str.cryptomodesocb128.c
add rdx, 4
mov r9d, WSAStartup
and rdx, 0xfffffffffffffffc
add rdx, rcx
mov rcx, qword [r15 + 0x58]
mov qword [r15 + 0x30], rdx
shl rdx, 4
call fcn.18019b320
test rax, rax
jne 0x1801b1d29
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov qword [r15 + 0x58], rax
mov qword [rsp + 0x40], rbp
mov rbp, rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
mov r12, rbx
shl rbp, 4
sub r12, rdi
nop dword [rax]
mov rcx, qword [r15 + 0x58]
mov edx, 1
add rcx, rbp
movzx edi, byte [rcx]
lea rsi, [rcx + 0x10]
shr dil, 7
mov r8, rsi
neg dil
and dil, 0x87
call fcn.1801b1880
xor byte [rsi + 0xf], dil
add rbp, 0x10
sub r12, 1
jne 0x1801b1d50
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov qword [r15 + 0x28], rbx
shl rbx, 4
add rbx, qword [r15 + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1801b25f0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1803fdff0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1801b2a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
mov eax, 0x20
call fcn.1803fdff0
sub rsp, rax
mov rbx, rcx
mov esi, 0xffffffff
mov rcx, qword [rcx + 8]
call fcn.1801b8ab0
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [r14]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15, r15
jne 0x1801b2b0e
mov r8d, 0x106
lea rdx, str.crypto_threads_win.c
mov ecx, 0xf0
call fcn.18019b5e0
mov r15, rax
test rax, rax
jne 0x1801b2af0
mov r8d, 0x107
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_data___NULL
call fcn.18019b620
mov ecx, dword [r14]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rbx + 8]
lea r8, [0x1801b27a0]
xor ecx, ecx
call fcn.1801bada0
xor ecx, ecx
mov rax, r15
cmp qword [rax], 0
jne 0x1801b2b1f
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x1801b2be3
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x1801b2b13
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop dword [rax + rax]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2b40
mov rcx, qword [rbx + 0x18]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2b64
cmp r8d, eax
je 0x1801b2bc2
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2b90
mov r8d, eax
mov rax, qword [rbx + 0x18]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2bb4
cmp r8d, eax
jne 0x1801b2b80
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea rdx, [r15 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x1801b2c00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.1803fdff0
sub rsp, rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
call fcn.1801b8ab0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
lea rcx, [rbx + 0x10]
mov r8d, edi
mov edx, edi
nop dword [rax]
cmp qword [rcx], rsi
je 0x1801b2c75
inc r8d
inc rdx
add rcx, 0x18
cmp rdx, 0xa
jl 0x1801b2c50
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r8d
lea rcx, [rax + rax*2]
add dword [rbx + rcx*8 + 8], 0xffffffff
lea rbx, [rbx + rcx*8]
jne 0x1801b2cbc
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x1801b2cb5
mov r8d, 0x138
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_ret___0
call fcn.18019b620
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801b3af0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1803fdff0
sub rsp, rax
cmp dword [0x1805996c0], 0
jne 0x1801b3bad
xor edx, edx
mov dword [0x1805996c0], 1
mov r8d, 0x198
lea rcx, [0x1805996d0]
call fcn.180436c50
mov ecx, 0x202
lea rdx, [0x1805996d0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1801b3bad
call fcn.1801a0780
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1801a08a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1801a0a00
call fcn.1801a0780
lea r8, str.BIO_sock_init
mov edx, 0x98
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1801a08a0
xor r8d, r8d
mov edx, 0x7a
mov ecx, 0x20
call fcn.1801a0a00
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1801b3bc0
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1803fdff0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x1801b3c22
call fcn.1801a0780
lea r8, str.BIO_socket_ioctl
mov edx, 0xf4
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1801a08a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1801a0a00
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x1801b3c30
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1803fdff0
sub rsp, rax
mov rax, qword [0x180594240]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0xffffffff
jne 0x1801b3c63
mov eax, ecx
jmp 0x1801b3cc5
test rbx, rbx
jne 0x1801b3c6f
mov eax, 1
jmp 0x1801b3cc5
xor ecx, ecx
call fcn.180414254
mov rcx, rax
cmp rbx, rax
jge 0x1801b3c82
xor eax, eax
jmp 0x1801b3cc5
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1803fd0a0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801b6030
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1803fdff0
sub rsp, rax
mov rax, qword [0x180594240]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1805999a8], 0
lea rax, [0x1801b59a0]
mov qword [rsp + 0x28], rax
lea rbx, [0x180466340]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x1801b5de0]
mov qword [rsp + 0x38], rax
lea rax, [0x180466360]
mov qword [rsp + 0x40], rax
lea rax, [0x1801b5940]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1801b6209
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1801b61ff
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180415454
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180416478
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1801b612a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1801b618a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180415454
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180416478
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1801b61f7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1801b618a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1801b61f7
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1801b61e6
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1801b61a0
mov rax, qword [rsp + 0x28]
mov qword [0x1805905e0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1805905f0], rax
mov rax, qword [rsp + 0x48]
mov qword [0x180590600], rax
jmp 0x1801b61ef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1805999a8], 1
mov rax, rbp
lea rcx, [0x1805905d8]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1803fd0a0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret