Function at 0x491540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov eax, dword [0x533014]
xor eax, ebp
test edi, edi
cmove edi, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x4915bf
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
mov edx, dword [ecx]
xor ecx, ecx
xor esi, esi
nop dword [eax]
or esi, dword [edx + ecx*4]
inc ecx
cmp ebx, ecx
jne 0x491580
test esi, esi
je 0x4915bf
mov dword [esp + 0x1c], edi
mov ecx, ebx
sar ecx, 0x1f
and ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
nop word cs:[eax + eax]
test ecx, ecx
jle 0x4915d0
mov edi, dword [edx + ecx*4 - 4]
dec ecx
test edi, edi
je 0x4915b0
jmp 0x4915e5
push 0x261
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push pe_nt_image_headers32
jmp 0x4917a4
xor edi, edi
test ebx, ebx
jns 0x49166e
mov eax, dword [esp + 0x10]
lea ecx, [eax - 1]
mov edi, dword [edx + eax*4 - 4]
shl ecx, 5
xor eax, eax
test edi, edi
setne al
mov dword [esp + 4], eax
mov esi, edi
shr esi, 0x10
cmp edi, 0x10000
cmovb esi, edi
mov eax, 0
setae al
shl eax, 4
mov dword [esp + 0x14], eax
mov edi, esi
shr edi, 8
xor eax, eax
cmp esi, 0x100
cmovb edi, esi
setae al
mov dword [esp + 8], eax
mov esi, edi
shr esi, 4
xor eax, eax
cmp edi, 0x10
cmovb esi, edi
setae al
mov dword [esp + 0xc], eax
mov edi, esi
shr edi, 2
xor eax, eax
cmp esi, 4
cmovb edi, esi
setae al
mov esi, eax
mov eax, dword [esp + 4]
or eax, ecx
add eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
lea ecx, [eax + ecx*8]
mov eax, dword [esp + 0xc]
lea ecx, [ecx + eax*4]
cmp edi, 2
lea edi, [ecx + esi*2]
sbb edi, 0xffffffff
dec edi
and edi, 7
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x49168f
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x491743
mov esi, edi
mov ecx, ebx
nop word cs:[eax + eax]
test ecx, ecx
jle 0x4916af
mov edi, dword [edx + ecx*4 - 4]
dec ecx
test edi, edi
je 0x4916a0
jmp 0x4916c4
xor eax, eax
test ebx, ebx
mov edi, esi
jns 0x491743
mov ecx, dword [esp + 0x10]
mov edi, dword [edx + ecx*4 - 4]
dec ecx
shl ecx, 5
mov dword [esp + 0x14], esi
mov ebx, edi
shr ebx, 0x10
xor eax, eax
cmp edi, 0x10000
cmovb ebx, edi
setae al
shl eax, 4
mov dword [esp + 4], eax
mov esi, ebx
shr esi, 8
xor eax, eax
cmp ebx, 0x100
cmovb esi, ebx
setae al
mov dword [esp + 8], eax
mov eax, esi
shr eax, 4
xor ebx, ebx
cmp esi, 0x10
cmovb eax, esi
setae bl
mov esi, eax
shr esi, 2
xor edx, edx
cmp eax, 4
cmovb esi, eax
setae dl
cmp edi, 1
sbb ecx, 0
add ecx, 8
or ecx, dword [esp + 4]
cmp esi, 2
mov eax, dword [esp + 8]
lea eax, [ecx + eax*8]
lea eax, [eax + ebx*4]
mov edi, dword [esp + 0x14]
lea eax, [eax + edx*2]
sbb eax, 0xffffffff
shr eax, 3
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x49174f
mov byte [esi], 0
inc esi
dec eax
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 2]
cmp eax, edx
jae 0x491761
push 0x26e
jmp 0x49179d
mov ebx, edi
mov dword [esp + 4], eax
mov edi, ecx
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x49178b
cmp eax, 0xfffffffe
jne 0x491781
mov edi, dword [esp + 4]
sub edi, ecx
add edi, 0xfffffffe
jmp 0x49178b
mov edi, eax
test eax, eax
js 0x491984
mov edx, dword [esp + 4]
sub edx, ecx
lea eax, [edx - 2]
cmp eax, edi
jae 0x4917d2
push 0x283
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x72
push 0
push 4
call fcn.004b9040
add esp, 0x14
xor esi, esi
xor ebx, ebx
push ebx
call fcn.0049f1c0
add esp, 4
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.004e3343
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 8], edx
je 0x491802
push edi
call fcn.0049f180
add esp, 4
test eax, eax
je 0x491998
mov ebx, eax
push 0x525588
push edi
push eax
call fcn.004831e0
add esp, 0xc
jmp 0x491804
xor ebx, ebx
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
test eax, eax
je 0x491843
push dword [eax + 0x1c]
call fcn.0049f180
add esp, 4
test eax, eax
je 0x4919a9
push 0
mov dword [esp + 0x10], eax
call fcn.0049f1c0
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 8]
lea edx, [esi + ecx]
dec edx
mov dword [esp + 0xc], edx
dec ecx
mov dword [esp + 8], ecx
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
lea esi, [esp + 0x20]
push esi
call ecx
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push 8
push 0x525629
push esi
call ecx
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push dword [esp + 0x18]
push dword [ebp + 0x10]
push esi
call ecx
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push edi
push ebx
push esi
call ecx
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
call dword [section..00cfg]
push dword [esp + 0xc]
push esi
call ecx
add esp, 8
mov eax, dword [esp + 0x20]
push dword [eax + 0x1c]
push dword [esp + 0x28]
call fcn.0049f200
add esp, 8
push dword [esp + 0x24]
call fcn.0049f1c0
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x491904
mov ecx, dword [eax]
mov esi, dword [esp + 0x28]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
push esi
push dword [esp + 0x14]
call fcn.00490ac0
add esp, 0xc
test eax, eax
je 0x4919d3
add esi, edi
mov eax, dword [esp + 4]
sub eax, esi
mov esi, dword [esp + 0x10]
xor byte [eax + esi - 2], 1
test edi, edi
je 0x49195c
add eax, esi
dec eax
xor ecx, ecx
nop dword [eax + eax]
movzx edx, byte [ebx + ecx]
xor byte [eax + ecx], dl
inc ecx
cmp edi, ecx
jne 0x491950
mov eax, dword [esp + 0x14]
test eax, eax
je 0x491971
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [esi], al
mov eax, dword [esp + 4]
mov byte [eax + esi - 1], 0xbc
mov esi, 1
jmp 0x4917b4
push 0x27c
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x8a
jmp 0x4917a4
push 0x28a
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x41
jmp 0x4917a4
push 0xd2
push str....._third_party_boringssl_srccrypto_fipsmoduledigestdigest.c
push 0x41
push 0
push 0x1d
call fcn.004b9040
add esp, 0x14
push 0
call fcn.0049f1c0
add esp, 4
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
xor esi, esi
jmp 0x4917b4