Function at 0x4dfe20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov ebx, ecx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 0xc]
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]
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 dword [esp + 0x4c], edx
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
xor edi, edi
test eax, eax
je 0x4e0331
lea ecx, [esp + 0xa4]
lea eax, [esp + 0x24]
push ecx
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4e0331
lea ecx, [esp + 0xb4]
lea eax, [esp + 0x34]
push ecx
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4e0331
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push ecx
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4e0331
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea edi, [esp + 0x1c]
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
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
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 0x4e0328
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x1c]
mov esi, ecx
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x150]
push ecx
push esi
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
lea eax, [esp + 0xa4]
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
push eax
lea eax, [esp + 0x28]
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4e0328
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 0x4e0328
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 0x4e0328
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x154]
push ecx
lea edi, [esp + 0x1c]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0xc], eax
jbe 0x4e011b
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
lea esi, [esp + 0x54]
je 0x4e0328
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 0x4e0328
lea eax, [esp + 0x14]
push eax
push esi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4e0328
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x14]
mov dword [esp + 0x50], 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
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
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 0x4e0328
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 esi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x54]
xorps xmm3, xmm3
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x4e0280
xor eax, eax
cmp esi, 0x1f
jbe 0x4e0264
lea ecx, [esp + esi + 0x110]
cmp ebx, ecx
jae 0x4e0221
lea ecx, [ebx + esi]
lea edx, [esp + 0x110]
cmp edx, ecx
jb 0x4e0264
mov eax, esi
xor ecx, ecx
and eax, 0xffffffe0
nop dword [eax + eax]
movups xmm0, xmmword [esp + ecx + 0x110]
movups xmm2, xmmword [ebx + ecx]
movups xmm1, xmmword [esp + ecx + 0x120]
movups xmm4, xmmword [ebx + ecx + 0x10]
xorps xmm2, xmm0
xorps xmm4, xmm1
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm4
add ecx, 0x20
cmp eax, ecx
jne 0x4e0230
nop
cmp esi, eax
je 0x4e0280
mov cl, byte [esp + eax + 0x110]
xor byte [ebx + eax], cl
inc eax
jmp 0x4e0260
sub dword [esp + 0xc], esi
je 0x4e0370
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0x100], xmm3
movaps xmmword [esp + 0xf0], xmm3
movaps xmmword [esp + 0xe0], xmm3
movaps xmmword [esp + 0xd0], xmm3
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], 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 0x4e0328
mov eax, dword [esp + 0x54]
add ebx, esi
push dword [esp + 0x48]
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]
jmp 0x4e0012
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 0x4e0331