Function at 0x642790
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.0066af60
mov eax, dword [0x74b738]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x84]
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x18], eax
dec edi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x6427fb
call fcn.005d3920
mov ecx, eax
mov dword [esp + 0x14], eax
test ebx, ebx
push ecx
cmove ebx, ecx
mov dword [esp + 0x2c], ebx
call fcn.005d37d0
mov esi, eax
mov ebx, edi
add esp, 4
mov dword [esp + 0x2c], esi
lea eax, [esi + esi]
sub ebx, eax
lea ecx, [ebx - 1]
cmp ebp, ecx
jle 0x64284e
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0xa0
push 4
call fcn.0059e890
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00669a1e
add esp, 0x68
ret
inc eax
cmp edi, eax
jge 0x64285e
push 0x40
push str..crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x64282a
mov eax, dword [esp + 0x18]
push 0
push dword [esp + 0x18]
lea ebp, [eax + 1]
mov byte [eax], 0
add eax, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], eax
inc eax
push 0
push eax
push dword [esp + 0xa0]
mov dword [esp + 0x34], eax
push dword [esp + 0x44]
call fcn.005c12f0
add esp, 0x18
test eax, eax
je 0x642839
sub ebx, dword [esp + 0x10]
dec ebx
push ebx
mov ebx, dword [esp + 0x24]
push 0
lea eax, [ebx + esi]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x1c]
mov eax, ebx
sub eax, ecx
sub eax, esi
push ecx
push dword [esp + 0x2c]
add eax, edi
push eax
mov byte [eax - 1], 1
call sub.VCRUNTIME140.dll_memcpy
push esi
push ebp
call fcn.0059f120
add esp, 0x20
test eax, eax
jle 0x642839
push 0x55
sub edi, esi
push str..crypto_rsa_rsa_oaep.c
push edi
call fcn.005ae120
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x642901
push 0x57
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x64282a
push dword [esp + 0x28]
push esi
push ebp
push edi
push eax
call fcn.006425e0
add esp, 0x14
test eax, eax
js 0x642839
xor ebx, ebx
test edi, edi
jle 0x6429f2
mov edx, dword [esp + 0x20]
cmp edi, 0x40
jb 0x6429c5
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 1]
add eax, edi
cmp edx, eax
ja 0x64294a
lea eax, [edx - 1]
add eax, edi
cmp eax, ecx
jae 0x6429c5
mov eax, edi
and eax, 0x8000003f
jns 0x642958
dec eax
or eax, 0xffffffc0
inc eax
mov dword [esp + 0x10], edi
mov esi, ecx
sub dword [esp + 0x10], eax
sub esi, edx
mov dword [esp + 0x1c], esi
mov eax, edx
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + ebx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx + ebx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ecx + ebx + 0x30]
add ebx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ebx, dword [esp + 0x10]
jl 0x642972
mov ebp, dword [esp + 0x18]
cmp ebx, edi
jge 0x6429f2
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
inc ecx
sub ebp, edx
add ecx, ebx
mov edx, edi
sub edx, ebx
nop word [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x6429e0
mov ebp, dword [esp + 0x18]
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push edi
push dword [esp + 0x28]
push esi
push eax
call fcn.006425e0
add esp, 0x14
test eax, eax
js 0x642839
xor edx, edx
test esi, esi
jle 0x642aee
cmp esi, 0x40
jb 0x642ace
lea ecx, [ebp - 1]
lea eax, [esp + esi + 0x33]
add ecx, esi
cmp ebp, eax
ja 0x642a3d
lea eax, [esp + 0x34]
cmp ecx, eax
jae 0x642ace
mov eax, esi
and eax, 0x8000003f
jns 0x642a4b
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, esi
lea edi, [esp + 0x34]
lea esi, [esp + 0x54]
sub ecx, eax
sub esi, ebp
lea ebx, [esp + 0x44]
mov dword [esp + 0x24], esi
sub edi, ebp
sub ebx, ebp
lea esi, [esp + 0x64]
sub esi, ebp
mov eax, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
movups xmm0, xmmword [eax]
mov esi, dword [esp + 0x1c]
add edx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [esp + 0x2c]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x642a75
mov ebp, dword [esp + 0x18]
cmp edx, esi
jge 0x642aee
lea edi, [esp + 0x34]
sub edi, ebp
lea ecx, [edx + ebp]
sub esi, edx
nop dword [eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x642ae0
push dword [esp + 0x14]
call fcn.005adf40
mov ecx, dword [esp + 0x78]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00669a1e
add esp, 0x68
ret