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

Disassembly:
push rbx
push rbp
push rdi
mov eax, 0x80
call fcn.1800b9c10
sub rsp, rax
mov rax, qword [0x1802e4710]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x18016b3ac
test rbx, rbx
je 0x18016b3ac
mov rax, qword [rcx + 0x78]
mov qword [rsp + 0x78], rsi
test rax, rax
je 0x18016b2a5
mov esi, reloc.WS2_32.dll_recv
sub rsi, rax
cmp rbx, rsi
jb 0x18016b2a5
lea rcx, [rax + rcx + 0x64]
mov r8, rsi
call fcn.1800acfd0
lea rdx, [rbp + 0x64]
mov rcx, rbp
call fcn.18016b030
test eax, eax
je 0x18016b38b
sub rbx, rsi
mov qword [rbp + 0x78], 0
add rdi, rsi
mov qword [rsp + 0x70], r12
cmp rbx, 0x10
jb 0x18016b364
lea r12, [rbp + 0x80]
nop dword [rax + rax]
cmp qword [rbp + 0x28], 0x10
mov rax, qword [rdi]
mov cl, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi]
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x50], rax
je 0x18016b2fe
mov rax, qword [rdi]
mov cl, 3
mov qword [rsp + 0x58], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x60], rax
movzx esi, cl
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
shl esi, 4
movsxd rdx, esi
test esi, esi
jle 0x18016b330
lea r8, [rsp + 0x38]
mov rcx, r12
sub r8, r12
nop
movzx eax, byte [r8 + rcx]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x18016b320
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0x30]
mov r9, r12
mov rdx, r12
mov dword [rsp + 0x20], esi
call fcn.1800c45d0
test eax, eax
je 0x18016b3a8
cmp dword [rsp + 0x30], esi
jne 0x18016b3a8
sub rbx, 0x10
add rdi, 0x10
cmp rbx, 0x10
jae 0x18016b2c0
test rbx, rbx
je 0x18016b381
mov rax, qword [rbp + 0x78]
mov r8, rbx
mov rdx, rdi
lea rcx, [rax + rbp + 0x64]
call fcn.1800acfd0
add qword [rbp + 0x78], rbx
mov eax, 1
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800acfa0
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x18016b386
mov eax, 1
jmp 0x18016b390
Function at 0x18016fbc0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push r12
push r13
mov eax, gethostbyaddr
call fcn.1800b9c10
sub rsp, rax
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x28], r14
mov r12, rdx
mov qword [rsp + 0x20], r15
mov r13, r9
shl r12, 5
mov r14, rdx
mov rbx, rcx
mov r15, r8
test r12, r12
je 0x18016fc33
mov r10, r12
movzx eax, byte [rcx]
add rdi, 4
add rcx, 4
mov dword [rdi - 4], eax
movzx eax, byte [rcx - 3]
shl eax, 8
or dword [rdi - 4], eax
movzx eax, byte [rcx - 2]
shl eax, 0x10
or dword [rdi - 4], eax
movzx eax, byte [rcx - 1]
shl eax, 0x18
or dword [rdi - 4], eax
dec r10
jne 0x18016fc02
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
cmp r8, 1
jbe 0x18016fc69
mov rsi, rdx
lea rbp, [r8 - 1]
shl rsi, 7
nop
mov rdx, rdi
mov r8, r14
mov rcx, rdi
sub rdx, rsi
call fcn.18016f7b0
add rdi, rsi
dec rbp
jne 0x18016fc50
lea rdx, [r15 - 1]
mov r8, r14
mov rcx, r13
imul rdx, r14
shl rdx, 7
add rdx, qword [rsp + 0x78]
call fcn.18016f7b0
test r15, r15
je 0x18016fcfb
mov rdi, qword [rsp + 0x70]
mov rbp, r14
mov rsi, r15
shl rbp, 7
nop dword [rax]
mov eax, dword [r13 + rbp - 0x40]
xor edx, edx
div r15
mov r8d, edx
imul r8, r14
shl r8, 7
add r8, qword [rsp + 0x78]
test r12, r12
je 0x18016fce8
mov r9, r13
mov rcx, rdi
mov rdx, r12
sub r9, rdi
nop dword [rax + rax]
mov eax, dword [r9 + rcx]
add rcx, 4
add r8, 4
xor eax, dword [r8 - 4]
dec rdx
mov dword [rcx - 4], eax
jne 0x18016fcd0
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.18016f7b0
dec rsi
jne 0x18016fca0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
xor edx, edx
test r12, r12
je 0x18016fd4a
nop dword [rax + rax]
mov ecx, dword [r13 + rdx*4]
inc rdx
add rbx, 4
mov byte [rbx - 4], cl
mov eax, ecx
shr eax, 8
mov byte [rbx - 3], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbx - 2], al
mov byte [rbx - 1], cl
cmp rdx, r12
jb 0x18016fd20
add rsp, 0x30
pop r13
pop r12
pop rbx
ret
Function at 0x1801727b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
mov eax, 0x50
call fcn.1800b9c10
sub rsp, rax
mov r13, rdx
test rdx, rdx
mov r12, r9
mov rdx, r8
mov rbp, r8
je 0x180172931
mov qword [rsp + 0x70], rbx
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0x80], rdi
mov rdi, qword [rsp + 0xa8]
mov qword [rsp + 0x48], r14
lea r14, [r9 + 1]
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r15
mov r15, qword [rsp + 0x98]
shr r14, 1
mov qword [rsp + 0x28], rbx
mov r8, r14
mov qword [rsp + 0x20], r15
call fcn.1801725a0
test eax, eax
je 0x180172887
lea rdx, str.providersimplementationskdfs_tls1_prf.c
mov r8d, 0x19f
mov rcx, rdi
mov qword [rsp + 0x78], rsi
call fcn.1800ca810
mov rsi, rax
test rax, rax
jne 0x1801728a8
call fcn.1800cb1c0
lea r8, str.tls1_prf_alg
lea rcx, str.providersimplementationskdfs_tls1_prf.c
mov edx, 0x1a0
call fcn.1800cb230
lea ecx, [rsi + 0x39]
xor r8d, r8d
mov edx, 0xc0100
call fcn.1800cb480
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r13
pop r12
pop rbp
ret
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
sub rbp, r14
mov r8, r14
mov rcx, r13
lea rdx, [r12 + rbp]
mov qword [rsp + 0x20], r15
call fcn.1801725a0
test eax, eax
jne 0x1801728ef
lea r8, str.providersimplementationskdfs_tls1_prf.c
mov r9d, 0x1a6
mov rdx, rdi
mov rcx, rsi
call fcn.1800ca910
jmp 0x180172880
test rdi, rdi
je 0x18017290f
mov rdx, rsi
mov rcx, rdi
sub rdx, rbx
nop dword [rax]
movzx eax, byte [rdx + rbx]
inc rbx
xor byte [rbx - 1], al
dec rcx
jne 0x180172900
lea r8, str.providersimplementationskdfs_tls1_prf.c
mov r9d, 0x1ab
mov rdx, rdi
mov rcx, rsi
call fcn.1800ca910
mov eax, 1
jmp 0x180172882
mov rax, qword [rsp + 0xa8]
mov r9, qword [rsp + 0x90]
mov r8, r12
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
call fcn.1801725a0
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x50
pop r13
pop r12
pop rbp
ret
Function at 0x180183820
Capabilities:
Hash data using sha1

Disassembly:
push rbx
mov eax, 0x20
call fcn.1800b9c10
sub rsp, rax
mov rax, rdx
mov rbx, rcx
test rcx, rcx
jne 0x180183842
xor eax, eax
add rsp, 0x20
pop rbx
ret
test rdx, rdx
je 0x18018387b
lea rdx, str.ssl3_ms
mov rcx, rax
call fcn.1800cccc0
test rax, rax
je 0x18018387b
cmp dword [rax + 8], 5
jne 0x18018387b
mov r9, qword [rax + 0x10]
mov r8d, dword [rax + 0x18]
mov edx, 0x1d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x18018e810
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1800b9c10
sub rsp, rax
mov rax, qword [0x1802e4710]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x18018e847
mov eax, 0xfffffffe
jmp 0x18018e96c
test rcx, rcx
jne 0x18018e853
xor eax, eax
jmp 0x18018e96c
cmp r8d, 0x30
jne 0x18018e84c
mov r8d, gethostbyaddr
mov rdx, r9
call fcn.18018e530
test eax, eax
jle 0x18018e84c
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.18018e530
test eax, eax
je 0x18018e84c
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.18018e680
test eax, eax
je 0x18018e84c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x60]
call fcn.1800b45b0
mov r8d, gethostbyaddr
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.18018e530
test eax, eax
jle 0x18018e84c
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.18018e530
test eax, eax
je 0x18018e84c
lea rdx, [rsp + 0x48]
mov r8d, shutdown
mov rcx, rbx
call fcn.18018e530
test eax, eax
je 0x18018e84c
lea rcx, [rsp + 0x48]
mov edx, shutdown
call fcn.1800ca7c0
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800acfa0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x180185a60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x40
call fcn.1800b9c10
sub rsp, rax
mov rdi, qword [rcx + 0x70]
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 0x180185ae1
mov rdx, rcx
test r9, r9
je 0x180185abf
nop word [rax + rax]
cmp ecx, 0x40
jae 0x180185abf
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 0x180185aa0
mov dword [r12], ecx
test rsi, rsi
je 0x180185c05
cmp ecx, 0x40
jne 0x180185ae1
inc dword [rdi + 0x20]
mov dword [r12], 0
jne 0x180185ae1
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 0x180185b85
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 0x180185b3f
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.1801d2870
sub rsi, r12
add rbx, r12
add rbp, r12
mov dword [r13], r14d
test r14d, r14d
jne 0x180185b6e
inc dword [rdi + 0x24]
cmp rsi, 0x40
jae 0x180185b20
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 0x180185bf8
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.1801d2870
test r15d, r15d
je 0x180185bf4
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 0x180185be0
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 0x18018e810
Capabilities:
Hash data using sha1

Disassembly:
push rbx
mov eax, 0x20
call fcn.1800b9c10
sub rsp, rax
mov rax, rdx
mov rbx, rcx
test rcx, rcx
jne 0x180183842
xor eax, eax
add rsp, 0x20
pop rbx
ret
test rdx, rdx
je 0x18018387b
lea rdx, str.ssl3_ms
mov rcx, rax
call fcn.1800cccc0
test rax, rax
je 0x18018387b
cmp dword [rax + 8], 5
jne 0x18018387b
mov r9, qword [rax + 0x10]
mov r8d, dword [rax + 0x18]
mov edx, 0x1d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x18018e810
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1800b9c10
sub rsp, rax
mov rax, qword [0x1802e4710]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x18018e847
mov eax, 0xfffffffe
jmp 0x18018e96c
test rcx, rcx
jne 0x18018e853
xor eax, eax
jmp 0x18018e96c
cmp r8d, 0x30
jne 0x18018e84c
mov r8d, gethostbyaddr
mov rdx, r9
call fcn.18018e530
test eax, eax
jle 0x18018e84c
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.18018e530
test eax, eax
je 0x18018e84c
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.18018e680
test eax, eax
je 0x18018e84c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x60]
call fcn.1800b45b0
mov r8d, gethostbyaddr
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.18018e530
test eax, eax
jle 0x18018e84c
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.18018e530
test eax, eax
je 0x18018e84c
lea rdx, [rsp + 0x48]
mov r8d, shutdown
mov rcx, rbx
call fcn.18018e530
test eax, eax
je 0x18018e84c
lea rcx, [rsp + 0x48]
mov edx, shutdown
call fcn.1800ca7c0
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800acfa0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x180197210
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, gethostbyaddr
call fcn.1800b9c10
sub rsp, rax
movsxd rdi, ecx
mov ebx, r8d
mov rsi, rdx
mov dword [rsp + 0x40], 1
cmp edi, 0xffffffff
jne 0x18019727b
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea edx, [rdi + 0x60]
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1800cb230
lea ecx, [rdi + 0x21]
xor r8d, r8d
mov edx, 0x87
call fcn.1800cb480
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.18011a670
test eax, eax
je 0x180197269
test bl, 4
je 0x180197331
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 0x180197331
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x69
call fcn.1800cb230
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1800cb480
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, WSAGetLastError
call fcn.1800cb230
mov edx, 0x89
xor r8d, r8d
lea ecx, [rdx - 0x69]
call fcn.1800cb480
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test bl, 0x10
je 0x1801973d2
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 0x1801973d2
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, reloc.WS2_32.dll_WSAStartup
call fcn.1800cb230
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1800cb480
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x75
call fcn.1800cb230
mov edx, 0x8a
xor r8d, r8d
lea ecx, [rdx - 0x6a]
call fcn.1800cb480
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rsi
call fcn.180119c70
mov rcx, rsi
mov ebx, eax
call fcn.1801b4350
mov rcx, rdi
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180197477
or ecx, eax
call fcn.1801976c0
test eax, eax
jne 0x180197465
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x7d
call fcn.1800cb230
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_connect__
mov edx, eax
mov ecx, 2
call fcn.1800cb480
call fcn.1800cb1c0
lea r8, str.BIO_connect
lea rcx, str.crypto_bio_bio_sock2.c
mov edx, 0x7f
call fcn.1800cb230
xor r8d, r8d
lea edx, [r8 + 0x67]
lea ecx, [rdx - 0x47]
call fcn.1800cb480
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 0x18019f430
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.1800b9c10
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.1800e43d0
test rax, rax
jne 0x18019f48d
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 0x18019f505
xor r10d, r10d
test rsi, rsi
jle 0x18019f6bc
movsxd r11, ebx
shl r11, 3
nop
xor r9d, r9d
xor edx, edx
test ebx, ebx
jle 0x18019f4ed
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 0x18019f4c0
mov rax, qword [r15]
inc r10
add rdi, r11
mov qword [rax + r10*8 - 8], r9
cmp r10, rsi
jl 0x18019f4b0
jmp 0x18019f6bc
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 0x18019f6b7
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 0x18019f687
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 0x18019f610
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 0x18019f5d0
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 0x1801c1260
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.1800b9c10
sub rsp, rax
mov rax, qword [0x1802e4710]
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 0x1801c12c3
cmp r9, qword [rcx]
je 0x1801c12be
test rdx, rdx
je 0x1801c12b7
test r8d, r8d
jns 0x1801c12be
xor eax, eax
jmp 0x1801c14a3
mov qword [rcx], r9
jmp 0x1801c12cb
mov rdi, qword [rcx]
test rdi, rdi
je 0x1801c12b7
mov rcx, rdi
call fcn.1800cbf50
test al, 2
jne 0x1801c12b7
mov qword [rsp + 0x168], r15
mov r15d, 1
test r12, r12
je 0x1801c1460
mov rcx, rdi
mov r14d, r15d
call fcn.1800cbeb0
cmp eax, 0x90
jg 0x1801c14c5
test eax, eax
js 0x1801c14c5
cmp eax, ebx
jge 0x1801c135f
mov rcx, qword [rsi + 8]
mov r8, r13
mov rdx, rdi
call fcn.1800e0240
test eax, eax
je 0x1801c14c5
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, r12
call fcn.1800de730
test eax, eax
je 0x1801c14c5
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.1800de850
test eax, eax
je 0x1801c14c5
mov ebx, dword [rsp + 0x20]
jmp 0x1801c137f
cmp ebx, 0x90
ja 0x1801c14c5
lea rcx, [rsp + 0x30]
mov r8, rbx
mov rdx, r12
call fcn.1800acfd0
mov dword [rsp + 0x20], ebx
cmp ebx, 0x90
je 0x1801c139e
mov eax, ebx
mov r8d, 0x90
xor edx, edx
lea rcx, [rsp + rax + 0x30]
sub r8d, ebx
call fcn.1800b45b0
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 0x1801c13a1
mov rcx, qword [rsi + 0x10]
mov r8, r13
mov rdx, rdi
call fcn.1800e0240
test eax, eax
je 0x1801c1478
mov rcx, rdi
call fcn.1800cbeb0
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0xc0]
movsxd r8, eax
call fcn.1800de730
test eax, eax
je 0x1801c1478
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 0x1801c1404
mov rcx, qword [rsi + 0x18]
mov r8, r13
mov rdx, rdi
call fcn.1800e0240
test eax, eax
je 0x1801c1478
mov rcx, rdi
call fcn.1800cbeb0
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0xc0]
movsxd r8, eax
call fcn.1800de730
test eax, eax
je 0x1801c1478
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.1800df270
test eax, eax
cmovne ebp, r15d
test r14d, r14d
je 0x1801c1499
lea rcx, [rsp + 0x30]
mov edx, 0x90
call fcn.1800ca7c0
lea rcx, [rsp + 0xc0]
mov edx, 0x90
call fcn.1800ca7c0
mov eax, ebp
mov r15, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800acfa0
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x1801c149b