Function at 0x40c480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x43c01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1c4], esi
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x1d0], edi
test eax, eax
jne 0x40c4e4
push 0x2a
push str.srcpkpkcs1pkcs_1_pss_encode.c
push str.msghash___NULL
call fcn.00406ab0
add esp, 0xc
cmp dword [ebp - 0x1bc], 0
jne 0x40c501
push 0x2b
push str.srcpkpkcs1pkcs_1_pss_encode.c
push str.out___NULL
call fcn.00406ab0
add esp, 0xc
test edi, edi
jne 0x40c519
push 0x2c
push str.srcpkpkcs1pkcs_1_pss_encode.c
push str.outlen___NULL
call fcn.00406ab0
add esp, 0xc
push esi
call fcn.00404c60
add esp, 4
test eax, eax
jne 0x40c91b
push ebx
call fcn.00407460
add esp, 4
test eax, eax
jne 0x40c91b
imul eax, esi, 0x68
mov ecx, 0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1a8], eax
mov edx, dword [eax + 0x43da28]
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ebp - 0x1b0], edx
test al, 7
mov dword [ebp + 0x20], eax
setne cl
shr eax, 3
lea ebx, [ecx + eax]
mov dword [ebp - 0x1ac], ebx
cmp esi, ebx
ja 0x40c916
lea eax, [esi + 2]
add eax, edx
cmp ebx, eax
jb 0x40c916
push ebx
call fcn.0041ddba
mov edi, eax
push ebx
mov dword [ebp - 0x1c8], edi
call fcn.0041ddba
push dword [ebp - 0x1ac]
mov ebx, eax
mov dword [ebp - 0x1cc], ebx
call fcn.0041ddba
push dword [ebp - 0x1ac]
mov dword [ebp - 0x1b4], eax
call fcn.0041ddba
add esp, 0x10
mov dword [ebp - 0x1b8], eax
test edi, edi
je 0x40c8cd
test ebx, ebx
je 0x40c8c4
mov ecx, dword [ebp - 0x1b4]
test ecx, ecx
je 0x40c8c4
test eax, eax
je 0x40c8c4
test esi, esi
je 0x40c61b
mov eax, dword [ebp - 0x1d4]
push dword [ebp - 0x1d8]
push esi
lea eax, [eax + eax*4]
mov eax, dword [eax*8 + 0x43e734]
push ecx
call eax
add esp, 0xc
cmp eax, esi
je 0x40c61b
mov esi, 9
jmp 0x40c88c
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x43da74]
call eax
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c88c
push 8
push edi
call fcn.0040ace0
push 8
lea eax, [ebp - 0x1a4]
push edi
push eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x43da78]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40c88c
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x1c0]
push eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x43da78]
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40c88c
push dword [ebp + 0x10]
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x1b4]
push eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x43da78]
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40c88c
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x43da7c]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c88c
mov esi, dword [ebp - 0x1ac]
sub esi, dword [ebp - 0x1b0]
mov eax, esi
sub eax, dword [ebp + 0x10]
sub eax, 2
push eax
push 0
push edi
call fcn.00419350
mov ecx, dword [ebp + 0x10]
mov eax, edi
sub eax, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x1ac]
sub eax, ecx
push ecx
push dword [ebp - 0x1b4]
mov byte [eax + edx - 2], 1
dec edx
add eax, edx
push eax
call fcn.00418dd0
dec esi
push esi
push ebx
push dword [ebp - 0x1b0]
mov dword [ebp - 0x1a8], esi
push dword [ebp - 0x1b8]
push dword [ebp - 0x1c4]
call fcn.0040bf50
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x40c88c
mov esi, dword [ebp - 0x1a8]
xor edx, edx
test esi, esi
je 0x40c811
cmp esi, 0x20
jb 0x40c7e6
lea eax, [esi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, edi
cmp edi, eax
ja 0x40c781
cmp ecx, ebx
jae 0x40c7e6
mov ecx, esi
mov eax, edi
mov esi, ebx
and ecx, 0xffffffe0
sub esi, edi
mov dword [ebp - 0x1c4], esi
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c0], esi
mov esi, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1c0]
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + 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 0x40c7b0
mov edi, dword [ebp - 0x1c8]
mov ebx, dword [ebp - 0x1cc]
cmp edx, esi
jae 0x40c811
mov dword [ebp - 0x1c8], ebx
lea ecx, [edx + edi]
sub ebx, edi
sub esi, edx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x40c7f7
mov ebx, dword [ebp - 0x1cc]
mov esi, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x1ac]
cmp dword [ecx], eax
jae 0x40c82a
mov dword [ecx], eax
mov esi, 6
jmp 0x40c88c
push esi
mov esi, dword [ebp - 0x1bc]
push edi
push esi
call fcn.00418dd0
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x1ac]
sub eax, ecx
push ecx
push dword [ebp - 0x1b8]
dec eax
add esi, eax
push esi
call fcn.00418dd0
mov edx, dword [ebp - 0x1ac]
add esp, 0x18
mov eax, dword [ebp - 0x1b0]
lea ecx, [edx*8]
sub ecx, dword [ebp + 0x20]
mov byte [esi + eax], 0xbc
mov eax, 0xff
sar eax, cl
mov ecx, dword [ebp - 0x1bc]
and byte [ecx], al
xor esi, esi
mov eax, dword [ebp - 0x1d0]
mov dword [eax], edx
push dword [ebp - 0x1b8]
call fcn.0041dd72
push dword [ebp - 0x1b4]
call fcn.0041dd72
push ebx
call fcn.0041dd72
push edi
call fcn.0041dd72
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417f8c
mov esp, ebp
pop ebp
ret
push edi
call fcn.0041dd72
add esp, 4
test ebx, ebx
je 0x40c8da
push ebx
call fcn.0041dd72
add esp, 4
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x40c8ed
push eax
call fcn.0041dd72
add esp, 4
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x40c900
push eax
call fcn.0041dd72
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417f8c
mov esp, ebp
pop ebp
ret
mov eax, 0x16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f8c
mov esp, ebp
pop ebp
ret