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

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, r9
mov rsi, r8
mov r12, rdx
mov rdi, rcx
mov r14, r8
cmp r8, 0x10
jae 0x180089771
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x60], rbx
mov rbx, rsi
mov qword [rsp + 0x68], rbp
and ebx, 0xf
mov rbp, qword [rsp + 0x80]
sub rsi, rbx
mov qword [rsp + 0x70], r13
mov r8, rsi
mov r13, qword [rsp + 0x88]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
call sym.version.dll_CRYPTO_cbc128_encrypt
test rbx, rbx
jne 0x1800897b5
mov rax, rsi
jmp 0x1800897f9
add rdi, rsi
test rbx, rbx
je 0x1800897e0
mov rcx, rbp
sub rdi, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x1800897d0
mov r8, r15
mov rdx, rbp
mov rcx, rbp
call r13
movups xmm0, xmmword [rbp]
mov rax, r14
movups xmmword [r14 + r12 - 0x10], xmm0
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x180089820
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x180089847
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 0x180089932
cmp rcx, rbx
jb 0x180089932
mov qword [rsp + 0x40], rsi
mov esi, dword [rbp + 0x174]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rbp + 0x30], rcx
test esi, esi
je 0x1800898bc
test rbx, rbx
je 0x180089912
movzx eax, byte [r14]
dec rbx
mov ecx, esi
inc r14
xor byte [rcx + rbp + 0x40], al
inc esi
and esi, 0xf
jne 0x180089887
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.18008af70
jmp 0x1800898c4
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov qword [rsp + 0x58], r15
mov r15, rbx
and r15, 0xfffffffffffffff0
je 0x1800898e9
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rdi
call fcn.18008abc0
add r14, r15
sub rbx, r15
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x180089912
mov esi, ebx
sub r14, rbp
nop dword [rax + rax]
movzx eax, byte [r14 + rdi - 0x40]
xor byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x180089900
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov r12, qword [rsp + 0x50]
mov dword [rbp + 0x174], 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 0x18008b490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x28
mov rsi, qword [rsp + 0x88]
mov r10, r9
mov rbp, qword [rsp + 0x80]
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ebx, dword [rsi]
test ebx, ebx
je 0x18008b4e5
test rdi, rdi
je 0x18008b4e5
mov eax, ebx
dec rdi
movzx ecx, byte [rax + rbp]
xor cl, byte [r12]
inc r12
mov byte [r15], cl
inc r15
inc ebx
and ebx, 0xf
jne 0x18008b4c3
mov r9, qword [rsp + 0x90]
cmp rdi, 0x10
jb 0x18008b5a9
mov qword [rsp + 0x60], r13
mov rsi, r15
mov r13, rdi
mov qword [rsp + 0x20], r14
shr r13, 4
mov r14, r12
imul rax, r13, 0xfffffffffffffff0
sub rsi, rbp
sub r14, rbp
add rdi, rax
mov rax, r13
shl rax, 4
add r15, rax
mov qword [rsp + 0x68], r15
add r12, rax
mov r15, qword [rsp + 0x78]
mov r8, r15
mov rdx, rbp
mov rcx, rbp
call r9
cmp ebx, 0x10
jae 0x18008b575
mov edx, reloc.WS2_32.dll_ntohs
mov eax, ebx
sub edx, ebx
add rax, rbp
shr edx, 3
inc edx
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r14 + rax]
xor rcx, qword [rax]
mov qword [rsi + rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x18008b560
mov r9, qword [rsp + 0x90]
add rsi, 0x10
add r14, 0x10
xor ebx, ebx
sub r13, 1
jne 0x18008b532
mov r15, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
test rdi, rdi
je 0x18008b5d6
mov r8, r10
mov rdx, rbp
mov rcx, rbp
call r9
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r12]
xor al, byte [rcx + rbp]
mov byte [rcx + r15], al
sub rdi, 1
jne 0x18008b5c0
mov dword [rsi], ebx
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800a1900
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x468
mov rax, qword [0x1801772b8]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rdx, [rsp + 0x20]
mov rbx, rcx
xor edi, edi
call fcn.1800dd784
cmp eax, 0xffffffff
je 0x1800a193c
mov eax, 0xd000
test word [rsp + 0x26], ax
je 0x1800a1954
mov edx, 0x101
mov rcx, rbx
lea r8d, [rdx + 0x7f]
call fcn.1800e6b24
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800a195e
mov eax, 1
jmp 0x1800a1a33
lea rdx, [0x180138710]
mov qword [rsp + 0x488], rbp
mov ecx, ebx
call fcn.1800e775c
mov rbp, rax
test rax, rax
jne 0x1800a198b
mov ecx, ebx
call fcn.1800e472c
lea eax, [rbp + 1]
jmp 0x1800a1a2b
mov qword [rsp + 0x490], rsi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x460], r14
xor esi, esi
mov r14d, 0x400
mov edx, r14d
call sym.version.dll_arc4random_buf
mov r9, rbp
lea edx, [rsi + 1]
mov r8d, r14d
lea rcx, [rsp + 0x50]
call fcn.1800dbc40
test eax, eax
jle 0x1800a1a02
add edi, eax
test esi, esi
jle 0x1800a1a04
mov eax, esi
lea rcx, [rsp + 0x50]
cmp esi, r14d
cmovg eax, r14d
sub esi, r14d
movsxd rbx, eax
mov rdx, rbx
call sym.version.dll_arc4random_buf
mov r9, rbp
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, 1
call fcn.1800dbc40
test eax, eax
jg 0x1800a19c7
xor edi, edi
mov rcx, rbp
call fcn.1800d876c
mov rdx, r14
lea rcx, [rsp + 0x50]
call sym.version.dll_explicit_bzero
mov r14, qword [rsp + 0x460]
mov eax, edi
mov rsi, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x488]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800d61c0
add rsp, 0x468
pop rdi
pop rbx
ret
Function at 0x1800a2880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1801772b8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov rsi, rcx
mov r13, qword [rbp + 0x68]
lea rdi, [rax + 1]
movzx ecx, byte [rdi + 6]
mov r12, rdx
movzx edx, byte [rdi + 3]
xor r15d, r15d
movzx r10d, byte [rax]
mov r14d, r8d
mov ebx, dword [r13]
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
shl eax, 8
or r10d, eax
shl ecx, 8
movzx eax, byte [rdi + 1]
shl eax, 0x10
or r10d, eax
mov qword [rbp - 0x28], r9
movzx eax, byte [rdi + 2]
shl eax, 0x18
or r10d, eax
mov qword [rbp - 0x20], r13
movzx eax, byte [rdi + 4]
shl eax, 8
or edx, eax
mov dword [rbp - 0x30], r10d
movzx eax, byte [rdi + 5]
or ecx, eax
mov byte [rbp - 0x10], r10b
shl ecx, 0x10
mov eax, r10d
shr eax, 8
or edx, ecx
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0xc], dl
mov byte [rbp - 9], al
test r8d, r8d
je 0x1800a2a26
mov r13, qword [rbp - 0x28]
sub r12, rsi
movzx r8d, dl
movzx r9d, r10b
dec r14d
test ebx, ebx
jne 0x1800a29c8
mov rdx, r13
lea rcx, [rbp - 0x30]
call sym.version.dll_RC2_encrypt
mov r10d, dword [rbp - 0x30]
mov eax, r10d
mov edx, dword [rbp - 0x2c]
movzx r9d, byte [rbp - 0x30]
movzx r8d, byte [rbp - 0x2c]
shr eax, 8
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 9], al
inc r15d
mov byte [rbp - 0x10], r9b
mov byte [rbp - 0xc], r8b
movsxd rax, ebx
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi]
mov byte [r12 + rsi], cl
inc rsi
inc ebx
and ebx, 7
test r14d, r14d
jne 0x1800a2966
mov r13, qword [rbp - 0x20]
test r15d, r15d
je 0x1800a2a26
mov rax, qword [rbp - 0x18]
mov byte [rdi + 3], r8b
mov byte [rax], r9b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr eax, 0x10
mov byte [rdi + 1], al
mov eax, edx
shr eax, 8
mov byte [rdi + 4], al
mov eax, edx
shr eax, 0x10
shr r10d, 0x18
shr edx, 0x18
mov byte [rdi + 6], dl
mov byte [rdi + 2], r10b
mov byte [rdi + 5], al
mov dword [r13], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800d61c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800a2c20
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
mov r8d, 1
jmp fcn.1800a2d50
Function at 0x1800aae60
Capabilities:
Check for software breakpoints

Disassembly:
sub rsp, 0x38
mov r11, rcx
cmp dword [rsp + 0x60], r9d
jne 0x1800aaf54
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x1800aaf54
mov qword [rsp + 0x30], rbx
lea rdx, [r8 + 1]
cmp r10b, 0x6b
jne 0x1800aaefb
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x1800aaec8
nop dword [rax + rax]
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x1800aaeb6
cmp cl, 0xbb
jne 0x1800aaebe
inc eax
cmp eax, ebx
jl 0x1800aaea0
test eax, eax
je 0x1800aaec8
sub ebx, eax
jmp 0x1800aaeff
mov dword [rsp + 0x20], 0x7b
jmp 0x1800aaed0
mov dword [rsp + 0x20], 0x81
lea r9, str.________________________________________C:LibreSS5crypto_rsa_rsa_x931.c
mov edx, 0xfff
mov ecx, 4
mov r8d, 0x8a
call sym.version.dll_ERR_put_error
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x38
ret
lea ebx, [r9 - 2]
test ebx, ebx
js 0x1800aaf21
movsxd r8, ebx
cmp byte [r8 + rdx], 0xcc
jne 0x1800aaf21
mov rcx, r11
call fcn.1800d7020
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
lea r9, str.________________________________________C:LibreSS5crypto_rsa_rsa_x931.c
mov dword [rsp + 0x20], 0x8a
mov edx, 0xfff
mov ecx, 4
mov r8d, 0x8b
call sym.version.dll_ERR_put_error
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x38
ret
lea r9, str.________________________________________C:LibreSS5crypto_rsa_rsa_x931.c
mov dword [rsp + 0x20], WSAStartup
mov edx, 0xfff
mov ecx, 4
mov r8d, 0x89
call sym.version.dll_ERR_put_error
mov eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x1800ab1b0
Capabilities:
Hash data using sha1

Disassembly:
mov r8d, 1
jmp fcn.1800ab2e0
Function at 0x1800ada20
Capabilities:
Hash data using sha224

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
mov rax, qword [0x1801772b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
lea rbx, [0x18017a480]
movups xmmword [rsp + 0x40], xmm0
test r8, r8
movups xmmword [rsp + 0x50], xmm0
cmovne rbx, r8
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov r8, rdx
mov rdx, rcx
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x28], rax
lea rcx, [rsp + 0x20]
mov dword [r11 - 0x20], eax
mov dword [rsp + 0x20], 0xc1059ed8
mov dword [rsp + 0x24], 0x367cd507
mov dword [rsp + 0x28], 0x3070dd17
mov dword [rsp + 0x2c], 0xf70e5939
mov dword [rsp + 0x30], 0xffc00b31
mov dword [rsp + 0x34], 0x68581511
mov dword [rsp + 0x38], 0x64f98fa7
mov dword [rsp + 0x3c], 0xbefa4fa4
mov dword [r11 - 0x1c], 0x1c
call sym.version.dll_SHA256_Update
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.version.dll_SHA256_Final
mov edx, WSAStartup
lea rcx, [rsp + 0x20]
call sym.version.dll_explicit_bzero
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800d61c0
add rsp, 0xa0
pop rbx
ret

Function at 0x1800adb80
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
mov rax, qword [0x1801772b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
lea rbx, [0x18017a4a0]
movups xmmword [rsp + 0x40], xmm0
test r8, r8
movups xmmword [rsp + 0x50], xmm0
cmovne rbx, r8
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov r8, rdx
mov rdx, rcx
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x28], rax
lea rcx, [rsp + 0x20]
mov dword [r11 - 0x20], eax
mov dword [rsp + 0x20], 0x6a09e667
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov dword [rsp + 0x3c], 0x5be0cd19
mov dword [r11 - 0x1c], 0x20
call sym.version.dll_SHA256_Update
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.version.dll_SHA256_Final
mov edx, WSAStartup
lea rcx, [rsp + 0x20]
call sym.version.dll_explicit_bzero
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800d61c0
add rsp, 0xa0
pop rbx
ret

Function at 0x1800adfe0
Capabilities:
Hash data using murmur3

Disassembly:
mov r8d, 1
jmp fcn.1800ae110
Function at 0x1800af210
Capabilities:
Hash data using sha384

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x1801772b8]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0xcbbb9d5dc1059ed8
mov dword [rsp + 0xf4], gethostbyname
mov qword [rsp + 0x20], rax
lea rsi, [0x18017a4c0]
movabs rax, 0x629a292a367cd507
test r8, r8
mov qword [rsp + 0x28], rax
mov rbx, rdx
movabs rax, 0x9159015a3070dd17
cmovne rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rcx
movabs rax, 0x152fecd8f70e5939
mov qword [rsp + 0x38], rax
movabs rax, 0x67332667ffc00b31
mov qword [rsp + 0x40], rax
movabs rax, 0x8eb44a8768581511
mov qword [rsp + 0x48], rax
movabs rax, 0xdb0c2e0d64f98fa7
mov qword [rsp + 0x50], rax
movabs rax, 0x47b5481dbefa4fa4
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xf0], eax
test rdx, rdx
je 0x1800af337
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x1800af320
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.1800afce0
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x1800af337
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.1800d7020
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sym.version.dll_SHA512_Final
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call sym.version.dll_explicit_bzero
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800d61c0
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800af430
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x1801772b8]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0x6a09e667f3bcc908
mov dword [rsp + 0xf4], 0x40
mov qword [rsp + 0x20], rax
lea rsi, [0x18017a4f0]
movabs rax, 0xbb67ae8584caa73b
test r8, r8
mov qword [rsp + 0x28], rax
mov rbx, rdx
movabs rax, 0x3c6ef372fe94f82b
cmovne rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rcx
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xf0], eax
test rdx, rdx
je 0x1800af557
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x1800af540
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.1800afce0
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x1800af557
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.1800d7020
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sym.version.dll_SHA512_Final
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call sym.version.dll_explicit_bzero
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800d61c0
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800afbc0
Capabilities:
Hash data using sha512
Resolve function by parsing pe exports

Disassembly:
mov r8d, 1
jmp fcn.1800afce0
Function at 0x1800d3390
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x38
cmp dword [0x18017a7a8], 0
jne 0x1800d3411
mov ecx, 0x202
lea rdx, [0x18017a610]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800d3407
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.________________________________________C:LibreSS5crypto_bio_b_win.c
mov dword [rsp + 0x20], 0x1a
mov r8d, eax
mov edx, 0xfff
mov ecx, 2
call sym.version.dll_ERR_put_error
mov r8d, 0x7a
mov dword [rsp + 0x20], 0x1b
lea r9, str.________________________________________C:LibreSS5crypto_bio_b_win.c
mov edx, 0xfff
lea ecx, [r8 - 0x5a]
call sym.version.dll_ERR_put_error
mov eax, 0xffffffff
add rsp, 0x38
ret
mov dword [0x18017a7a8], 1
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800d3420
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1800d3b40
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800d3b63
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.1800d3ea0
add rsp, 0x28
ret

Function at 0x1800d3d30
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rsi, ecx
xor r9d, r9d
mov rcx, rsi
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_recv]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x1800d3d98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2736
je 0x1800d3d89
cmp eax, 0x2719
je 0x1800d3d89
mov ecx, eax
call fcn.1800d3ea0
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
mov rdx, rdi
mov ecx, esi
call fcn.1800e51ec
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800d3db0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret

Function at 0x1800d3dd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
movsxd rcx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800d3dee
add rsp, 0x38
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x38
jmp fcn.1800d3ea0
Function at 0x1800d3e00
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rsi, ecx
xor r9d, r9d
mov rcx, rsi
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_send]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x1800d3e68
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2736
je 0x1800d3e59
cmp eax, 0x2719
je 0x1800d3e59
mov ecx, eax
call fcn.1800d3ea0
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
mov rdx, rdi
mov ecx, esi
call fcn.1800e5fc0
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800d5490
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18017a8e0]
test rax, rax
jne 0x1800d54c5
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x18017a8e0], rcx
je 0x1800d54c5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18017a8e0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [0x18017a8d0]
test r8, r8
je 0x1800d54ea
cmp qword [r8 + 8], 4
ja 0x1800d54f6
call fcn.1800d5150
mov r8, qword [0x18017a8d0]
mov rdx, qword [r8 + 8]
xor ecx, ecx
cmp rdx, 4
lea rax, [rdx - 4]
cmova rcx, rax
mov qword [r8 + 8], rcx
mov rax, qword [0x18017a8d0]
cmp qword [rax], 4
jae 0x1800d5574
mov rcx, qword [0x18017a8d8]
mov r9d, 0x400
lea rdx, [rcx + 0x40]
mov r8, rdx
call fcn.1800d5740
mov rcx, qword [0x18017a8d8]
mov edx, 0x28
add rcx, 0x40
call fcn.1800d5050
mov rax, qword [0x18017a8d8]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
mov qword [rax + 0x60], rcx
mov rax, qword [0x18017a8d0]
mov qword [rax], 0x3d8
mov rax, qword [0x18017a8d0]
mov rcx, qword [0x18017a8d8]
sub rcx, qword [rax]
xor eax, eax
mov ebx, dword [rcx + 0x440]
mov dword [rcx + 0x440], eax
mov rcx, qword [0x18017a8d0]
add qword [rcx], 0xfffffffffffffffc
mov rcx, qword [0x18017a8e0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800d55b0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword [0x18017a8e0]
mov rsi, rdx
mov rbp, rcx
test rax, rax
jne 0x1800d55ef
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x18017a8e0], rcx
je 0x1800d55ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18017a8e0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [0x18017a8d0]
test r8, r8
je 0x1800d5613
cmp qword [r8 + 8], rsi
ja 0x1800d561f
call fcn.1800d5150
mov r8, qword [0x18017a8d0]
mov rcx, qword [r8 + 8]
xor eax, eax
sub rcx, rsi
cmp qword [r8 + 8], rsi
cmova rax, rcx
mov qword [r8 + 8], rax
test rsi, rsi
je 0x1800d571a
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
nop word [rax + rax]
mov rax, qword [0x18017a8d0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800d56a6
mov rbx, qword [0x18017a8d8]
cmp rsi, rcx
mov rdi, rsi
cmovae rdi, rcx
sub rbx, rcx
mov r8, rdi
mov rcx, rbp
lea rdx, [rbx + 0x440]
call fcn.1800d7020
mov r8, rdi
lea rcx, [rbx + 0x440]
xor edx, edx
call fcn.1800d7430
mov rax, qword [0x18017a8d0]
add rbp, rdi
sub rsi, rdi
sub qword [rax], rdi
mov rax, qword [0x18017a8d0]
cmp qword [rax], 0
jne 0x1800d5707
mov rcx, qword [0x18017a8d8]
mov r9d, 0x400
lea rdx, [rcx + 0x40]
mov r8, rdx
call fcn.1800d5740
mov rcx, qword [0x18017a8d8]
mov edx, 0x28
add rcx, 0x40
call fcn.1800d5050
mov rax, qword [0x18017a8d8]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
mov qword [rax + 0x60], rcx
mov rax, qword [0x18017a8d0]
mov qword [rax], 0x3d8
test rsi, rsi
jne 0x1800d5650
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [0x18017a8e0]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]