Function at 0x4ec470
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [esp + 0xe8]
cmp esi, 0x20
je 0x4ec4aa
xor ebx, ebx
cmp esi, 0x10
jne 0x4ec7c1
push 0x4eb960
push 0x5b2878
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x5b2880
jmp 0x4ec4c1
push 0x4ebd00
push 0x5b29fc
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x5b2a00
mov ecx, dword [esp + 0xe4]
xorps xmm0, xmm0
movups xmmword [esp + 0xac], xmm0
movups xmmword [esp + 0xa0], xmm0
movups xmmword [esp + 0x90], xmm0
movups xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
sub esp, 4
lea edx, [esp + 4]
push eax
push esi
push ecx
push edx
call sym.fastboot.exe_CMAC_Init
add esp, 0x14
xor ebx, ebx
test eax, eax
je 0x4ec729
mov ecx, dword [esp + 0xf0]
mov edi, dword [esp + 0xec]
mov eax, dword [esp]
mov esi, dword [esp + 0xb8]
mov ebp, dword [eax + 4]
xorps xmm0, xmm0
movups xmmword [esp + 0xbc], xmm0
test esi, esi
je 0x4ec5bf
mov ebx, ebp
sub ebx, esi
cmp ebx, ecx
cmovae ebx, ecx
lea eax, [esp + 0xa8]
test ebx, ebx
je 0x4ec585
add esi, eax
push ebx
push edi
push esi
mov esi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, esi
add esp, 0xc
mov esi, dword [esp + 0xb8]
add esi, ebx
mov dword [esp + 0xb8], esi
sub ecx, ebx
je 0x4ec60a
mov esi, ecx
mov eax, dword [esp]
lea ecx, [esp + 0xbc]
push ebp
lea edx, [esp + 0xac]
push edx
push ecx
lea ecx, [esp + 0xc]
push ecx
call dword [eax + 0x20]
add esp, 0x10
test eax, eax
je 0x4ec637
add edi, ebx
mov ecx, esi
cmp ecx, ebp
jbe 0x4ec62f
lea ebx, [esp + 0xbc]
mov esi, ecx
nop dword [eax]
mov eax, dword [esp]
push ebp
push edi
push ebx
lea ecx, [esp + 0xc]
push ecx
call dword [eax + 0x20]
add esp, 0x10
test eax, eax
je 0x4ec637
add edi, ebp
sub esi, ebp
cmp esi, ebp
ja 0x4ec5d0
test esi, esi
je 0x4ec603
lea eax, [esp + 0xa8]
push esi
push edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0xb8], esi
mov edi, dword [esp + 0xe0]
mov eax, dword [esp]
test edi, edi
je 0x4ec63e
mov ebx, dword [eax + 4]
cmp esi, ebx
jne 0x4ec648
lea eax, [esp + 0x88]
test ebx, ebx
jne 0x4ec682
jmp 0x4ec711
mov esi, ecx
test esi, esi
jne 0x4ec5f1
jmp 0x4ec603
xor ebx, ebx
jmp 0x4ec729
mov ebx, 1
jmp 0x4ec730
mov byte [esp + esi + 0xa8], 0x80
mov ecx, dword [esp + 0xb8]
mov eax, ecx
not eax
add eax, ebx
je 0x4ec673
add ecx, esp
add ecx, 0xa9
push eax
push 0
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esp + 0x98]
test ebx, ebx
je 0x4ec711
xor ecx, ecx
cmp ebx, 8
jb 0x4ec6fe
xor ecx, ecx
cmp ebx, 0x20
jb 0x4ec6d8
mov ecx, ebx
and ecx, 0xffffffe0
xor edx, edx
nop word [eax + eax]
movups xmm0, xmmword [esp + edx + 0xa8]
movups xmm1, xmmword [esp + edx + 0xb8]
movups xmm2, xmmword [eax + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + edx + 0x10]
xorps xmm0, xmm1
movups xmmword [edi + edx], xmm2
movups xmmword [edi + edx + 0x10], xmm0
add edx, 0x20
cmp ecx, edx
jne 0x4ec6a0
cmp ebx, ecx
je 0x4ec711
test bl, 0x18
je 0x4ec6fe
mov edx, ecx
mov ecx, ebx
and ecx, 0xfffffff8
nop
movsd xmm0, qword [esp + edx + 0xa8]
movsd xmm1, qword [eax + edx]
xorps xmm1, xmm0
movlps qword [edi + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x4ec6e0
jmp 0x4ec70d
movzx edx, byte [eax + ecx]
xor dl, byte [esp + ecx + 0xa8]
mov byte [edi + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x4ec6fe
mov eax, dword [esp]
push ebx
push edi
push edi
lea ecx, [esp + 0xc]
push ecx
call dword [eax + 0x20]
add esp, 0x10
xor ebx, ebx
test eax, eax
setne bl
mov eax, dword [esp]
test eax, eax
je 0x4ec73f
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4ec73f
mov ecx, esp
push ecx
call eax
add esp, 4
push dword [esp + 8]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
xorps xmm0, xmm0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x88]
push 0x10
push eax
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x98]
push 0x10
push eax
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0xa8]
push 0x10
push eax
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
mov eax, ebx
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret