Function at 0x4cdce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x190
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 0xc]
xorps xmm0, 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 0x4ce141
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 0x4ce141
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 0x4ce141
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 0x4ce141
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]
lea ecx, [esp + 0x10c]
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 0x4ce138
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x110]
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 + 0x14c]
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
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 0x4ce138
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 0x4ce138
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 0x4ce138
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x150]
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 0x4cdf75
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 0x4ce138
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 0x4ce138
lea eax, [esp + 0x14]
push eax
push esi
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x4ce138
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]
lea ecx, [esp + 0x10c]
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 0x4ce138
mov eax, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x110]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xcc]
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]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x4ce0b0
xor eax, eax
cmp esi, 0x1f
jbe 0x4ce0a0
lea ecx, [esp + esi + 0xcc]
cmp ebx, ecx
jae 0x4ce055
lea ecx, [ebx + esi]
lea edx, [esp + 0xcc]
cmp edx, ecx
jb 0x4ce0a0
mov eax, esi
xor ecx, ecx
and eax, 0xffffffe0
nop dword [eax]
movups xmm0, xmmword [esp + ecx + 0xcc]
movups xmm2, xmmword [ebx + ecx]
movups xmm1, xmmword [esp + ecx + 0xdc]
movups xmm3, xmmword [ebx + ecx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ebx + ecx], xmm2
movups xmmword [ebx + ecx + 0x10], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x4ce060
cmp esi, eax
je 0x4ce0b0
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, byte [esp + eax + 0xcc]
xor byte [ebx + eax], cl
inc eax
cmp eax, esi
jb 0x4ce0a0
sub dword [esp + 0xc], esi
je 0x4ce180
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x10c]
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 0x4ce138
mov eax, dword [esp + 0x54]
add ebx, esi
push dword [esp + 0x48]
lea ecx, [esp + 0x110]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x14c]
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 0x4cde8f
lea esi, [esp + 0x90]
xor edi, edi
lea eax, [esp + 0x14c]
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 0x4ce141