Function at 0x4f9210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x180], xmm0
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
mov edx, dword [ecx + 4]
mov dword [esp + 0x4c], edx
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x40], 0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xc0], 0
mov edx, dword [ebp + 0x10]
sub esp, 4
lea esi, [esp + 0x94]
push ecx
push edx
push eax
push esi
call sym.fastboot.exe_HMAC_Init_ex
add esp, 0x14
test eax, eax
je 0x4f9830
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa4]
push ecx
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9830
lea eax, [esp + 0x34]
lea ecx, [esp + 0xb4]
push ecx
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9830
mov dword [esp + 8], edi
lea edi, [esp + 0x14]
lea eax, [esp + 0x94]
push eax
push edi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9830
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push edi
call dword [eax + 0x10]
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xd0]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x34]
push eax
push edi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0xd4]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x150]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
xorps xmm0, xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x28]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
lea edi, [esp + 0x54]
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x38]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x18]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x154]
push ecx
lea esi, [esp + 0x1c]
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x4c]
jbe 0x4f9505
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
lea eax, [esp + 0x14]
push eax
push edi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
lea esi, [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push esi
call dword [eax + 0x10]
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xd0]
push ecx
push esi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov edi, esi
mov esi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x34]
push eax
push edi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0xd4]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x110]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
mov edx, dword [esp + 8]
cmp edi, edx
mov ecx, edi
cmova ecx, edx
test ecx, ecx
xorps xmm3, xmm3
mov esi, ecx
je 0x4f9734
xor eax, eax
cmp ecx, 8
jb 0x4f9720
xor eax, eax
cmp ecx, 0x20
jb 0x4f96dc
mov eax, ecx
and eax, 0xffffffe0
lea ecx, [eax - 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
shr ecx, 5
add ecx, 1
cmp dword [esp + 0xc], 0
mov dword [esp + 0x48], ecx
je 0x4f969c
mov edx, ecx
and edx, 0xfffffffe
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [esp + ecx + 0x110]
movups xmm1, xmmword [esp + ecx + 0x120]
movups xmm2, xmmword [ebx + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm0
movups xmm0, xmmword [esp + ecx + 0x130]
movups xmm1, xmmword [esp + ecx + 0x140]
movups xmm2, xmmword [ebx + ecx + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx + 0x30]
xorps xmm0, xmm1
movups xmmword [ebx + ecx + 0x20], xmm2
movups xmmword [ebx + ecx + 0x30], xmm0
add ecx, 0x40
add edx, 0xfffffffe
jne 0x4f9640
jmp 0x4f969e
xor ecx, ecx
test byte [esp + 0x48], 1
mov edx, dword [esp + 8]
je 0x4f96d1
movups xmm0, xmmword [esp + ecx + 0x110]
movups xmm1, xmmword [esp + ecx + 0x120]
movups xmm2, xmmword [ebx + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm0
mov ecx, esi
cmp esi, eax
je 0x4f9734
test cl, 0x18
je 0x4f9720
mov ecx, eax
cmp edx, edi
cmovb edi, edx
mov eax, edi
and eax, 0xfffffff8
nop dword [eax + eax]
movsd xmm0, qword [esp + ecx + 0x110]
movsd xmm1, qword [ebx + ecx]
xorps xmm1, xmm0
movlps qword [ebx + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4f96f0
cmp edi, eax
mov ecx, esi
je 0x4f9734
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, byte [esp + eax + 0x110]
xor byte [ebx + eax], cl
mov ecx, esi
add eax, 1
cmp esi, eax
jne 0x4f9720
sub edx, ecx
je 0x4f9871
mov dword [esp + 8], edx
movaps xmmword [esp + 0x100], xmm3
movaps xmmword [esp + 0xf0], xmm3
movaps xmmword [esp + 0xe0], xmm3
movaps xmmword [esp + 0xd0], xmm3
mov eax, dword [esp + 0x54]
lea edi, [esp + 0xd0]
push edi
lea edi, [esp + 0x58]
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], ecx
push dword [eax + 0x1c]
push dword [esp + 0x5c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x74]
push eax
push edi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4f9829
add ebx, esi
mov eax, dword [esp + 0x54]
push dword [esp + 0xc]
lea ecx, [esp + 0xd4]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x150]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x5c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
xorps xmm0, xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x28]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
jne 0x4f9444
lea esi, [esp + 0x90]
xor edi, edi
lea eax, [esp + 0x150]
push 0x40
push eax
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x10]
push eax
call sym.fastboot.exe_HMAC_CTX_cleanup
add esp, 4
lea eax, [esp + 0x50]
push eax
call sym.fastboot.exe_HMAC_CTX_cleanup
add esp, 4
push esi
call sym.fastboot.exe_HMAC_CTX_cleanup
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 1
lea esi, [esp + 0x90]
jmp 0x4f9832