Function at 0x140109120
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2c0]
mov eax, 0x3c0
call fcn.140150d80
sub rsp, rax
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rax, qword [rbp + 0x320]
mov rsi, qword [rbp + 0x330]
mov r15d, Ordinal_41
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x338]
mov qword [rsp + 0x58], r9
mov r14, r8
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x78], rax
mov r12, rcx
mov qword [rbp - 0x70], rcx
mov edi, 0x40
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x24], 8
mov bl, 1
cmp rsi, 0x100000
jb 0x1401091c1
lea r8, str.data_plus_mac_plus_padding_size___1024__1024
lea rcx, [0x14021d250]
mov edx, 0x1c7
call fcn.14004dc30
mov rcx, r12
call fcn.14005d250
mov rcx, rax
call fcn.14005ce80
mov ecx, eax
cmp eax, 0x2a1
jg 0x1401092c9
je 0x14010928f
cmp eax, 4
je 0x140109254
cmp eax, edi
je 0x140109226
cmp eax, 0x2a0
jne 0x1401092d5
lea rcx, [rbp - 0x20]
call fcn.14006c450
test eax, eax
jle 0x1401092f8
mov r14d, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [0x140109f10]
lea rax, [0x14006c4c0]
lea r10d, [r14 - 0x18]
jmp 0x140109354
lea rcx, [rbp - 0x20]
call fcn.14006bf10
test eax, eax
jle 0x1401092f8
mov r14d, reloc.WS2_32.dll_sendto
lea rcx, [0x140109e80]
lea rax, [0x14006bf60]
lea r10d, [r14 - 0xc]
jmp 0x140109354
lea rcx, [rbp - 0x20]
call fcn.14006fe10
test eax, eax
jle 0x1401092f8
mov r14d, reloc.WS2_32.dll_recv
mov r15d, Ordinal_50
lea rcx, [0x140109e00]
lea rax, [0x1400613d0]
xor bl, bl
lea r10d, [r14 - 8]
mov dword [rsp + 0x48], r15d
jmp 0x140109354
lea rcx, [rbp - 0x20]
call fcn.140071dd0
test eax, eax
jle 0x1401092f8
lea rax, [0x140109ff0]
mov r14d, Ordinal_50
mov r10d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x40], rax
lea rax, [0x140072480]
lea edi, [r14 + 0x50]
mov dword [rsp + 0x24], r10d
jmp 0x140109359
sub ecx, 0x2a2
je 0x140109326
dec ecx
je 0x1401092ff
lea r8, [0x14021d1dc]
lea rcx, [0x14021d260]
mov edx, 0x209
call fcn.14004dc30
test r14, r14
je 0x1401092f8
xor r12d, r12d
mov qword [r14], r12
xor eax, eax
jmp 0x140109a45
lea rcx, [rbp - 0x20]
call fcn.14006c0b0
test eax, eax
jle 0x1401092f8
mov r14d, Ordinal_30
lea rcx, [0x140109f10]
lea rax, [0x14006c4c0]
lea r10d, [r14 - 0x14]
jmp 0x140109354
lea rcx, [rbp - 0x20]
call fcn.1400723f0
test eax, eax
jle 0x1401092f8
mov r10d, reloc.WS2_32.dll_recv
mov r14d, edi
lea rcx, [0x140109ff0]
lea rax, [0x140072480]
mov edi, 0x80
mov dword [rsp + 0x24], r10d
mov qword [rsp + 0x40], rcx
movzx r11d, byte [rbp + 0x348]
mov qword [rsp + 0x3b8], r13
mov r13d, reloc.WS2_32.dll_listen
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], r13d
test r11b, r11b
je 0x140109396
mov r13d, dword [rbp + 0x340]
add r13d, 0xb
add r13d, r15d
mov dword [rsp + 0x2c], r13d
mov r15d, dword [rbp + 0x328]
test r11b, r11b
mov eax, 2
mov r9d, 6
cmovne r9d, eax
xor edx, edx
mov eax, esi
sub eax, r14d
sub r15d, r14d
xor r12d, r12d
dec eax
add r15d, r13d
mov ecx, r12d
add eax, r13d
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r12d
add eax, r10d
mov esi, r12d
add eax, edi
div edi
xor edx, edx
mov r8d, eax
mov eax, r15d
div edi
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x6c], edx
xor edx, edx
lea eax, [r15 + r10]
div edi
test r11b, r11b
setne cl
mov dword [rsp + 0x64], eax
add ecx, r9d
cmp r8d, ecx
jbe 0x140109413
mov esi, r8d
sub esi, r9d
mov dword [rsp + 0x38], esi
imul esi, edi
lea r15d, [r15*8]
test r11b, r11b
jne 0x140109510
lea rcx, [rbp + 0x110]
mov r8d, edi
xor edx, edx
lea r15d, [r15 + rdi*8]
call fcn.140152f60
mov eax, dword [rbp + 0x340]
cmp eax, 0x80
jbe 0x140109464
lea r8, str.mac_secret_length___sizeof_hmac_pad_
lea rcx, str.._ssl_s3_cbc.c
mov edx, 0x271
call fcn.14004dc30
mov eax, dword [rbp + 0x340]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp + 0x110]
mov r8d, eax
call fcn.140152980
mov edx, r12d
test edi, edi
je 0x1401094fc
cmp edi, 0x20
jb 0x1401094d9
movdqa xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
mov eax, edi
mov r8d, edi
and eax, 0x1f
sub r8d, eax
nop word [rax + rax]
mov eax, edx
movdqu xmm0, xmmword [rbp + rax + 0x110]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0x110], xmm0
lea eax, [rdx + 0x10]
add edx, 0x20
movdqu xmm0, xmmword [rbp + rax + 0x110]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0x110], xmm0
cmp edx, r8d
jb 0x1401094a0
cmp edx, edi
jae 0x1401094fc
mov eax, edx
lea rcx, [rbp + 0x110]
add rcx, rax
mov eax, edi
sub eax, edx
mov edx, eax
nop
xor byte [rcx], 0x36
lea rcx, [rcx + 1]
dec rdx
jne 0x1401094f0
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x20]
call qword [rsp + Ordinal_50]
mov r10d, dword [rsp + 0x24]
xor edx, edx
lea rcx, [rbp + 0xc0]
test bl, bl
je 0x140109565
lea eax, [r10 - 4]
mov r8d, eax
mov ebx, eax
call fcn.140152f60
mov r8d, dword [rsp + 0x24]
mov eax, r15d
shr eax, 0x18
mov edx, r15d
mov byte [rbp + rbx + 0xc0], al
lea eax, [r8 - 3]
shr edx, 0x10
mov byte [rbp + rax + 0xc0], dl
lea eax, [r8 - 2]
mov edx, r15d
shr edx, 8
mov byte [rbp + rax + 0xc0], dl
lea eax, [r8 - 1]
jmp 0x1401095a9
mov r8d, r10d
call fcn.140152f60
mov r8d, dword [rsp + 0x24]
mov edx, r15d
shr edx, 0x18
lea eax, [r8 - 5]
mov byte [rbp + rax + 0xc0], dl
lea eax, [r8 - 6]
mov edx, r15d
shr edx, 0x10
mov byte [rbp + rax + 0xc0], dl
lea eax, [r8 - 7]
mov edx, r15d
shr edx, 8
mov byte [rbp + rax + 0xc0], dl
lea eax, [r8 - 8]
mov byte [rbp + rax + 0xc0], r15b
test esi, esi
je 0x1401096f1
cmp byte [rbp + 0x348], r12b
je 0x14010966b
cmp r13d, edi
jbe 0x140109a3b
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x20]
mov ebx, r13d
sub ebx, edi
call qword [rsp + Ordinal_50]
mov edx, edi
add rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x190]
mov r8d, ebx
mov r15d, ebx
call fcn.140152980
mov rdx, qword [rsp + 0x50]
mov r8d, edi
lea rcx, [rbp + 0x190]
add rcx, r15
sub r8d, ebx
call fcn.140152980
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call qword [rsp + Ordinal_50]
xor edx, edx
mov eax, esi
div edi
dec eax
cmp eax, 1
jbe 0x1401096f1
mov r12, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
mov ebx, edi
lea r14d, [rax - 1]
nop dword [rax]
nop dword [rax + rax]
mov edx, ebx
lea rcx, [rbp - 0x20]
sub rdx, r15
add rdx, r13
call r12
add ebx, edi
dec r14
jne 0x140109650
xor r12d, r12d
jmp 0x1401096e7
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
lea r8d, [rdi - 0xd]
mov eax, dword [rcx + 8]
movsd xmm0, qword [rcx]
movsd qword [rbp + 0x190], xmm0
mov dword [rbp + 0x198], eax
movzx eax, byte [rcx + 0xc]
lea rcx, [rbp + 0x19d]
mov byte [rbp + 0x19c], al
call fcn.140152980
mov r15, qword [rsp + 0x30]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call r15
xor edx, edx
mov eax, esi
div edi
cmp eax, 1
jbe 0x1401096f1
mov r13, qword [rsp + 0x50]
mov ebx, edi
lea r14d, [rax - 1]
nop dword [rax]
mov eax, ebx
lea rdx, [r13 - 0xd]
lea rcx, [rbp - 0x20]
add rdx, rax
call r15
add ebx, edi
dec r14
jne 0x1401096d0
mov r14d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x2c]
mov ebx, dword [rsp + 0x38]
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rax
mov eax, dword [rsp + 0x3c]
add eax, ebx
mov dword [rsp + 0x70], eax
cmp ebx, eax
ja 0x1401099a3
movaps xmmword [rsp + 0x3a0], xmm6
nop dword [rax]
mov eax, ebx
mov r11d, r12d
xor eax, dword [rbp - 0x80]
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
mov eax, ebx
xor eax, dword [rsp + 0x64]
neg cl
lea r15d, [rax - 1]
not eax
mov dword [rsp + 0x3c], ecx
shr r15d, 0x1f
shr eax, 0x1f
and r15b, al
neg r15b
movsx eax, r15b
movd xmm6, eax
punpcklbw xmm6, xmm6
punpcklwd xmm6, xmm6
pshufd xmm6, xmm6, 0
test edi, edi
je 0x1401098d3
mov edx, dword [rsp + 0x6c]
movzx r10d, cl
lea r14, [rbp + 0x210]
lea eax, [rdx + 1]
mov r8d, edx
mov dword [rsp + 0x78], r10d
shr eax, 0x1f
shr r8d, 0x1f
mov r12d, ecx
mov dword [rsp + 0x2c], eax
movzx eax, r15b
mov dword [rsp + 0x7c], r8d
not al
or al, cl
mov byte [rsp + 0x28], al
mov eax, edi
sub eax, dword [rsp + 0x24]
neg edx
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x68], edx
nop word [rax + rax]
xor bl, bl
mov eax, esi
cmp esi, r13d
jae 0x140109800
mov rcx, qword [rsp + 0x58]
jmp 0x140109819
mov ecx, r13d
add rcx, qword [rbp + 0x330]
cmp rax, rcx
jae 0x14010981d
mov rcx, qword [rsp + 0x50]
mov eax, esi
sub eax, r13d
movzx ebx, byte [rax + rcx]
add edx, r11d
mov r9d, r11d
inc esi
shr r9d, 0x1f
mov ecx, edx
shr ecx, 0x1f
movzx eax, r9b
xor al, r8b
xor cl, r8b
or cl, al
xor cl, r9b
dec cl
movzx r8d, cl
and r8d, r10d
lea r10d, [rdx - 1]
mov edx, dword [rsp + 0x2c]
shr r10d, 0x1f
movzx eax, dl
xor r10b, dl
xor al, r9b
or r10b, al
movzx eax, r8b
and r8b, 0x80
xor r10b, r9b
not al
dec r10b
and al, bl
and r10b, r12b
or al, r8b
not r10b
and r10b, al
and r10b, byte [rsp + 0x28]
cmp r11d, dword [rsp + 0x74]
jb 0x1401098a7
mov eax, r11d
movzx edx, r15b
sub eax, edi
add eax, dword [rsp + 0x24]
movzx ecx, byte [rbp + rax + 0xc0]
and cl, dl
not dl
and r10b, dl
or r10b, cl
mov r8d, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x68]
mov byte [r14], r10b
mov r10d, dword [rsp + 0x78]
inc r11d
inc r14
cmp r11d, edi
jb 0x1401097f0
mov r14d, dword [rsp + 0x20]
mov ebx, dword [rsp + 0x38]
xor r12d, r12d
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call qword [rsp + Ordinal_50]
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x40]
mov edx, r12d
test r14d, r14d
je 0x14010998b
cmp r14d, 0x20
jb 0x140109963
mov eax, r14d
mov r8d, r14d
and eax, 0x1f
sub r8d, eax
nop
mov eax, edx
movdqu xmm0, xmmword [rbp + rax + 0xd0]
movdqu xmm1, xmmword [rbp + rax + 0x210]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rax + 0xd0], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movdqu xmm0, xmmword [rbp + rax + 0xd0]
movdqu xmm1, xmmword [rbp + rax + 0x210]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rax + 0xd0], xmm1
cmp edx, r8d
jb 0x140109910
cmp edx, r14d
jae 0x14010998b
mov r8d, r14d
mov eax, edx
sub r8d, edx
movzx ecx, byte [rbp + rax + 0x210]
lea rax, [rax + 1]
and cl, r15b
or byte [rbp + rax + 0xcf], cl
dec r8
jne 0x140109970
inc ebx
mov dword [rsp + 0x38], ebx
cmp ebx, dword [rsp + 0x70]
jbe 0x140109750
movaps xmm6, xmmword [rsp + 0x3a0]
lea rcx, [rbp - 0x58]
call fcn.1400829e0
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x58]
mov rdx, qword [rdx]
xor r8d, r8d
call fcn.140082420
test eax, eax
jle 0x140109a32
cmp byte [rbp + 0x348], 0
je 0x140109a66
mov ebx, dword [rsp + 0x48]
lea rcx, [rbp + 0x110]
mov edx, 0x5c
mov r8d, ebx
call fcn.140152f60
mov r8d, dword [rbp + 0x340]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140082680
test eax, eax
jle 0x140109a32
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x58]
mov r8d, ebx
call fcn.140082680
test eax, eax
jle 0x140109a32
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x58]
mov r8d, r14d
call fcn.140082680
test eax, eax
jg 0x140109b16
lea rcx, [rbp - 0x58]
call fcn.1400826a0
xor eax, eax
mov r13, qword [rsp + 0x3b8]
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x3c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test edi, edi
je 0x140109ae0
cmp edi, 0x20
jb 0x140109abd
movdqa xmm1, xmmword [0x14016aa10]
mov eax, edi
mov edx, edi
and eax, 0x1f
sub edx, eax
mov eax, r12d
movdqu xmm0, xmmword [rbp + rax + 0x110]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0x110], xmm0
lea eax, [r12 + 0x10]
add r12d, 0x20
movdqu xmm0, xmmword [rbp + rax + 0x110]
pxor xmm0, xmm1
movdqu xmmword [rbp + rax + 0x110], xmm0
cmp r12d, edx
jb 0x140109a80
cmp r12d, edi
jae 0x140109ae0
lea rcx, [rbp + 0x110]
mov eax, r12d
mov edx, edi
add rcx, rax
sub edx, r12d
xor byte [rcx], 0x6a
lea rcx, [rcx + 1]
dec rdx
jne 0x140109ad4
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x58]
mov r8d, edi
call fcn.140082680
test eax, eax
jle 0x140109a32
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x58]
mov r8d, r14d
call fcn.140082680
test eax, eax
jle 0x140109a32
mov rdx, qword [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.140082300
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140109b38
mov eax, dword [rsp + 0x60]
mov qword [rcx], rax
lea rcx, [rbp - 0x58]
call fcn.1400826a0
mov eax, 1
jmp 0x140109a3d