Function at 0x40c300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
je 0x40c6d0
cmp dword [ebp + 0x28], 0
je 0x40c6e1
cmp dword [ebp + 0x2c], 0
je 0x40c6f2
push ebx
mov ebx, dword [ebp + 0x24]
push ebx
call fcn.0040c160
add esp, 4
test eax, eax
jne 0x40c68e
push dword [ebp + 0x20]
call fcn.0040c190
add esp, 4
test eax, eax
jne 0x40c68e
imul eax, ebx, 0x68
mov ecx, 0
push esi
mov ebx, dword [eax + 0x475320]
mov eax, dword [ebp + 0x18]
test al, 7
mov dword [ebp - 0x18], ebx
setne cl
shr eax, 3
add ecx, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 2]
cmp esi, eax
jae 0x40c6c5
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x14], edx
lea eax, [edx - 2]
cmp dword [ebp + 0xc], eax
ja 0x40c6c5
push edi
push ecx
call fcn.0043d0a4
push dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0xc], edi
call fcn.0043d0a4
mov esi, eax
push ebx
mov dword [ebp - 0x1c], esi
call fcn.0043d0a4
add esp, 0xc
mov dword [ebp - 8], eax
test edi, edi
je 0x40c69c
test esi, esi
je 0x40c693
test eax, eax
je 0x40c693
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c3e4
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 0x14]
push eax
jmp 0x40c3ec
lea eax, [ebp - 4]
push eax
push edi
push 0
push edi
push dword [ebp + 0x24]
call fcn.004117b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40c671
mov eax, dword [ebp - 0x14]
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 - 0x14], eax
lea eax, [edi + ebx]
push eax
call fcn.00438710
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
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.00438190
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 + 0x4760fc]
push edi
call eax
add esp, 0x24
cmp eax, ebx
je 0x40c46e
mov edi, 9
jmp 0x40c671
mov edx, dword [ebp - 0x10]
sub edx, ebx
dec edx
push edx
push esi
push ebx
push edi
push dword [ebp + 0x24]
mov dword [ebp + 8], edx
call fcn.004118c0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40c671
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40c544
mov edx, dword [ebp - 0xc]
cmp ecx, 0x40
jb 0x40c521
lea eax, [ecx - 1]
add eax, esi
cmp edx, eax
ja 0x40c4b5
lea eax, [edx - 1]
add eax, ecx
cmp eax, esi
jae 0x40c521
mov eax, ecx
mov ebx, esi
and eax, 0xffffffc0
sub ebx, edx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, edx
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi + edi + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi + edi + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + edi + 0x30]
add edi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edi, dword [ebp - 0x20]
jb 0x40c4d0
mov ecx, dword [ebp + 8]
cmp edi, ecx
jae 0x40c544
lea ecx, [edi + edx]
sub esi, edx
mov edx, dword [ebp + 8]
sub edx, edi
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x40c530
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push ebx
push esi
push ecx
push dword [ebp - 0xc]
push dword [ebp + 0x24]
call fcn.004118c0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40c671
xor edx, edx
test ebx, ebx
je 0x40c611
mov edi, dword [ebp - 8]
cmp ebx, 0x40
jb 0x40c5f0
lea eax, [esi - 1]
lea ecx, [edi - 1]
add eax, ebx
add ecx, ebx
cmp edi, eax
ja 0x40c583
cmp ecx, esi
jae 0x40c5f0
mov ecx, ebx
mov eax, edi
mov ebx, esi
and ecx, 0xffffffc0
sub ebx, edi
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax]
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 [esi + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x40c5a0
mov edi, dword [ebp - 8]
cmp edx, ebx
jae 0x40c611
lea ecx, [edx + edi]
mov dword [ebp - 0x20], 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 0x40c600
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp - 0x10]
cmp dword [eax], edi
jae 0x40c624
mov dword [eax], edi
mov edi, 6
jmp 0x40c671
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.00438190
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, ebx
push edx
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
add eax, dword [ebp + 0x28]
push eax
call fcn.00438190
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.0043c6bb
push esi
call fcn.0043c6bb
push dword [ebp - 0xc]
call fcn.0043c6bb
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0043c6bb
add esp, 4
test esi, esi
je 0x40c6a9
push esi
call fcn.0043c6bb
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40c6b9
push eax
call fcn.0043c6bb
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
push 0x2a
push str.f:_sourcecryptlibtomcrypt_srcpkpkcs1pkcs_1_oaep_encode.c
push str.msg___NULL
call fcn.0040c100
push 0x2b
push str.f:_sourcecryptlibtomcrypt_srcpkpkcs1pkcs_1_oaep_encode.c
push str.out___NULL
call fcn.0040c100
push 0x2c
push str.f:_sourcecryptlibtomcrypt_srcpkpkcs1pkcs_1_oaep_encode.c
push str.outlen___NULL
call fcn.0040c100
int3