Function at 0x496c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov eax, dword [0x53c014]
xor eax, ebp
test edi, edi
cmove edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x496cbf
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
mov edx, dword [ecx]
xor ecx, ecx
xor esi, esi
nop word cs:[eax + eax]
or esi, dword [edx + ecx*4]
inc ecx
cmp ebx, ecx
jne 0x496c90
test esi, esi
je 0x496cbf
mov dword [ebp - 0x3c], edi
mov ecx, ebx
sar ecx, 0x1f
and ecx, ebx
mov dword [ebp - 0x30], ecx
mov ecx, ebx
mov dword [ebp - 0x38], eax
nop
test ecx, ecx
jle 0x496cd0
mov edi, dword [edx + ecx*4 - 4]
dec ecx
test edi, edi
je 0x496cb0
jmp 0x496ce4
push 0x261
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push pe_nt_image_headers32
jmp 0x496e89
xor edi, edi
test ebx, ebx
jns 0x496d65
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 1]
mov edi, dword [edx + eax*4 - 4]
shl ecx, 5
xor eax, eax
test edi, edi
setne al
mov dword [ebp - 0x24], eax
mov esi, edi
shr esi, 0x10
cmp edi, 0x10000
cmovb esi, edi
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x34], eax
mov edi, esi
shr edi, 8
xor eax, eax
cmp esi, 0x100
cmovb edi, esi
setae al
mov dword [ebp - 0x28], eax
mov esi, edi
shr esi, 4
xor eax, eax
cmp edi, 0x10
cmovb esi, edi
setae al
mov dword [ebp - 0x2c], eax
mov edi, esi
shr edi, 2
xor eax, eax
cmp esi, 4
cmovb edi, esi
setae al
mov esi, eax
mov eax, dword [ebp - 0x24]
or eax, ecx
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
lea ecx, [eax + ecx*8]
mov eax, dword [ebp - 0x2c]
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 0x496d86
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x496e2c
mov esi, edi
mov ecx, ebx
nop word [eax + eax]
test ecx, ecx
jle 0x496d9f
mov edi, dword [edx + ecx*4 - 4]
dec ecx
test edi, edi
je 0x496d90
jmp 0x496db3
xor eax, eax
test ebx, ebx
mov edi, esi
jns 0x496e2c
mov ecx, dword [ebp - 0x30]
mov edi, dword [edx + ecx*4 - 4]
dec ecx
shl ecx, 5
mov dword [ebp - 0x34], esi
mov ebx, edi
shr ebx, 0x10
xor eax, eax
cmp edi, 0x10000
cmovb ebx, edi
setae al
shl eax, 4
mov dword [ebp - 0x24], eax
mov esi, ebx
shr esi, 8
xor eax, eax
cmp ebx, 0x100
cmovb esi, ebx
setae al
mov dword [ebp - 0x28], 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 [ebp - 0x24]
cmp esi, 2
mov eax, dword [ebp - 0x28]
lea eax, [ecx + eax*8]
lea eax, [eax + ebx*4]
mov edi, dword [ebp - 0x34]
lea eax, [eax + edx*2]
sbb eax, 0xffffffff
shr eax, 3
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x496e38
mov byte [esi], 0
inc esi
dec eax
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + 2]
cmp eax, edx
jae 0x496e49
push 0x26e
jmp 0x496e82
mov ebx, edi
mov dword [ebp - 0x24], eax
mov edi, ecx
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x496e71
cmp eax, 0xfffffffe
jne 0x496e67
mov edi, dword [ebp - 0x24]
sub edi, ecx
add edi, 0xfffffffe
jmp 0x496e71
mov edi, eax
test eax, eax
js 0x497042
mov edx, dword [ebp - 0x24]
sub edx, ecx
lea eax, [edx - 2]
cmp eax, edi
jae 0x496eb6
push 0x283
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x72
push 0
push 4
call fcn.004bee40
add esp, 0x14
xor esi, esi
xor ebx, ebx
push ebx
call fcn.004a4f50
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], edx
je 0x496ee4
push edi
call fcn.004a4f10
add esp, 4
test eax, eax
je 0x497056
mov ebx, eax
push 0x52d858
push edi
push eax
call fcn.00488d60
add esp, 0xc
jmp 0x496ee6
xor ebx, ebx
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
test eax, eax
je 0x496f20
push dword [eax + 0x1c]
call fcn.004a4f10
add esp, 4
test eax, eax
je 0x497067
push 0
mov dword [ebp - 0x2c], eax
call fcn.004a4f50
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x28]
lea edx, [esi + ecx]
dec edx
mov dword [ebp - 0x2c], edx
dec ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
lea esi, [ebp - 0x20]
push esi
call ecx
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push 8
push 0x52d8f9
push esi
call ecx
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push dword [ebp - 0x38]
push dword [ebp + 0x10]
push esi
call ecx
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push edi
push ebx
push esi
call ecx
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
call dword [section..00cfg]
push dword [ebp - 0x2c]
push esi
call ecx
add esp, 8
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
push dword [ebp - 0x1c]
call fcn.004a4f90
add esp, 8
push dword [ebp - 0x1c]
call fcn.004a4f50
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x496fd1
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
push esi
push dword [ebp - 0x2c]
call fcn.00496250
add esp, 0xc
test eax, eax
je 0x497090
add esi, edi
mov eax, dword [ebp - 0x24]
sub eax, esi
mov esi, dword [ebp - 0x30]
xor byte [eax + esi - 2], 1
test edi, edi
je 0x49701c
add eax, esi
dec eax
xor ecx, ecx
movzx edx, byte [ebx + ecx]
xor byte [eax + ecx], dl
inc ecx
cmp edi, ecx
jne 0x497010
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x497030
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [esi], al
mov eax, dword [ebp - 0x24]
mov byte [eax + esi - 1], 0xbc
mov esi, 1
jmp 0x496e99
push 0x27c
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x8a
jmp 0x496e89
push 0x28a
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x41
jmp 0x496e89
push 0xd2
push str....._third_party_boringssl_srccrypto_fipsmoduledigestdigest.c
push 0x41
push 0
push 0x1d
call fcn.004bee40
add esp, 0x14
push 0
call fcn.004a4f50
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
xor esi, esi
jmp 0x496e99