Function at 0x407490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x4074b0
push 0x2a
push str.srcpkpkcs1pkcs_1_oaep_encode.c
push str.msg___NULL
call fcn.00406ab0
add esp, 0xc
mov ecx, dword [ebp + 0x28]
test ecx, ecx
jne 0x4074cb
push 0x2b
push str.srcpkpkcs1pkcs_1_oaep_encode.c
push str.out___NULL
call fcn.00406ab0
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
jne 0x4074e6
push 0x2c
push str.srcpkpkcs1pkcs_1_oaep_encode.c
push str.outlen___NULL
call fcn.00406ab0
add esp, 0xc
push ebx
mov ebx, dword [ebp + 0x24]
push ebx
call fcn.00404c60
add esp, 4
test eax, eax
jne 0x40781f
push dword [ebp + 0x20]
call fcn.00407460
add esp, 4
test eax, eax
jne 0x40781f
imul eax, ebx, 0x68
mov ecx, 0
push esi
mov ebx, dword [eax + 0x43da28]
mov eax, dword [ebp + 0x18]
test al, 7
mov dword [ebp - 0x1c], ebx
setne cl
shr eax, 3
add ecx, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x14], ecx
lea eax, [ecx - 2]
cmp esi, eax
jae 0x407856
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x18], edx
lea eax, [edx - 2]
cmp dword [ebp + 0xc], eax
ja 0x407856
push edi
push ecx
call fcn.0041ddba
push dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0xc], edi
call fcn.0041ddba
mov esi, eax
push ebx
mov dword [ebp - 0x10], esi
call fcn.0041ddba
add esp, 0xc
mov dword [ebp - 8], eax
test edi, edi
je 0x40782d
test esi, esi
je 0x407824
test eax, eax
je 0x407824
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4075a6
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 0x14]
push eax
jmp 0x4075ae
lea eax, [ebp - 4]
push eax
push edi
push 0
push edi
push dword [ebp + 0x24]
call fcn.0040be50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x407802
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
sub eax, 2
mov dword [ebp - 4], ebx
push eax
push edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [edi + ebx]
push eax
call fcn.00419350
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov byte [eax + edi], 1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
add eax, edi
push eax
call fcn.00418dd0
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov edi, dword [ebp - 8]
push ebx
lea eax, [eax + eax*4]
mov eax, dword [eax*8 + 0x43e734]
push edi
call eax
add esp, 0x24
cmp eax, ebx
je 0x407630
mov edi, 9
jmp 0x407802
mov eax, dword [ebp - 0x14]
sub eax, ebx
dec eax
push eax
push esi
push ebx
push edi
push dword [ebp + 0x24]
mov dword [ebp + 8], eax
call fcn.0040bf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x407802
mov ecx, dword [ebp + 8]
xor edx, edx
test ecx, ecx
je 0x4076f6
mov edi, dword [ebp - 0xc]
cmp ecx, 0x20
jb 0x4076d1
lea eax, [ecx - 1]
add eax, esi
cmp edi, eax
ja 0x407679
lea eax, [edi - 1]
add eax, ecx
cmp eax, esi
jae 0x4076d1
mov eax, ecx
mov ebx, esi
and eax, 0xffffffe0
sub ebx, edi
mov dword [ebp - 0x18], ebx
lea ebx, [esi + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, edi
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ecx + edx]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, dword [ebp - 0x24]
jb 0x4076a0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp edx, ecx
jae 0x4076f6
lea ecx, [edx + edi]
mov dword [ebp - 0x24], esi
sub esi, edi
mov edi, dword [ebp + 8]
sub edi, edx
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x4076e2
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push ecx
push dword [ebp - 0xc]
push dword [ebp + 0x24]
call fcn.0040bf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x407802
xor edx, edx
test ebx, ebx
je 0x4077a3
mov edi, dword [ebp - 8]
cmp ebx, 0x20
jb 0x407782
lea eax, [esi - 1]
lea ecx, [edi - 1]
add eax, ebx
add ecx, ebx
cmp edi, eax
ja 0x407735
cmp ecx, esi
jae 0x407782
mov ecx, ebx
mov eax, edi
mov ebx, esi
and ecx, 0xffffffe0
sub ebx, edi
mov dword [ebp - 0x24], ebx
lea ebx, [esi + 0x10]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edi + edx]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x407752
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
cmp edx, ebx
jae 0x4077a3
lea ecx, [edx + edi]
mov dword [ebp - 0x24], esi
sub esi, edi
mov edi, ebx
sub edi, edx
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x407792
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp - 0x14]
cmp dword [eax], edi
jae 0x4077b6
mov dword [eax], edi
mov edi, 6
jmp 0x407802
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 4], 0
push ebx
push dword [ebp - 8]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
add eax, ecx
push eax
call fcn.00418dd0
mov eax, dword [ebp - 4]
push dword [ebp + 8]
add eax, ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
add eax, dword [ebp + 0x28]
push eax
call fcn.00418dd0
mov eax, dword [ebp - 4]
sub edi, ebx
mov ecx, dword [ebp + 0x2c]
dec eax
add eax, edi
add esp, 0x18
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ecx], eax
push dword [ebp - 8]
call fcn.0041dd72
push esi
call fcn.0041dd72
push dword [ebp - 0xc]
call fcn.0041dd72
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0041dd72
add esp, 4
test esi, esi
je 0x40783a
push esi
call fcn.0041dd72
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40784a
push eax
call fcn.0041dd72
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x16
pop ebx
mov esp, ebp
pop ebp
ret