Function at 0x423230
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 0x423650
mov ecx, dword [esi]
test ecx, ecx
je 0x423650
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x423650
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
movzx eax, byte [ecx + 5]
cmp eax, ebx
jae 0x423307
mov eax, dword [ecx]
cmp eax, 0xa
je 0x423289
cmp eax, 9
jne 0x4232c5
push 0
push dword [esi + 4]
call fcn.0042c730
jmp 0x423293
push 1
push dword [esi + 4]
call fcn.0042d6a0
add esp, 8
test eax, eax
jne 0x42363d
mov eax, dword [esi]
test eax, eax
je 0x4232c5
mov ecx, dword [eax]
cmp ecx, 0xa
je 0x4232cf
mov eax, 0xffffaf00
cmp ecx, 9
jne 0x42363d
push ebx
push edi
push dword [esi + 4]
call fcn.0042d340
jmp 0x4232d9
mov eax, 0xffffaf00
jmp 0x42363d
push ebx
push edi
push dword [esi + 4]
call fcn.0042e640
add esp, 0xc
test eax, eax
jne 0x42363d
lea edi, [esp + 0x18]
push edi
push esi
call fcn.00423180
add esp, 8
test eax, eax
jne 0x42363d
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 0x423353
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 0x423340
mov ecx, ebx
sub ecx, eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
jbe 0x42347a
cmp ecx, 8
jb 0x42341f
mov dword [esp], ecx
lea edx, [eax + ebp]
lea esi, [edi + eax]
lea ecx, [edi + ebx]
cmp edx, ecx
jae 0x42338e
lea ecx, [ebx + ebp]
cmp esi, ecx
jae 0x42338e
mov esi, dword [esp + 0x5c]
jmp 0x42341f
mov dword [esp + 4], esi
xor ecx, ecx
mov esi, dword [esp]
cmp esi, 0x10
jae 0x4233dc
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 0x4233b0
mov ecx, dword [esp + 8]
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
jne 0x42341f
jmp 0x42347a
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 0x4233f0
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc]
je 0x42347a
test byte [esp], 8
jne 0x423658
add eax, ecx
mov edx, ebx
sub edx, eax
mov ecx, eax
and edx, 3
je 0x42343c
mov ecx, eax
nop dword [eax]
movzx ebx, byte [edi + ecx]
xor byte [ebp + ecx], bl
inc ecx
dec edx
jne 0x423430
mov ebx, dword [esp + 0xc]
sub eax, ebx
cmp eax, 0xfffffffc
ja 0x42347a
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 0x423450
xor eax, eax
cmp ebx, 4
mov edx, dword [esp + 0x14]
jb 0x4234a2
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 0x423490
mov ecx, ebx
sub ecx, eax
jbe 0x4235d9
cmp ecx, 8
jb 0x42356f
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 0x4234db
mov ecx, dword [esp + 0x10]
add ecx, ebx
add ecx, ebp
cmp esi, ecx
jb 0x42356f
mov dword [esp + 4], esi
xor ecx, ecx
mov esi, dword [esp]
cmp esi, 0x10
jae 0x42352c
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 0x423500
mov ecx, dword [esp + 8]
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
jne 0x42356f
jmp 0x4235d9
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 0x423540
cmp dword [esp], ecx
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc]
je 0x4235d9
test byte [esp], 8
jne 0x423660
add eax, ecx
mov edx, ebx
sub edx, eax
mov ecx, eax
and edx, 3
mov esi, dword [esp + 0x14]
je 0x42358b
mov ecx, eax
movzx ebx, byte [edi + ecx]
xor byte [esi + ecx], bl
inc ecx
dec edx
jne 0x423580
mov ebx, dword [esp + 0xc]
sub eax, ebx
cmp eax, 0xfffffffc
mov esi, dword [esp + 0x5c]
ja 0x4235d9
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 0x4235b0
mov ecx, dword [esi]
mov eax, 0xffffaf00
test ecx, ecx
je 0x42363d
mov ecx, dword [ecx]
cmp ecx, 0xa
je 0x4235fc
cmp ecx, 9
jne 0x42363d
push 0
push dword [esi + 4]
call fcn.0042c730
jmp 0x423606
push 1
push dword [esi + 4]
call fcn.0042d6a0
add esp, 8
test eax, eax
jne 0x42363d
mov eax, dword [esi]
movzx ecx, byte [eax + 5]
mov edx, dword [eax]
cmp edx, 0xa
je 0x423630
mov eax, 0xffffaf00
cmp edx, 9
jne 0x42363d
push ecx
push ebp
push dword [esi + 4]
call fcn.0042d340
jmp 0x42363a
push ecx
push ebp
push dword [esi + 4]
call fcn.0042e640
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x30
push ecx
mov esi, eax
call fcn.00422e20
mov eax, esi
add esp, 8
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp]
jmp 0x42339c
mov esi, dword [esp]
jmp 0x4234e9