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

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14013a5b5
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
inc rcx
xor dl, al
or r9b, dl
dec r8
jne 0x14013a5a0
movzx eax, r9b
ret

Function at 0x14013e160
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
mov eax, gethostbyname
call fcn.1402563a0
sub rsp, rax
mov r14, rdx
mov r13, r8
mov rbp, rcx
mov r15d, 0x20
lea rdx, str.enginese_capi.c
mov r8d, 0x5e2
mov ecx, r15d
mov r12d, r9d
call fcn.1400b4520
mov rsi, rax
test rax, rax
jne 0x14013e1bd
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x68], rdi
cmp r12d, 1
jne 0x14013e203
cmp dword [0x1403bd900], 0
je 0x14013e203
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov rax, r13
sub r8, r13
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14013e1f4
add rax, 2
test ecx, ecx
jne 0x14013e1e0
test edx, edx
jne 0x14013e203
lea r13, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
lea r12d, [rdx + 0x18]
mov qword [rsp + 0x60], rbx
test rbp, rbp
je 0x14013e274
cmp dword [rbp], 2
jl 0x14013e274
cmp qword [rbp + 8], 0
je 0x14013e274
mov rcx, r14
call fcn.14013cba0
mov rcx, r13
mov rdi, rax
call fcn.14013cba0
lea rdx, str.capi_get_key__contname_s__provname_s__type_d_n
mov r8, rdi
mov rcx, rbp
mov r9, rax
mov rbx, rax
mov dword [rsp + 0x20], r12d
call fcn.14013cb00
lea rdx, str.enginese_capi.c
mov r8d, 0x5f6
mov rcx, rbx
call fcn.1400b45f0
lea rdx, str.enginese_capi.c
mov r8d, 0x5f7
mov rcx, rdi
call fcn.1400b45f0
test dword [rbp + 0x38], 0x20000
mov eax, 0
lea rcx, [rsi + 8]
cmovne eax, r15d
mov r9d, r12d
mov r8, r13
mov rdx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14013e2fc
cmp dword [0x1403bd8e8], eax
jne 0x14013e2b2
call fcn.1400a49e0
mov dword [0x1403bd8e8], eax
call fcn.1400baef0
lea r8, str.ERR_CAPI_error
lea rcx, str.f:downloadsopenssl_3.0.13enginese_capi_err.c
mov edx, 0x5c
call fcn.1400baf60
mov ecx, dword [0x1403bd8e8]
xor r8d, r8d
lea edx, [r8 + 0x68]
call fcn.1400bb1b0
lea rcx, str.enginese_capi.c
xor r8d, r8d
mov edx, 0x5fd
call fcn.1400baf60
call fcn.14013d670
jmp 0x14013e33d
mov ebx, dword [rsp + 0x80]
mov rcx, qword [rsi + 8]
lea r8, [rsi + 0x10]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x14013e356
lea rdx, str.enginese_capi.c
lea ecx, [rax + 0x75]
mov r8d, 0x602
call fcn.14013c870
call fcn.14013d670
mov rcx, qword [rsi + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, str.enginese_capi.c
mov r8d, 0x60c
mov rcx, rsi
call fcn.1400b45f0
xor eax, eax
jmp 0x14013e363
mov dword [rsi + 0x18], ebx
mov qword [rsi], 0
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1401492f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, gethostbyname
call fcn.1402563a0
sub rsp, rax
movsxd rdi, ecx
mov ebx, r8d
mov rsi, rdx
mov dword [rsp + 0x40], 1
cmp edi, 0xffffffff
jne 0x14014935b
call fcn.1400baef0
lea r8, str.BIO_connect
lea edx, [rdi + 0x55]
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400baf60
lea ecx, [rdi + 0x21]
xor r8d, r8d
mov edx, 0x87
call fcn.1400bb1b0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, ebx
mov ecx, edi
shr edx, 3
and edx, 1
call fcn.1400f4300
test eax, eax
je 0x140149349
test bl, 4
je 0x140149411
lea r9, [rsp + 0x40]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140149411
call fcn.1400baef0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x5e
call fcn.1400baf60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1400bb1b0
call fcn.1400baef0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x60
call fcn.1400baf60
mov edx, 0x89
xor r8d, r8d
lea ecx, [rdx - 0x69]
call fcn.1400bb1b0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test bl, 0x10
je 0x1401494b2
mov edx, 6
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1401494b2
call fcn.1400baef0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x68
call fcn.1400baf60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1400bb1b0
call fcn.1400baef0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x6a
call fcn.1400baf60
mov edx, 0x8a
xor r8d, r8d
lea ecx, [rdx - 0x6a]
call fcn.1400bb1b0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rsi
call fcn.1400f3900
mov rcx, rsi
mov ebx, eax
call fcn.14020d770
mov rcx, rdi
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140149557
or ecx, eax
call fcn.1400caaa0
test eax, eax
jne 0x140149545
call fcn.1400baef0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, WSAStartup
call fcn.1400baf60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_connect__
mov edx, eax
mov ecx, 2
call fcn.1400bb1b0
call fcn.1400baef0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, reloc.WS2_32.dll_WSACleanup
call fcn.1400baf60
xor r8d, r8d
lea edx, [r8 + 0x67]
lea ecx, [rdx - 0x47]
call fcn.1400bb1b0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140152720
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x170
call fcn.1402563a0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r13, qword [rsp + 0x1d0]
xor ebp, ebp
mov rdi, r9
movsxd rbx, r8d
mov r12, rdx
mov rsi, rcx
mov r14d, ebp
test r9, r9
je 0x140152783
cmp r9, qword [rcx]
je 0x14015277e
test rdx, rdx
je 0x140152777
test r8d, r8d
jns 0x14015277e
xor eax, eax
jmp 0x140152963
mov qword [rcx], r9
jmp 0x14015278b
mov rdi, qword [rcx]
test rdi, rdi
je 0x140152777
mov rcx, rdi
call fcn.1400c6d30
test al, 2
jne 0x140152777
mov qword [rsp + 0x168], r15
mov r15d, 1
test r12, r12
je 0x140152920
mov rcx, rdi
mov r14d, r15d
call fcn.1400c6c90
cmp eax, 0x90
jg 0x140152985
test eax, eax
js 0x140152985
cmp eax, ebx
jge 0x14015281f
mov rcx, qword [rsi + 8]
mov r8, r13
mov rdx, rdi
call fcn.1400b43c0
test eax, eax
je 0x140152985
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, r12
call fcn.1400b2550
test eax, eax
je 0x140152985
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.1400b2670
test eax, eax
je 0x140152985
mov ebx, dword [rsp + 0x20]
jmp 0x14015283f
cmp ebx, 0x90
ja 0x140152985
lea rcx, [rsp + 0x30]
mov r8, rbx
mov rdx, r12
call fcn.1402550b0
mov dword [rsp + 0x20], ebx
cmp ebx, 0x90
je 0x14015285e
mov eax, ebx
mov r8d, 0x90
xor edx, edx
lea rcx, [rsp + rax + 0x30]
sub r8d, ebx
call fcn.1402547c0
mov rcx, rbp
movzx eax, byte [rsp + rcx + 0x30]
add rcx, 2
xor al, 0x36
mov byte [rsp + rcx + 0xbe], al
movzx eax, byte [rsp + rcx + 0x2f]
xor al, 0x36
mov byte [rsp + rcx + 0xbf], al
cmp rcx, 0x90
jl 0x140152861
mov rcx, qword [rsi + 0x10]
mov r8, r13
mov rdx, rdi
call fcn.1400b43c0
test eax, eax
je 0x140152938
mov rcx, rdi
call fcn.1400c6c90
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0xc0]
movsxd r8, eax
call fcn.1400b2550
test eax, eax
je 0x140152938
mov rcx, rbp
movzx eax, byte [rsp + rcx + 0x30]
add rcx, 2
xor al, 0x5c
mov byte [rsp + rcx + 0xbe], al
movzx eax, byte [rsp + rcx + 0x2f]
xor al, 0x5c
mov byte [rsp + rcx + 0xbf], al
cmp rcx, 0x90
jl 0x1401528c4
mov rcx, qword [rsi + 0x18]
mov r8, r13
mov rdx, rdi
call fcn.1400b43c0
test eax, eax
je 0x140152938
mov rcx, rdi
call fcn.1400c6c90
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0xc0]
movsxd r8, eax
call fcn.1400b2550
test eax, eax
je 0x140152938
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.1400b3360
test eax, eax
cmovne ebp, r15d
test r14d, r14d
je 0x140152959
lea rcx, [rsp + 0x30]
mov edx, 0x90
call fcn.1400f5f30
lea rcx, [rsp + 0xc0]
mov edx, 0x90
call fcn.1400f5f30
mov eax, ebp
mov r15, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140254f60
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x14015295b
Function at 0x140154c70
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
lea edx, [rax - 0x1f]
mov rdi, rcx
call fcn.140155fc0
mov rcx, rdi
mov rdx, rax
mov rsi, rax
call fcn.140156210
test rax, rax
je 0x140154ce4
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov r8d, esi
lea r9d, [rbx + 2]
mov rdx, rax
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rcx, rdi
test eax, eax
cmove rbx, rsi
mov rdx, rbx
lea r8, [rbx*8]
call fcn.1401562c0
mov rcx, rdi
call fcn.140155e10
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140154cec
mov rcx, rdi
call fcn.140155e10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14015a600
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov r10, rdx
test rcx, rcx
je 0x14015a61c
test byte [rcx + 0x5c], 2
lea r11, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x14015a623
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test r9d, r9d
jle 0x14015a70f
inc r8
nop
movzx ecx, byte [r8 - 1]
cmp r9d, 3
jl 0x14015a693
movzx eax, byte [r8]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov edx, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r10], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r10 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [rax + r11]
mov byte [r10 + 2], al
movzx eax, byte [rdx + r11]
mov byte [r10 + 3], al
jmp 0x14015a6eb
shl ecx, 0x10
cmp r9d, 2
jne 0x14015a6a5
movzx eax, byte [r8]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r10], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r10 + 1], al
cmp r9d, 1
jne 0x14015a6d6
lea eax, [r9 + 0x3c]
jmp 0x14015a6e2
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + r11]
mov byte [r10 + 2], al
mov byte [r10 + 3], 0x3d
sub r9d, 3
add r10, 4
add ebx, 4
add r8, 3
test r9d, r9d
jg 0x14015a630
mov byte [r10], 0
mov eax, ebx
mov rbx, qword [rsp + 8]
ret
mov byte [rdx], bl
mov eax, ebx
mov rbx, qword [rsp + 8]
ret
Function at 0x140170240
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
mov eax, 0x68
call fcn.1402563a0
sub rsp, rax
mov r12d, dword [rsp + 0xc0]
mov r15, rcx
movsxd rsi, edx
mov ecx, r12d
mov ebx, 1
mov edx, esi
shl ebx, cl
mov rcx, r15
mov ebp, r9d
mov rdi, r8
mov qword [rsp + 0x28], r8
call fcn.14011b520
test rax, rax
jne 0x14017029d
add rsp, 0x68
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0xb0], rsi
cmp r12d, 3
jg 0x140170315
xor r10d, r10d
test rsi, rsi
jle 0x1401704cc
movsxd r11, ebx
shl r11, 3
nop
xor r9d, r9d
xor edx, edx
test ebx, ebx
jle 0x1401702fd
mov r8, rdi
nop dword [rax]
mov ecx, edx
inc edx
add r8, 8
xor ecx, ebp
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov rax, qword [r8 - 8]
neg ecx
and ecx, 1
neg rcx
and rcx, rax
or r9, rcx
cmp edx, ebx
jl 0x1401702d0
mov rax, qword [r15]
inc r10
add rdi, r11
mov qword [rax + r10*8 - 8], r9
cmp r10, rsi
jl 0x1401702c0
jmp 0x1401704cc
lea ecx, [r12 - 2]
mov edx, ebp
mov r8d, 1
sar edx, cl
shl r8d, cl
mov qword [rsp + 0x60], r14
lea ecx, [rdx - 1]
lea eax, [r8 - 1]
xor r14d, r14d
and ebp, eax
shr ecx, 0x1f
mov eax, edx
not eax
movsxd r11, r8d
mov qword [rsp + 0x20], r14
shr eax, 0x1f
and eax, ecx
mov ecx, edx
neg eax
xor ecx, 1
and eax, 1
neg rax
mov qword [rsp + 0x38], rax
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and eax, ecx
mov ecx, edx
xor edx, 3
xor ecx, 2
neg eax
and eax, 1
neg rax
mov qword [rsp + 0x40], rax
lea eax, [rcx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and eax, ecx
lea ecx, [rdx - 1]
not edx
shr ecx, 0x1f
neg eax
shr edx, 0x1f
and ecx, edx
and eax, 1
neg ecx
neg rax
and ecx, 1
mov qword [rsp + 0x48], rax
neg rcx
mov qword [rsp + 0x30], rcx
test rsi, rsi
jle 0x1401704c7
movsxd rax, ebx
mov qword [rsp + 0xb8], r13
shl rax, 3
mov qword [rsp + 0x50], rax
mov rax, rsi
nop word [rax + rax]
xor esi, esi
xor r10d, r10d
test r11, r11
jle 0x140170497
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r9, r11
shl r9, 4
mov rbx, r11
mov r13, r11
add r9, rdi
mov rdi, qword [rsp + 0x48]
neg rbx
neg r13
mov r12, r11
add rbx, rbx
nop dword [rax]
mov rax, qword [r9 + r11*8]
mov r8d, r10d
add r9, 8
and rax, rcx
mov rcx, qword [r9 - 8]
mov rdx, qword [r9 + r13*8 - 8]
and rcx, rdi
xor r8d, ebp
and rdx, r14
or rcx, rax
mov rax, qword [r9 + rbx*8 - 8]
inc r10d
or rdx, rcx
lea ecx, [r8 - 1]
and rax, r15
shr ecx, 0x1f
or rax, rdx
not r8d
shr r8d, 0x1f
and ecx, r8d
neg ecx
and ecx, 1
neg rcx
and rcx, rax
or rsi, rcx
dec r12
mov rcx, qword [rsp + 0x30]
jne 0x140170420
mov rdi, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
mov r15, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [r15]
add rdi, qword [rsp + 0x50]
inc r14
mov qword [rcx + r14*8 - 8], rsi
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rdi
cmp r14, rax
jl 0x1401703e0
mov r13, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x60]
mov ecx, dword [rsp + 0xa8]
mov eax, 1
mov dword [r15 + 8], ecx
add rsp, 0x68
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140181e90
Capabilities:
Hash data using sha1

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
lea r8d, [rax + 0x40]
xor edx, edx
mov rbx, rcx
call fcn.1402547c0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140183540
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1402563a0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x140183577
mov eax, 0xfffffffe
jmp 0x14018369c
test rcx, rcx
jne 0x140183583
xor eax, eax
jmp 0x14018369c
cmp r8d, 0x30
jne 0x14018357c
mov r8d, gethostbyname
mov rdx, r9
call fcn.140183260
test eax, eax
jle 0x14018357c
movabs rax, 0x3636363636363636
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.140183260
test eax, eax
je 0x14018357c
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.1401833b0
test eax, eax
je 0x14018357c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x60]
call fcn.1402547c0
mov r8d, gethostbyname
mov rdx, rdi
mov rcx, rbx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.140183260
test eax, eax
jle 0x14018357c
movabs rax, 0x5c5c5c5c5c5c5c5c
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.140183260
test eax, eax
je 0x14018357c
lea rdx, [rsp + 0x48]
mov r8d, socket
mov rcx, rbx
call fcn.140183260
test eax, eax
je 0x14018357c
lea rcx, [rsp + 0x48]
mov edx, socket
call fcn.1400f5f30
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140254f60
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
mov rax, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14023bff2
xor eax, eax
add rsp, 0x20
pop rbx
ret
test rdx, rdx
je 0x14023c02b
lea rdx, str.ssl3_ms
mov rcx, rax
call fcn.140103f00
test rax, rax
je 0x14023c02b
cmp dword [rax + 8], 5
jne 0x14023c02b
mov r9, qword [rax + 0x10]
mov r8d, dword [rax + 0x18]
mov edx, 0x1d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140183540
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1401836c0
Capabilities:
Hash data using sha224

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
lea r8d, [rax + 0x50]
xor edx, edx
mov rbx, rcx
call fcn.1402547c0
mov dword [rbx], 0xc1059ed8
mov dword [rbx + 4], 0x367cd507
mov dword [rbx + 8], 0x3070dd17
mov dword [rbx + 0xc], 0xf70e5939
mov dword [rbx + 0x10], 0xffc00b31
mov dword [rbx + 0x14], 0x68581511
mov dword [rbx + 0x18], 0x64f98fa7
mov dword [rbx + 0x1c], 0xbefa4fa4
mov dword [rbx + 0x6c], 0x1c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140183730
Capabilities:
Hash data using sha256

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
lea r8d, [rax + 0x50]
xor edx, edx
mov rbx, rcx
call fcn.1402547c0
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov dword [rbx + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14018d7b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x40
call fcn.1402563a0
sub rsp, rax
mov rdi, qword [rcx + 0x78]
movsxd rcx, dword [rdi + 0x70]
mov rsi, r9
lea r12, [rdi + 0x70]
mov rbx, r8
mov rbp, rdx
mov qword [rsp + 0x30], r12
test ecx, ecx
je 0x14018d831
mov rdx, rcx
test r9, r9
je 0x14018d80f
nop word [rax + rax]
cmp ecx, 0x40
jae 0x14018d80f
movzx eax, byte [rdx + rdi + 0x30]
inc rbp
inc ecx
xor al, byte [rbx]
inc rdx
inc rbx
dec rsi
mov byte [rbp - 1], al
jne 0x14018d7f0
mov dword [r12], ecx
test rsi, rsi
je 0x14018d955
cmp ecx, 0x40
jne 0x14018d831
inc dword [rdi + 0x20]
mov dword [r12], 0
jne 0x14018d831
inc dword [rdi + 0x24]
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r14
mov r14d, dword [rdi + 0x20]
mov qword [rsp + 0x88], r15
mov r15d, esi
lea rax, [rdi + 0x20]
and r15d, 0x3f
mov r13d, r15d
mov dword [rsp + 0x70], r15d
sub rsi, r13
cmp rsi, 0x40
jb 0x14018d8d5
mov r15d, 0x10000000
lea r13, [rdi + 0x20]
mov r12, rsi
shr r12, 6
cmp r12, r15
cmova r12, r15
add r14d, r12d
mov eax, r14d
cmp rax, r12
jae 0x14018d88f
sub r12, rax
xor r14d, r14d
shl r12, 6
mov r9, rdi
mov rdx, rbx
mov rcx, rbp
mov r8, r12
mov qword [rsp + 0x20], r13
call fcn.1401d2dc0
sub rsi, r12
add rbx, r12
add rbp, r12
mov dword [r13], r14d
test r14d, r14d
jne 0x14018d8be
inc dword [rdi + 0x24]
cmp rsi, 0x40
jae 0x14018d870
mov r15d, dword [rsp + 0x70]
mov r12, qword [rsp + 0x30]
lea rax, [rdi + 0x20]
mov r13d, r15d
mov r14, qword [rsp + 0x80]
test r15d, r15d
je 0x14018d948
xor edx, edx
lea rcx, [rdi + 0x30]
mov r9, rdi
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rdx
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rdx
mov qword [rcx + 0x30], rdx
lea r8d, [rdx + 0x40]
mov qword [rcx + 0x38], rdx
mov rdx, rcx
mov qword [rsp + 0x20], rax
call fcn.1401d2dc0
test r15d, r15d
je 0x14018d944
sub rdi, rbx
sub rbp, rbx
nop word [rax + rax]
movzx eax, byte [rdi + rbx + 0x30]
inc rbx
xor al, byte [rbx - 1]
dec r13
mov byte [rbx + rbp - 1], al
jne 0x14018d930
mov dword [r12], r15d
mov r15, qword [rsp + 0x88]
mov r13, qword [rsp + 0x78]
mov eax, 1
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140198510
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1402563a0
sub rsp, rax
mov rcx, qword [rcx + 0x28]
add rsp, 0x28
jmp fcn.14011ad80
Function at 0x140199350
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x50
call fcn.1402563a0
sub rsp, rax
mov rbp, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb0]
xor r11d, r11d
or r10, 0xffffffffffffffff
cmp rbp, 1
mov eax, r11d
setne al
mov r14, r9
mov r9, qword [rcx]
add rax, rsi
mov r12, r8
mov r15, rdx
mov rdi, rcx
cmp rax, r9
jbe 0x1401993a9
xor eax, eax
jmp 0x1401994de
cmp rbp, 1
je 0x1401994a4
movzx edx, byte [r9 + r8 - 1]
lea r8, [r9 + r8 - 1]
cmp dword [rsp + 0xb8], r11d
je 0x1401993de
sub r9, rdx
mov eax, 1
sub r9, rsi
dec r9
mov qword [rcx], r9
jmp 0x1401994de
mov qword [rsp + 0x80], rbx
lea rcx, [rdx + rax]
mov qword [rsp + 0x88], r13
mov r13d, 0x100
mov rbx, r9
mov rax, r9
sub rbx, rcx
xor rax, rcx
xor rbx, rcx
or rbx, rax
xor rbx, r9
shr rbx, 0x3f
dec rbx
cmp r9, r13
cmovb r13, r9
test r13, r13
je 0x14019946c
mov r10, rdx
shr r10, 0x3f
nop word [rax + rax]
mov rax, r11
mov rcx, rdx
dec r8
sub rcx, r11
shr rax, 0x3f
inc r11
shr rcx, 0x3f
xor cl, al
xor al, r10b
or cl, al
movzx eax, byte [r8 + 1]
xor cl, r10b
xor rax, rdx
dec cl
movzx ecx, cl
and rcx, rax
not rcx
and rbx, rcx
cmp r11, r13
jb 0x140199430
mov r13, qword [rsp + 0x88]
not rbx
movzx eax, bl
mov rbx, qword [rsp + 0x80]
lea r10, [rax - 1]
not rax
shr rax, 0x3f
shr r10, 0x3f
and r10, rax
lea rax, [rdx + 1]
neg r10
and rax, r10
sub r9, rax
mov qword [rdi], r9
mov rax, qword [rsp + 0xc0]
mov r9, r14
mov r8, r12
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], rsi
mov rdx, r15
mov rcx, rdi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.140198f70
mov rbp, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401affa0
Capabilities:
Hash data with md5

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
lea r8d, [rax + 0x3c]
xor edx, edx
mov rbx, rcx
call fcn.1402547c0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov eax, 1
add rsp, 0x20
pop rbx
ret