Function at 0x4c4b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [edx + 4]
test eax, eax
je 0x4c4c95
mov edi, edx
mov ebp, ecx
mov ecx, dword [edx]
xor edx, edx
mov esi, 0
cmp eax, 8
jb 0x4c4c70
mov dword [esp], ebp
mov edx, eax
and edx, 0xfffffff8
lea esi, [edx - 8]
mov ebp, esi
shr ebp, 3
add ebp, 1
mov ebx, ebp
and ebx, 3
cmp esi, 0x18
jae 0x4c4bb1
pxor xmm0, xmm0
xor esi, esi
pxor xmm1, xmm1
jmp 0x4c4c17
and ebp, 0xfffffffc
pxor xmm0, xmm0
xor esi, esi
pxor xmm1, xmm1
nop
movdqu xmm2, xmmword [ecx + esi*4]
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + esi*4 + 0x10]
por xmm0, xmm1
movdqu xmm1, xmmword [ecx + esi*4 + 0x20]
movdqu xmm3, xmmword [ecx + esi*4 + 0x30]
movdqu xmm4, xmmword [ecx + esi*4 + 0x40]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ecx + esi*4 + 0x50]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + esi*4 + 0x60]
por xmm0, xmm4
movdqu xmm1, xmmword [ecx + esi*4 + 0x70]
por xmm1, xmm2
add esi, 0x20
add ebp, 0xfffffffc
jne 0x4c4bc0
test ebx, ebx
je 0x4c4c4a
lea esi, [ecx + esi*4]
add esi, 0x10
shl ebx, 5
xor ebp, ebp
nop word cs:[eax + eax]
movdqu xmm2, xmmword [esi + ebp - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + ebp]
por xmm1, xmm2
add ebp, 0x20
cmp ebx, ebp
jne 0x4c4c30
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd esi, xmm0
cmp eax, edx
mov ebp, dword [esp]
je 0x4c4c7a
nop dword [eax + eax]
or esi, dword [ecx + edx*4]
add edx, 1
cmp eax, edx
jne 0x4c4c70
test esi, esi
je 0x4c4c95
test eax, eax
jle 0x4c4c87
test byte [ecx], 1
jne 0x4c4cb7
push 0xa9
push str.external_boringssl_src_crypto_fipsmodule_bn_montgomery.c
push 0x68
jmp 0x4c4ca1
push 0xa5
push str.external_boringssl_src_crypto_fipsmodule_bn_montgomery.c
push 0x69
push 0
push 3
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [edi + 0xc], 0
je 0x4c4ccb
push 0xad
push str.external_boringssl_src_crypto_fipsmodule_bn_montgomery.c
push 0x6d
jmp 0x4c4ca1
lea esi, [ebp + 0x14]
cmp esi, edi
je 0x4c4d0d
push eax
push esi
call fcn.004b36f0
add esp, 8
test eax, eax
je 0x4c4e28
mov eax, dword [edi + 4]
lea ecx, [eax*4]
test ecx, ecx
je 0x4c4d02
push ecx
push dword [edi]
push dword [esi]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [ebp + 0x18], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp + 0x20], ecx
jmp 0x4c4d10
mov eax, dword [ebp + 0x18]
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov edi, eax
mov dword [esp], ebp
nop dword [eax]
test edi, edi
jle 0x4c4d44
mov edx, dword [esi]
lea ebx, [edi - 1]
cmp dword [edx + edi*4 - 4], 0
mov edi, ebx
je 0x4c4d20
add ebx, 1
mov dword [ebp + 0x18], ebx
mov eax, dword [edx]
cmp ebx, 2
jb 0x4c4d56
mov edx, dword [edx + 4]
jmp 0x4c4d58
mov dword [ebp + 0x18], ecx
test eax, eax
js 0x4c4d52
mov dword [ebp + 0x20], 0
mov eax, dword [esi]
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 8], eax
xor ecx, ecx
mov ebp, 1
mov esi, 0x40
mov dword [esp + 4], 0
xor ebx, ebx
mov dword [esp + 0xc], edx
nop word cs:[eax + eax]
mov dword [esp + 0x14], esi
mov esi, ebp
and esi, 1
neg esi
mov edi, 0
sbb edi, edi
mov dword [esp + 0x10], edi
mov eax, edx
and eax, edi
and esi, dword [esp + 8]
mov edi, esi
xor edi, ebp
mov edx, eax
xor edx, ecx
shrd edi, edx, 1
shr edx, 1
and eax, ecx
and esi, ebp
add esi, edi
adc eax, edx
mov ebp, esi
and ebp, 1
neg ebp
mov edi, 0
sbb edi, edi
mov ecx, dword [esp + 0xc]
and ecx, edi
and ebp, dword [esp + 8]
mov edx, ecx
xor edx, eax
and ecx, eax
mov eax, ebp
xor eax, esi
and ebp, esi
mov esi, dword [esp + 0x14]
shrd eax, edx, 1
shr edx, 1
add ebp, eax
adc ecx, edx
mov edx, dword [esp + 0xc]
shrd dword [esp + 4], ebx, 2
shr ebx, 2
mov eax, dword [esp + 0x10]
shr eax, 1
and eax, 0x40000000
or ebx, eax
and edi, 0x80000000
or ebx, edi
add esi, 0xfffffffe
jne 0x4c4d80
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov eax, 1
jmp 0x4c4caf
push 0xb3
push str.external_boringssl_src_crypto_fipsmodule_bn_montgomery.c
push 0x44
jmp 0x4c4ca1