Function at 0x510850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7c
call fcn.005dfa60
mov eax, dword [0x6a704c]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0xc], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x14]
push 0x18
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x14], 0
mov dword [0x6a7ea4], 0
call fcn.005ee808
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x5108c9
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
test eax, eax
jne 0x510931
push 0x143
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptoevpevp_lib.c
push 0x9f
mov edx, 0xa2
lea ecx, [eax + 6]
call fcn.00489de0
add esp, 0xc
or eax, 0xffffffff
jmp 0x510934
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
test esi, esi
je 0x510f74
test eax, eax
jle 0x510f74
mov ecx, edi
call fcn.005105b0
mov ebx, eax
mov dword [esp + 0x3c], ebx
test ebx, ebx
jne 0x510973
push 0x8a
jmp 0x510f79
mov ecx, edi
call fcn.004b5600
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.004b5600
mov dword [esp + 0x28], eax
call fcn.004a24f0
cmp dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
je 0x510f66
cmp dword [esp + 0x28], 0
je 0x510f66
test eax, eax
je 0x510f66
mov ecx, eax
call fcn.004a2690
mov ecx, dword [esp + 0x10]
call fcn.004a2800
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
call fcn.004a2800
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
call fcn.004a2800
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.004a2800
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
call fcn.004a2800
mov dword [esp + 0x44], eax
test eax, eax
jne 0x510a0d
push 0x9e
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 3
jmp 0x510f80
lea eax, [ebx + ebx]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x510a24
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
jmp 0x510a5a
push eax
mov dword [0x6a7ea4], 0
call fcn.005ee808
mov ebx, eax
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x510a56
push dword [esp + 0x48]
push 0
push ebx
call fcn.005e1a80
add esp, 0xc
jmp 0x510a5a
mov dword [esp + 0x30], eax
push dword [esp + 0x2c]
mov dword [0x6a7ea4], 0
call fcn.005ee808
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x510a8b
push dword [esp + 0x2c]
push 0
push eax
call fcn.005e1a80
mov eax, dword [esp + 0x2c]
add esp, 0xc
test ebx, ebx
je 0x510f58
test eax, eax
je 0x510f58
mov eax, dword [esp + 0x5c]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.005e1a80
mov edx, dword [esp + 0x40]
add esp, 0xc
push dword [esp + 0x80]
call fcn.004dd380
add esp, 4
test eax, eax
jne 0x510ad0
push 0xad
jmp 0x510f79
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x84]
mov dword [esp + 0x84], 0
push eax
push 0
push dword [esp + 0x44]
mov ecx, edi
mov dword [esp + 0x94], 0
call fcn.004b5b50
add esp, 0x14
test eax, eax
je 0x510f4a
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.004b57b0
add esp, 0xc
test eax, eax
je 0x510f4a
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x510b57
test eax, eax
je 0x510b57
mov eax, 1
jmp 0x510b59
xor eax, eax
push dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x84]
push ecx
push eax
push 0
mov ecx, edi
call fcn.004b5b50
add esp, 0x14
test eax, eax
je 0x510f4a
push dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, edi
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.004b57b0
add esp, 0xc
test eax, eax
je 0x510f4a
mov edi, dword [esp + 0x3c]
test edi, edi
js 0x510f43
push ecx
mov ecx, dword [esp + 0x44]
mov edx, ebx
push edi
call fcn.0047dd00
add esp, 8
test eax, eax
js 0x510f43
lea eax, [ebx + edi]
push ecx
mov ecx, dword [esp + 0x48]
mov edx, eax
push edi
mov dword [esp + 0x84], eax
call fcn.0047dd00
add esp, 8
test eax, eax
js 0x510f43
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x510c08
push 0xc1
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
mov dword [esp + 0x20], eax
push 0x41
jmp 0x510f80
push eax
mov dword [0x6a7ea4], 0
call fcn.005ee808
mov edi, eax
add esp, 4
test edi, edi
je 0x510f31
mov eax, dword [esp + 0x14]
push eax
push 0
push edi
call fcn.005e1a80
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
push dword [esp + 0x38]
push 0
push 0
push dword [esp + 0x54]
push ebx
call fcn.00512370
add esp, 0x14
test eax, eax
jne 0x510c74
push 0xc8
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 6
lea edx, [eax + 0x67]
lea ecx, [eax + 0x35]
call fcn.00489de0
mov dword [esp + 0x24], edi
jmp 0x510f8d
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x18], edi
cmp ecx, 0x40
jb 0x510d20
mov eax, dword [esp + 0x1c]
lea edx, [ecx - 1]
dec eax
add edx, edi
add eax, ecx
cmp edi, eax
ja 0x510ca1
mov dword [esp + 0x18], edi
cmp edx, dword [esp + 0x1c]
jae 0x510d20
mov edx, dword [esp + 0x1c]
mov eax, ecx
and eax, 0xffffffc0
mov dword [esp + 0x18], edi
mov esi, edx
mov dword [esp + 0x78], eax
lea eax, [edi + 0x10]
sub esi, edi
lea ecx, [edx + 0x30]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
mov edx, ebx
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, dword [esp + 0x78]
jne 0x510cc0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x4c]
cmp edx, eax
je 0x510d42
jmp 0x510d22
mov eax, ecx
mov esi, dword [esp + 0x1c]
lea ecx, [edi + ebx]
mov edx, eax
sub esi, edi
sub edx, ebx
nop
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x510d30
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.00480d80
push 0
push dword [esp + 0x3c]
push esi
call fcn.00480eb0
add esp, 0xc
test eax, eax
je 0x510f23
push dword [esp + 0x3c]
mov eax, dword [esi + 0x14]
push dword [esp + 0x54]
push esi
call eax
add esp, 0xc
test eax, eax
je 0x510f23
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
push ebx
push dword [esp + 0x20]
push esi
call eax
add esp, 0xc
test eax, eax
je 0x510f23
push dword [esp + 0x3c]
mov eax, dword [esi + 0x14]
push dword [esp + 0x80]
push esi
call eax
add esp, 0xc
test eax, eax
je 0x510f23
mov eax, dword [esi]
cmp dword [eax + 8], 0x40
jg 0x511084
push dword [esp + 0x20]
mov eax, dword [eax + 0x18]
push esi
call eax
mov dword [esp + 0x80], eax
add esp, 8
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x510de4
push esi
call ecx
mov eax, dword [esi]
add esp, 4
or dword [esi + 8], 2
push dword [eax + 0x28]
push dword [esi + 0xc]
call fcn.00401320
add esp, 8
mov ecx, esi
call fcn.00480d80
cmp dword [esp + 0x78], 0
je 0x510f23
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
push 0x10
mov dword [esp + 0x70], eax
mov dword [0x6a7ea4], 0
call fcn.005ee808
add esp, 4
test eax, eax
je 0x510e3b
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 4], 4
jmp 0x510e59
mov edx, 0x82
push 0x157
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_asn1_asn1_lib.c
push 0x41
lea ecx, [edx - 0x75]
call fcn.00489de0
add esp, 0xc
xor eax, eax
push 0x10
mov dword [esp + 0x74], eax
mov dword [0x6a7ea4], 0
call fcn.005ee808
add esp, 4
test eax, eax
je 0x510e84
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 4], 4
jmp 0x510ea2
mov edx, 0x82
push 0x157
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_asn1_asn1_lib.c
push 0x41
lea ecx, [edx - 0x75]
call fcn.00489de0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x510f15
test eax, eax
je 0x510f15
push dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
call fcn.0047ed20
add esp, 4
test eax, eax
je 0x510f0e
mov ecx, dword [esp + 0x74]
mov edx, edi
push ebx
call fcn.0047ed20
add esp, 4
test eax, eax
je 0x510f0e
push 0
push 0x655bac
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x70]
call fcn.00499f20
add esp, 8
test eax, eax
jns 0x510efb
push 0xea
jmp 0x510f79
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], 1
mov dword [ecx], eax
jmp 0x510f90
push 0xe3
jmp 0x510f79
push 0xde
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 0x41
jmp 0x510f80
push 0xd4
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 6
jmp 0x510f80
push 0xc1
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
mov dword [esp + 0x20], edi
push 0x41
jmp 0x510f80
push 0xbb
jmp 0x510f79
push 0xb5
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 0x10
jmp 0x510f80
push 0xa6
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 0x41
jmp 0x510f80
push 0x92
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 0x41
jmp 0x510f80
push 0x84
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_sm2_sm2_crypt.c
push 0x44
mov edx, 0x67
lea ecx, [edx - 0x32]
call fcn.00489de0
add esp, 0xc
mov edi, dword [esp + 0x74]
test edi, edi
je 0x510fbf
mov eax, dword [edi + 0xc]
mov ebx, eax
and ebx, 0x80
test al, 0x10
jne 0x510fb2
push dword [edi + 8]
call fcn.005e4cbe
add esp, 4
test ebx, ebx
jne 0x510fbf
push edi
call fcn.005e4cbe
add esp, 4
mov edi, dword [esp + 0x70]
test edi, edi
je 0x510fee
mov eax, dword [edi + 0xc]
mov ebx, eax
and ebx, 0x80
test al, 0x10
jne 0x510fe1
push dword [edi + 8]
call fcn.005e4cbe
add esp, 4
test ebx, ebx
jne 0x510fee
push edi
call fcn.005e4cbe
add esp, 4
push dword [esp + 0x18]
call fcn.005e4cbe
add esp, 4
push dword [esp + 0x30]
call fcn.005e4cbe
add esp, 4
push dword [esp + 0x20]
call fcn.005e4cbe
add esp, 4
mov ecx, esi
call fcn.00480d80
push esi
call fcn.005e4cbe
mov ecx, dword [esp + 0x14]
add esp, 4
call fcn.004a2590
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x51104b
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x511042
push ebx
call eax
add esp, 4
push ebx
call fcn.005e4cbe
add esp, 4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x51106b
mov eax, dword [ebx]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x511062
push ebx
call ecx
add esp, 4
push ebx
call fcn.005e4cbe
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005df097
mov esp, ebp
pop ebp
ret
push 0xb7
mov edx, str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptoevpdigest.c
mov ecx, str.assertion_failed:_ctx__digest__md_size___EVP_MAX_MD_SIZE
call fcn.0049c210
int3