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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, dword [esp + 0x5c]
mov eax, 0xffffaf00
test esi, esi
je 0x421210
mov ecx, dword [esi]
test ecx, ecx
je 0x421210
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x421210
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
movzx eax, byte [ecx + 5]
cmp eax, ebx
jae 0x420ec7
mov eax, dword [ecx]
cmp eax, 0xa
je 0x420e49
cmp eax, 9
jne 0x420e85
push 0
push dword [esi + 4]
call fcn.0042a2f0
jmp 0x420e53
push 1
push dword [esi + 4]
call fcn.0042b260
add esp, 8
test eax, eax
jne 0x4211fd
mov eax, dword [esi]
test eax, eax
je 0x420e85
mov ecx, dword [eax]
cmp ecx, 0xa
je 0x420e8f
mov eax, 0xffffaf00
cmp ecx, 9
jne 0x4211fd
push ebx
push edi
push dword [esi + 4]
call fcn.0042af00
jmp 0x420e99
mov eax, 0xffffaf00
jmp 0x4211fd
push ebx
push edi
push dword [esi + 4]
call fcn.0042c200
add esp, 0xc
test eax, eax
jne 0x4211fd
lea edi, [esp + 0x18]
push edi
push esi
call fcn.00420d40
add esp, 8
test eax, eax
jne 0x4211fd
mov eax, dword [esi]
mov ebp, dword [esi + 8]
movzx ebx, byte [eax + 4]
movzx eax, byte [eax + 5]
lea esi, [eax + ebp]
mov dword [esp + 0x10], eax
push eax
push 0x36
push ebp
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
push eax
push 0x5c
mov dword [esp + 0x1c], esi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
cmp ebx, 4
jb 0x420f13
xor ecx, ecx
nop dword [eax]
mov eax, dword [edi + ecx]
xor dword [ebp + ecx], eax
lea eax, [ecx + 4]
add ecx, 8
cmp ecx, ebx
mov ecx, eax
jbe 0x420f00
mov ecx, ebx
sub ecx, eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
jbe 0x42103a
cmp ecx, 8
jb 0x420fdf
mov dword [esp], ecx
lea edx, [eax + ebp]
lea esi, [edi + eax]
lea ecx, [edi + ebx]
cmp edx, ecx
jae 0x420f4e
lea ecx, [ebx + ebp]
cmp esi, ecx
jae 0x420f4e
mov esi, dword [esp + 0x5c]
jmp 0x420fdf
mov dword [esp + 4], esi
xor ecx, ecx
mov esi, dword [esp]
cmp esi, 0x10
jae 0x420f9c
and esi, 0xfffffff8
mov dword [esp + 8], esi
add eax, esi
mov esi, dword [esp + 4]
nop dword [eax]
movsd xmm0, qword [edx + ecx]
movsd xmm1, qword [esi + ecx]
xorps xmm1, xmm0
movlps qword [edx + ecx], xmm1
add ecx, 8
cmp dword [esp + 8], ecx
jne 0x420f70
mov ecx, dword [esp + 8]
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
jne 0x420fdf
jmp 0x42103a
mov ecx, esi
and ecx, 0xfffffff0
xor esi, esi
mov ebx, dword [esp + 4]
nop word [eax + eax]
movups xmm0, xmmword [edx + esi]
movups xmm1, xmmword [ebx + esi]
xorps xmm1, xmm0
movups xmmword [edx + esi], xmm1
add esi, 0x10
cmp ecx, esi
jne 0x420fb0
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc]
je 0x42103a
test byte [esp], 8
jne 0x421218
add eax, ecx
mov edx, ebx
sub edx, eax
mov ecx, eax
and edx, 3
je 0x420ffc
mov ecx, eax
nop dword [eax]
movzx ebx, byte [edi + ecx]
xor byte [ebp + ecx], bl
inc ecx
dec edx
jne 0x420ff0
mov ebx, dword [esp + 0xc]
sub eax, ebx
cmp eax, 0xfffffffc
ja 0x42103a
nop word [eax + eax]
movzx eax, byte [edi + ecx]
xor byte [ebp + ecx], al
movzx eax, byte [edi + ecx + 1]
xor byte [ebp + ecx + 1], al
movzx eax, byte [edi + ecx + 2]
xor byte [ebp + ecx + 2], al
movzx eax, byte [edi + ecx + 3]
xor byte [ebp + ecx + 3], al
add ecx, 4
cmp ebx, ecx
jne 0x421010
xor eax, eax
cmp ebx, 4
mov edx, dword [esp + 0x14]
jb 0x421062
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [edi + ecx]
xor dword [edx + ecx], eax
lea eax, [ecx + 4]
add ecx, 8
cmp ecx, ebx
mov ecx, eax
jbe 0x421050
mov ecx, ebx
sub ecx, eax
jbe 0x421199
cmp ecx, 8
jb 0x42112f
mov dword [esp], ecx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax]
add edx, ebp
lea esi, [edi + eax]
lea ecx, [edi + ebx]
cmp edx, ecx
jae 0x42109b
mov ecx, dword [esp + 0x10]
add ecx, ebx
add ecx, ebp
cmp esi, ecx
jb 0x42112f
mov dword [esp + 4], esi
xor ecx, ecx
mov esi, dword [esp]
cmp esi, 0x10
jae 0x4210ec
and esi, 0xfffffff8
mov dword [esp + 8], esi
add eax, esi
mov esi, dword [esp + 4]
nop word cs:[eax + eax]
movsd xmm0, qword [edx + ecx]
movsd xmm1, qword [esi + ecx]
xorps xmm1, xmm0
movlps qword [edx + ecx], xmm1
add ecx, 8
cmp dword [esp + 8], ecx
jne 0x4210c0
mov ecx, dword [esp + 8]
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
jne 0x42112f
jmp 0x421199
mov ecx, esi
and ecx, 0xfffffff0
xor esi, esi
mov ebx, dword [esp + 4]
nop word [eax + eax]
movups xmm0, xmmword [edx + esi]
movups xmm1, xmmword [ebx + esi]
xorps xmm1, xmm0
movups xmmword [edx + esi], xmm1
add esi, 0x10
cmp ecx, esi
jne 0x421100
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc]
je 0x421199
test byte [esp], 8
jne 0x421220
add eax, ecx
mov edx, ebx
sub edx, eax
mov ecx, eax
and edx, 3
mov esi, dword [esp + 0x14]
je 0x42114b
mov ecx, eax
movzx ebx, byte [edi + ecx]
xor byte [esi + ecx], bl
inc ecx
dec edx
jne 0x421140
mov ebx, dword [esp + 0xc]
sub eax, ebx
cmp eax, 0xfffffffc
mov esi, dword [esp + 0x5c]
ja 0x421199
mov eax, dword [esp + 0x10]
add eax, ebp
add eax, 3
nop word cs:[eax + eax]
movzx edx, byte [edi + ecx]
xor byte [eax + ecx - 3], dl
movzx edx, byte [edi + ecx + 1]
xor byte [eax + ecx - 2], dl
movzx edx, byte [edi + ecx + 2]
xor byte [eax + ecx - 1], dl
movzx edx, byte [edi + ecx + 3]
xor byte [eax + ecx], dl
add ecx, 4
cmp ebx, ecx
jne 0x421170
mov ecx, dword [esi]
mov eax, 0xffffaf00
test ecx, ecx
je 0x4211fd
mov ecx, dword [ecx]
cmp ecx, 0xa
je 0x4211bc
cmp ecx, 9
jne 0x4211fd
push 0
push dword [esi + 4]
call fcn.0042a2f0
jmp 0x4211c6
push 1
push dword [esi + 4]
call fcn.0042b260
add esp, 8
test eax, eax
jne 0x4211fd
mov eax, dword [esi]
movzx ecx, byte [eax + 5]
mov edx, dword [eax]
cmp edx, 0xa
je 0x4211f0
mov eax, 0xffffaf00
cmp edx, 9
jne 0x4211fd
push ecx
push ebp
push dword [esi + 4]
call fcn.0042af00
jmp 0x4211fa
push ecx
push ebp
push dword [esi + 4]
call fcn.0042c200
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x30
push ecx
mov esi, eax
call fcn.004209e0
mov eax, esi
add esp, 8
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp]
jmp 0x420f5c
mov esi, dword [esp]
jmp 0x4210a9