Function at 0x10074910
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
dec eax
cmp eax, 0x29
mov dword [esp + 0x10], edi
jl 0x10074af7
mov ecx, dword [esp + 0x4c]
mov esi, eax
sub esi, ecx
mov dword [esp + 0x50], esi
jns 0x1007494d
mov dword [esp + 0x10], 1
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], eax
mov esi, edi
lea ebp, [eax - 0x14]
push 0x81
add eax, ebp
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push eax
call fcn.10077900
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x1007498e
push 0x84
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.10026360
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea edx, [ebx + ebp]
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x48]
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add edx, 0x14
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push 0x14
push ecx
mov dword [esp + 0x5c], edx
call fcn.10074c50
add esp, 0x10
test eax, eax
jne 0x10074b1c
lea edi, [ebx + ebp]
lea edx, [esp + 0x14]
xor esi, esi
sub edi, edx
mov dl, byte [esp + esi + 0x14]
lea eax, [esp + esi + 0x14]
mov cl, byte [edi + eax]
xor dl, cl
inc esi
cmp esi, 0x14
mov byte [eax], dl
jl 0x100749eb
lea edx, [esp + 0x14]
push 0x14
push edx
push ebp
push ebx
call fcn.10074c50
add esp, 0x10
test eax, eax
jne 0x10074b1c
test ebp, ebp
jle 0x10074a34
mov esi, dword [esp + 0x4c]
mov eax, ebx
sub esi, ebx
mov edi, ebp
mov cl, byte [esi + eax]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x10074a27
push 0
call fcn.1002d960
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x30]
push 0
push edx
push eax
push ecx
call fcn.10029810
add esp, 0x18
mov ecx, 5
lea edi, [esp + 0x28]
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x10074af7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10074af7
mov eax, 0x14
cmp ebp, eax
jle 0x10074a8a
cmp byte [eax + ebx], 0
jne 0x10074a8a
inc eax
cmp eax, ebp
jl 0x10074a7f
cmp eax, ebp
je 0x10074af7
cmp byte [eax + ebx], 1
jne 0x10074af7
mov ecx, dword [esp + 0x44]
inc eax
sub ebp, eax
cmp ecx, ebp
jge 0x10074acd
push 0xac
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.10026360
add esp, 0x14
or ebp, 0xffffffff
push ebx
call fcn.10077ad0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x40]
mov ecx, ebp
lea esi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10077ad0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0xb9
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.10026360
add esp, 0x14
test ebx, ebx
je 0x10074b1c
push ebx
call fcn.10077ad0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret