Function at 0x422f70
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 0x423390
mov ecx, dword [esi]
test ecx, ecx
je 0x423390
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x423390
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
movzx eax, byte [ecx + 5]
cmp eax, ebx
jae 0x423047
mov eax, dword [ecx]
cmp eax, 0xa
je 0x422fc9
cmp eax, 9
jne 0x423005
push 0
push dword [esi + 4]
call fcn.0042c470
jmp 0x422fd3
push 1
push dword [esi + 4]
call fcn.0042d3e0
add esp, 8
test eax, eax
jne 0x42337d
mov eax, dword [esi]
test eax, eax
je 0x423005
mov ecx, dword [eax]
cmp ecx, 0xa
je 0x42300f
mov eax, 0xffffaf00
cmp ecx, 9
jne 0x42337d
push ebx
push edi
push dword [esi + 4]
call fcn.0042d080
jmp 0x423019
mov eax, 0xffffaf00
jmp 0x42337d
push ebx
push edi
push dword [esi + 4]
call fcn.0042e380
add esp, 0xc
test eax, eax
jne 0x42337d
lea edi, [esp + 0x18]
push edi
push esi
call fcn.00422ec0
add esp, 8
test eax, eax
jne 0x42337d
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 0x423093
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 0x423080
mov ecx, ebx
sub ecx, eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
jbe 0x4231ba
cmp ecx, 8
jb 0x42315f
mov dword [esp], ecx
lea edx, [eax + ebp]
lea esi, [edi + eax]
lea ecx, [edi + ebx]
cmp edx, ecx
jae 0x4230ce
lea ecx, [ebx + ebp]
cmp esi, ecx
jae 0x4230ce
mov esi, dword [esp + 0x5c]
jmp 0x42315f
mov dword [esp + 4], esi
xor ecx, ecx
mov esi, dword [esp]
cmp esi, 0x10
jae 0x42311c
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 0x4230f0
mov ecx, dword [esp + 8]
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
jne 0x42315f
jmp 0x4231ba
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 0x423130
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc]
je 0x4231ba
test byte [esp], 8
jne 0x423398
add eax, ecx
mov edx, ebx
sub edx, eax
mov ecx, eax
and edx, 3
je 0x42317c
mov ecx, eax
nop dword [eax]
movzx ebx, byte [edi + ecx]
xor byte [ebp + ecx], bl
inc ecx
dec edx
jne 0x423170
mov ebx, dword [esp + 0xc]
sub eax, ebx
cmp eax, 0xfffffffc
ja 0x4231ba
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 0x423190
xor eax, eax
cmp ebx, 4
mov edx, dword [esp + 0x14]
jb 0x4231e2
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 0x4231d0
mov ecx, ebx
sub ecx, eax
jbe 0x423319
cmp ecx, 8
jb 0x4232af
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 0x42321b
mov ecx, dword [esp + 0x10]
add ecx, ebx
add ecx, ebp
cmp esi, ecx
jb 0x4232af
mov dword [esp + 4], esi
xor ecx, ecx
mov esi, dword [esp]
cmp esi, 0x10
jae 0x42326c
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 0x423240
mov ecx, dword [esp + 8]
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
jne 0x4232af
jmp 0x423319
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 0x423280
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc]
je 0x423319
test byte [esp], 8
jne 0x4233a0
add eax, ecx
mov edx, ebx
sub edx, eax
mov ecx, eax
and edx, 3
mov esi, dword [esp + 0x14]
je 0x4232cb
mov ecx, eax
movzx ebx, byte [edi + ecx]
xor byte [esi + ecx], bl
inc ecx
dec edx
jne 0x4232c0
mov ebx, dword [esp + 0xc]
sub eax, ebx
cmp eax, 0xfffffffc
mov esi, dword [esp + 0x5c]
ja 0x423319
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 0x4232f0
mov ecx, dword [esi]
mov eax, 0xffffaf00
test ecx, ecx
je 0x42337d
mov ecx, dword [ecx]
cmp ecx, 0xa
je 0x42333c
cmp ecx, 9
jne 0x42337d
push 0
push dword [esi + 4]
call fcn.0042c470
jmp 0x423346
push 1
push dword [esi + 4]
call fcn.0042d3e0
add esp, 8
test eax, eax
jne 0x42337d
mov eax, dword [esi]
movzx ecx, byte [eax + 5]
mov edx, dword [eax]
cmp edx, 0xa
je 0x423370
mov eax, 0xffffaf00
cmp edx, 9
jne 0x42337d
push ecx
push ebp
push dword [esi + 4]
call fcn.0042d080
jmp 0x42337a
push ecx
push ebp
push dword [esi + 4]
call fcn.0042e380
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x30
push ecx
mov esi, eax
call fcn.00422b60
mov eax, esi
add esp, 8
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp]
jmp 0x4230dc
mov esi, dword [esp]
jmp 0x423229