Function at 0x40e070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x7d4
mov eax, dword [0x445504]
xor eax, esp
mov dword [esp + 0x7d0], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x24]
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], esi
jne 0x40e0ba
push 0x2a
push str.._srcpkpkcs1pkcs_1_pss_decode.c
push str.msghash___NULL
call fcn.0040d8b0
add esp, 0xc
test esi, esi
jne 0x40e0d2
push 0x2b
push str.._srcpkpkcs1pkcs_1_pss_decode.c
push str.res___NULL
call fcn.0040d8b0
add esp, 0xc
mov dword [esi], 0
mov esi, dword [ebp + 0x1c]
push esi
call fcn.0040e470
add esp, 4
test eax, eax
jne 0x40e454
mov eax, esi
imul eax, eax, 0x68
mov ebx, dword [eax + 0x446d70]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x20]
mov edx, eax
and dl, 7
neg dl
mov dword [esp + 0x2c], ebx
sbb edx, edx
shr eax, 3
neg edx
add edx, eax
mov eax, dword [ebp + 0x18]
mov esi, edx
cmp eax, esi
ja 0x40e44f
lea eax, [ebx + eax + 2]
cmp esi, eax
jb 0x40e44f
mov edi, dword [ebp + 0x14]
cmp edi, esi
jne 0x40e44f
push esi
call fcn.00417fc0
push esi
mov dword [esp + 0x24], eax
call fcn.00417fc0
push esi
mov dword [esp + 0x24], eax
call fcn.00417fc0
push esi
mov dword [esp + 0x38], eax
call fcn.00417fc0
mov ecx, eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x20], ecx
je 0x40e402
cmp dword [esp + 0x18], 0
je 0x40e3f9
cmp dword [esp + 0x28], 0
je 0x40e3f9
test ecx, ecx
je 0x40e3f9
mov ecx, dword [esp + 0x24]
cmp byte [ecx + edi - 1], 0xbc
je 0x40e1a2
mov esi, 7
jmp 0x40e3b7
mov eax, dword [esp + 0x1c]
mov edi, esi
sub edi, ebx
lea ebx, [edi - 1]
push ebx
mov edx, ecx
push edx
push eax
call fcn.00418720
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
sub ecx, eax
push eax
mov eax, dword [esp + 0x30]
lea edx, [ecx + esi - 1]
push edx
push eax
call fcn.00418720
lea ecx, [esi*8]
sub ecx, dword [ebp + 0x20]
mov eax, 0xff
add ecx, 1
sar eax, cl
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [esp + 0x3c], eax
not eax
test byte [ecx], al
jne 0x40e198
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push ebx
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
call fcn.00412950
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40e3b7
test ebx, ebx
mov ecx, dword [esp + 0x1c]
jbe 0x40e23d
mov esi, dword [esp + 0x18]
mov eax, ecx
sub esi, ecx
lea esp, [esp]
mov dl, byte [esi + eax]
xor byte [eax], dl
add eax, 1
sub ebx, 1
jne 0x40e230
mov al, byte [esp + 0x3c]
sub edi, dword [ebp + 0x18]
and byte [ecx], al
xor ebx, ebx
sub edi, 2
je 0x40e261
lea ecx, [ecx]
cmp byte [ebx + ecx], 0
jne 0x40e198
add ebx, 1
cmp ebx, edi
jb 0x40e250
cmp byte [ebx + ecx], 1
jne 0x40e198
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x446dbc]
lea ecx, [esp + 0x40]
push ecx
call edx
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e3b7
mov esi, dword [esp + 0x18]
push 8
push esi
call fcn.00412910
mov ecx, dword [edi + 0x446dc0]
push 8
lea eax, [esp + 0x4c]
push esi
push eax
call ecx
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40e3b7
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [edi + 0x446dc0]
push eax
lea ecx, [esp + 0x48]
push ecx
call edx
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40e3b7
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [ebx + ecx + 1]
mov ecx, dword [edi + 0x446dc0]
push edx
lea eax, [esp + 0x48]
push eax
call ecx
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40e3b7
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0x446dc4]
push edx
lea eax, [esp + 0x44]
push eax
call ecx
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e3b7
mov eax, dword [esp + 0x2c]
cmp eax, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
jb 0x40e344
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40e348
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x40e330
test eax, eax
je 0x40e3a5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40e397
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40e3a5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40e397
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40e3a5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40e397
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40e3a5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x40e3a5
test esi, esi
mov eax, 1
jg 0x40e3a7
or eax, 0xffffffff
jmp 0x40e3a7
xor eax, eax
test eax, eax
jne 0x40e3b5
mov eax, dword [esp + 0x38]
mov dword [eax], 1
xor esi, esi
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00417ee3
mov edx, dword [esp + 0x2c]
push edx
call fcn.00417ee3
mov eax, dword [esp + 0x20]
push eax
call fcn.00417ee3
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00417ee3
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7d0]
xor ecx, esp
call fcn.00417ed4
mov esp, ebp
pop ebp
ret
push eax
call fcn.00417ee3
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e413
push eax
call fcn.00417ee3
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40e424
push eax
call fcn.00417ee3
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e435
push eax
call fcn.00417ee3
add esp, 4
mov eax, 0xd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7d0]
xor ecx, esp
call fcn.00417ed4
mov esp, ebp
pop ebp
ret
mov eax, 0x16
mov ecx, dword [esp + 0x7dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417ed4
mov esp, ebp
pop ebp
ret