Function at 0x180265160
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
mov eax, 0x390
call fcn.1800b8100
sub rsp, rax
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rax, qword [rbp + 0x2f0]
mov r15d, Ordinal_41
mov rdi, qword [rbp + 0x300]
mov r14, r8
mov qword [rsp + 0x60], rax
mov r12, rcx
mov rax, qword [rbp + 0x308]
mov esi, 0x40
mov qword [rbp - 0x78], rax
mov bl, 1
mov qword [rbp - 0x80], r9
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], rcx
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x24], 8
cmp rdi, 0x100000
jb 0x1802651ff
lea r8d, [rsi + 0x69]
lea rdx, str.ssl_s3_cbc.c
lea rcx, str.assertion_failed:_data_plus_mac_plus_padding_size___1024__1024
call fcn.1800d8330
mov rcx, r12
mov qword [rsp + 0x388], r13
call fcn.180274710
mov rcx, rax
call fcn.18027f360
mov ecx, eax
cmp eax, 0x2a1
jg 0x1802652ef
cmp eax, 0x2a1
je 0x1802652d7
cmp eax, 4
je 0x18026529d
cmp eax, esi
je 0x180265270
cmp eax, 0x2a0
jne 0x1802652fc
lea rcx, [rbp - 0x50]
call fcn.1802a5260
test eax, eax
jle 0x180265a1f
mov ecx, reloc.WLDAP32.dll_Ordinal_32
lea rax, [0x180265c70]
lea r13, [0x1802a52d0]
lea r10d, [rcx - 0x18]
jmp 0x180265383
lea rcx, [rbp - 0x50]
call fcn.1802a4cf0
test eax, eax
jle 0x180265a1f
mov ecx, reloc.WS2_32.dll_sendto
lea rax, [0x180265be0]
lea r13, [0x1802a4d40]
lea r10d, [rcx - 0xc]
jmp 0x180265383
lea rcx, [rbp - 0x50]
call fcn.1800d8020
test eax, eax
jle 0x180265a1f
mov ecx, reloc.WS2_32.dll_recv
lea rax, [0x180265b60]
mov r15d, Ordinal_50
lea r13, [0x1800d8070]
mov dword [rsp + 0x58], r15d
xor bl, bl
lea r10d, [rcx - 8]
jmp 0x180265383
lea rcx, [rbp - 0x50]
call fcn.1802a5440
test eax, eax
jle 0x180265a1f
mov ecx, Ordinal_50
jmp 0x180265366
sub ecx, 0x2a2
je 0x180265353
cmp ecx, 1
je 0x180265329
mov r8d, 0xe7
lea rdx, str.ssl_s3_cbc.c
lea rcx, str.assertion_failed:_0
call fcn.1800d8330
test r14, r14
je 0x180265a1f
xor r15d, r15d
mov qword [r14], r15
jmp 0x180265a1f
lea rcx, [rbp - 0x50]
call fcn.1802a4eb0
test eax, eax
jle 0x180265a1f
mov ecx, Ordinal_30
lea rax, [0x180265c70]
lea r13, [0x1802a52d0]
lea r10d, [rcx - 0x14]
jmp 0x180265383
lea rcx, [rbp - 0x50]
call fcn.1802a5a80
test eax, eax
jle 0x180265a1f
mov ecx, esi
mov r10d, reloc.WS2_32.dll_recv
lea r13, [0x1802a5b10]
mov dword [rsp + 0x24], r10d
lea rax, [0x180265d50]
lea esi, [r10 + 0x70]
movzx r11d, byte [rbp + 0x318]
mov r14d, reloc.WS2_32.dll_listen
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x2c], r14d
test r11b, r11b
je 0x1802653bc
mov r14d, dword [rbp + 0x310]
add r14d, 0xb
add r14d, r15d
mov dword [rsp + 0x2c], r14d
mov r12d, dword [rbp + 0x2f8]
test r11b, r11b
mov eax, 2
mov r9d, 6
cmovne r9d, eax
xor edx, edx
sub r12d, ecx
mov dword [rsp + 0x3c], r9d
mov eax, edi
add r12d, r14d
sub eax, ecx
xor r15d, r15d
dec eax
mov dword [rsp + 0x38], r15d
add eax, r14d
mov ecx, r15d
add eax, r10d
mov edi, r15d
add eax, esi
div esi
xor edx, edx
mov r8d, eax
mov eax, r12d
div esi
mov dword [rsp + 0x40], edx
xor edx, edx
mov dword [rsp + 0x68], eax
lea eax, [r12 + r10]
div esi
test r11b, r11b
mov dword [rsp + 0x6c], eax
setne cl
add ecx, r9d
cmp r8d, ecx
jbe 0x180265439
mov edi, r8d
sub edi, r9d
mov dword [rsp + 0x38], edi
imul edi, esi
lea r12d, [r12*8]
test r11b, r11b
jne 0x1802654fb
mov r8d, esi
lea rcx, [rbp + 0xe0]
xor edx, edx
lea r12d, [r12 + rsi*8]
call fcn.18020d410
mov eax, dword [rbp + 0x310]
cmp eax, 0x80
jbe 0x18026548b
mov r8d, 0x14f
lea rdx, str.ssl_s3_cbc.c
lea rcx, str.assertion_failed:_mac_secret_length___sizeof_hmac_pad_
call fcn.1800d8330
mov eax, dword [rbp + 0x310]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp + 0xe0]
mov r8d, eax
call fcn.18020cf10
movdqa xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjcrypto_stack_stack.c]
mov edx, r15d
nop dword [rax]
mov eax, edx
movdqu xmm0, xmmword [rbp + rax + 0xe0]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0xe0], xmm0
lea eax, [rdx + 0x10]
add edx, 0x20
movdqu xmm0, xmmword [rbp + rax + 0xe0]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0xe0], xmm0
cmp edx, esi
jb 0x1802654b0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x50]
call r13
mov r10d, dword [rsp + 0x24]
xor edx, edx
lea rcx, [rbp + 0x90]
test bl, bl
je 0x180265550
lea eax, [r10 - 4]
mov r8d, eax
mov ebx, eax
call fcn.18020d410
mov r8d, dword [rsp + 0x24]
mov eax, r12d
shr eax, 0x18
mov edx, r12d
mov byte [rbp + rbx + 0x90], al
shr edx, 0x10
lea eax, [r8 - 3]
mov byte [rbp + rax + 0x90], dl
lea eax, [r8 - 2]
mov edx, r12d
shr edx, 8
mov byte [rbp + rax + 0x90], dl
lea eax, [r8 - 1]
jmp 0x180265594
mov r8d, r10d
call fcn.18020d410
mov r8d, dword [rsp + 0x24]
mov edx, r12d
shr edx, 0x18
lea eax, [r8 - 5]
mov byte [rbp + rax + 0x90], dl
lea eax, [r8 - 6]
mov edx, r12d
shr edx, 0x10
mov byte [rbp + rax + 0x90], dl
lea eax, [r8 - 7]
mov edx, r12d
shr edx, 8
mov byte [rbp + rax + 0x90], dl
lea eax, [r8 - 8]
mov byte [rbp + rax + 0x90], r12b
test edi, edi
je 0x1802656cd
cmp byte [rbp + 0x318], r15b
je 0x18026564c
cmp r14d, esi
jbe 0x180265a1f
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x50]
mov ebx, r14d
sub ebx, esi
call r13
mov edx, esi
lea rcx, [rbp + 0x160]
add rdx, qword [rbp - 0x80]
mov r8d, ebx
mov r13d, ebx
call fcn.18020cf10
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x160]
mov r8d, esi
add rcx, r13
sub r8d, ebx
call fcn.18020cf10
mov r12, qword [rsp + 0x30]
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x50]
call r12
xor edx, edx
mov eax, edi
div esi
dec eax
cmp eax, 1
jbe 0x1802656d2
mov r15, qword [rsp + 0x30]
lea r12d, [rax - 1]
mov r14, qword [rsp + 0x60]
mov ebx, esi
mov edx, ebx
lea rcx, [rbp - 0x50]
sub rdx, r13
add rdx, r14
call r15
add ebx, esi
sub r12, 1
jne 0x180265630
xor r15d, r15d
jmp 0x1802656c8
mov rcx, qword [rbp - 0x80]
lea r8d, [rsi - 0xd]
mov rdx, qword [rsp + 0x60]
mov eax, dword [rcx + 8]
movsd xmm0, qword [rcx]
mov dword [rbp + 0x168], eax
movzx eax, byte [rcx + 0xc]
lea rcx, [rbp + 0x16d]
mov byte [rbp + 0x16c], al
movsd qword [rbp + 0x160], xmm0
call fcn.18020cf10
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x50]
call r13
xor edx, edx
mov eax, edi
div esi
cmp eax, 1
jbe 0x1802656cd
mov r14, qword [rsp + 0x60]
lea r12d, [rax - 1]
mov ebx, esi
nop dword [rax + rax]
mov eax, ebx
lea rdx, [r14 - 0xd]
add rdx, rax
lea rcx, [rbp - 0x50]
call r13
add ebx, esi
sub r12, 1
jne 0x1802656b0
mov r14d, dword [rsp + 0x2c]
mov r12, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
xor eax, eax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov eax, dword [rsp + 0x3c]
add eax, ecx
mov dword [rsp + 0x78], eax
cmp ecx, eax
ja 0x18026597a
mov r8d, dword [rsp + 0x40]
mov eax, r8d
shr eax, 0x1f
mov dword [rsp + 0x2c], eax
movaps xmmword [rsp + 0x370], xmm6
lea edx, [r8 + 1]
mov eax, edx
mov dword [rsp + 0x70], edx
shr eax, 0x1f
mov dword [rsp + 0x3c], eax
mov eax, esi
sub eax, dword [rsp + 0x24]
neg r8d
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x40], r8d
nop dword [rax]
mov r13, qword [rsp + 0x60]
lea r10, [rbp + 0x1e0]
mov eax, ecx
mov r8d, r15d
xor eax, dword [rsp + 0x68]
mov r15d, dword [rsp + 0x24]
lea r11d, [rax - 1]
not eax
shr eax, 0x1f
shr r11d, 0x1f
and r11b, al
mov eax, ecx
xor eax, dword [rsp + 0x6c]
neg r11b
lea ebx, [rax - 1]
not eax
shr eax, 0x1f
shr ebx, 0x1f
and bl, al
neg bl
movsx eax, bl
movd xmm6, eax
movzx eax, bl
punpcklbw xmm6, xmm6
not al
or al, r11b
punpcklwd xmm6, xmm6
movzx r12d, al
pshufd xmm6, xmm6, 0
xor r9b, r9b
mov eax, edi
cmp edi, r14d
jae 0x1802657d7
mov rcx, qword [rbp - 0x80]
movzx r9d, byte [rax + rcx]
jmp 0x1802657f0
mov ecx, r14d
add rcx, qword [rbp + 0x300]
cmp rax, rcx
jae 0x1802657f0
mov eax, edi
sub eax, r14d
movzx r9d, byte [rax + r13]
mov ecx, dword [rsp + 0x40]
mov edx, r8d
add ecx, r8d
shr edx, 0x1f
shr ecx, 0x1f
movzx eax, dl
xor cl, byte [rsp + 0x2c]
inc edi
xor al, byte [rsp + 0x2c]
or cl, al
movzx eax, r11b
xor cl, dl
dec cl
movzx ecx, cl
and ecx, eax
mov dword [rsp + 0x48], ecx
not ecx
mov dword [rsp + 0x44], ecx
mov ecx, r8d
sub ecx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x44]
shr ecx, 0x1f
and al, r9b
xor cl, byte [rsp + 0x3c]
mov r9d, dword [rsp + 0x48]
and r9b, 0x80
or r9b, al
movzx eax, dl
xor al, byte [rsp + 0x3c]
or cl, al
xor cl, dl
dec cl
and cl, r11b
not cl
and cl, r12b
and r9b, cl
cmp r8d, dword [rsp + 0x74]
jb 0x180265893
movzx eax, bl
mov dword [rsp + 0x48], eax
not eax
mov dword [rsp + 0x44], eax
mov eax, r8d
mov ecx, dword [rsp + 0x48]
sub eax, esi
add eax, r15d
movzx edx, byte [rbp + rax + 0x90]
mov eax, dword [rsp + 0x44]
and dl, cl
and r9b, al
or r9b, dl
mov byte [r10], r9b
inc r8d
inc r10
cmp r8d, esi
jb 0x1802657c2
mov r12, qword [rsp + 0x30]
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x50]
call r12
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x50]
call qword [rsp + 0x50]
mov r13d, dword [rsp + 0x28]
xor r15d, r15d
mov edx, r15d
cmp r13d, 0x20
jb 0x180265933
mov r8d, r13d
and r8d, 0xffffffe0
nop
mov eax, edx
movdqu xmm0, xmmword [rbp + rax + 0xa0]
movdqu xmm1, xmmword [rbp + rax + 0x1e0]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rax + 0xa0], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movdqu xmm0, xmmword [rbp + rax + 0xa0]
movdqu xmm1, xmmword [rbp + rax + 0x1e0]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rax + 0xa0], xmm1
cmp edx, r8d
jb 0x1802658e0
cmp edx, r13d
jae 0x18026595c
mov ecx, r13d
mov eax, edx
sub ecx, edx
mov edx, ecx
movzx ecx, byte [rbp + rax + 0x1e0]
lea rax, [rax + 1]
and cl, bl
or byte [rbp + rax + 0x9f], cl
sub rdx, 1
jne 0x180265941
mov ecx, dword [rsp + 0x38]
inc ecx
mov dword [rsp + 0x38], ecx
cmp ecx, dword [rsp + 0x78]
jbe 0x180265760
movaps xmm6, xmmword [rsp + 0x370]
jmp 0x18026597f
mov r13d, dword [rsp + 0x28]
call fcn.18026f390
mov rbx, rax
test rax, rax
je 0x180265a17
mov rcx, qword [rbp - 0x70]
call fcn.180274710
mov rdx, rax
xor r8d, r8d
mov rcx, rbx
call fcn.18026ee60
test eax, eax
jle 0x180265a17
cmp byte [rbp + 0x318], 0
je 0x180265a4a
mov edi, dword [rsp + 0x58]
lea rcx, [rbp + 0xe0]
mov r8d, edi
mov edx, 0x5c
call fcn.18020d410
mov r8d, dword [rbp + 0x310]
mov rcx, rbx
mov rdx, qword [rbp - 0x78]
call fcn.18026f0d0
test eax, eax
jle 0x180265a17
mov r8d, edi
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call fcn.18026f0d0
test eax, eax
jle 0x180265a17
mov r8d, r13d
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.18026f0d0
test eax, eax
jg 0x180265ad0
mov rcx, rbx
call fcn.18026f350
xor eax, eax
mov r13, qword [rsp + 0x388]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x390
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm1, xmmword [0x18041d990]
nop dword [rax]
nop word [rax + rax]
mov eax, r15d
movdqu xmm0, xmmword [rbp + rax + 0xe0]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0xe0], xmm0
lea eax, [r15 + 0x10]
add r15d, 0x20
movdqu xmm0, xmmword [rbp + rax + 0xe0]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0xe0], xmm0
cmp r15d, esi
jb 0x180265a60
mov r8d, esi
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call fcn.18026f0d0
test eax, eax
jle 0x180265a17
mov r8d, r13d
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.18026f0d0
test eax, eax
jle 0x180265a17
mov rdx, qword [rbp - 0x68]
lea r8, [rsp + 0x7c]
mov rcx, rbx
call fcn.18026ed40
test eax, eax
je 0x180265af5
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x180265af5
mov eax, dword [rsp + 0x7c]
mov qword [rcx], rax
mov rcx, rbx
call fcn.18026f350
mov eax, 1
jmp 0x180265a21