Function at 0x404d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x443104]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, ecx
push esi
push edi
mov dword [esp + 0x10], eax
mov edi, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp edi, eax
je 0x404dd1
mov ecx, edi
mov edx, eax
mov esi, 0x1e
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40514f
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404d76
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40514f
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x22]
mov esi, 0x1e
mov edx, dword [eax]
add edx, 0x22
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40514f
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404db0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40514f
mov edi, dword [esp + 0x10]
mov edx, 0x440240
add edi, 4
mov esi, 0x1e
mov dword [esp + 0x18], edi
mov ecx, edi
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404ea3
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404df0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x404ea3
mov eax, dword [esp + 0x10]
mov edx, 0x440240
add eax, 0x26
mov esi, 0x1e
mov dword [esp + 0x14], eax
mov ecx, eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404e39
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404e28
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404e60
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x404e60
cmp esi, 0xfffffffe
je 0x404e5c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x404e60
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x404e60
xor eax, eax
jmp 0x404e65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404eae
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
movups xmm0, xmmword [ecx + 4]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ecx + 0x14]
movups xmmword [edi + 0x10], xmm0
movzx eax, word [ecx + 0x24]
mov word [edi + 0x20], ax
movups xmm0, xmmword [ecx + 0x26]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x36]
movups xmmword [edx + 0x10], xmm0
movzx eax, word [ecx + 0x46]
mov word [edx + 0x20], ax
jmp 0x405135
mov eax, dword [esp + 0x10]
add eax, 0x26
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [esp + 0x10], eax
je 0x40512c
lea esi, [eax + 4]
mov dword [esp + 0x1c], 0x1e
mov ecx, edi
mov edx, esi
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404eef
add ecx, 4
add edx, 4
sub dword [esp + 0x1c], 4
jae 0x404ed0
mov ax, word [ecx]
cmp ax, word [edx]
je 0x40512c
mov edx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [esp + 0x14]
add edx, 0x26
nop dword [eax + eax]
mov ax, word [edi + ecx*2]
lea edx, [edx + 2]
xor ax, word [edx - 2]
mov word [esp + ecx*2 + 0x2c], ax
inc ecx
cmp ecx, 0x11
jb 0x404f00
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov edx, esi
nop
mov ax, word [edi + ecx*2]
lea edx, [edx + 2]
xor ax, word [edx - 2]
mov word [esp + ecx*2 + 0x88], ax
inc ecx
cmp ecx, 0x11
jb 0x404f20
lea edx, [esp + 0x88]
lea ecx, [esp + 0x50]
call fcn.00401b10
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x8c]
call fcn.00401a00
add esp, 4
lea edx, [esp + 0x88]
lea ecx, [esp + 0x50]
call fcn.00401e80
xor ecx, ecx
movups xmm0, xmmword [esp + ecx*2 + 0x50]
movups xmm1, xmmword [esp + ecx*2 + 0x88]
pxor xmm1, xmm0
movups xmmword [esp + ecx*2 + 0x50], xmm1
add ecx, 8
cmp ecx, 0x10
jb 0x404f73
cmp ecx, 0x11
jae 0x404fb3
nop word [eax + eax]
mov ax, word [esp + ecx*2 + 0x88]
xor word [esp + ecx*2 + 0x50], ax
inc ecx
cmp ecx, 0x11
jb 0x404fa0
xor ecx, ecx
mov edx, edi
nop word [eax + eax]
mov ax, word [edx]
lea edx, [edx + 2]
xor word [esp + ecx*2 + 0x50], ax
inc ecx
cmp ecx, 0x11
jb 0x404fc0
xor ecx, ecx
mov ax, word [esi]
lea esi, [esi + 2]
xor word [esp + ecx*2 + 0x50], ax
inc ecx
cmp ecx, 0x11
jb 0x404fd3
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax]
nop dword [eax]
mov ax, word [edx + ecx*2]
xor word [esp + ecx*2 + 0x50], ax
inc ecx
cmp ecx, 0x11
jb 0x404ff0
lea ecx, [esp + 0x70]
lea eax, [edi + 0x20]
cmp edi, ecx
ja 0x40501c
lea ecx, [esp + 0x50]
cmp eax, ecx
jb 0x40501c
mov esi, ecx
xor eax, eax
sub esi, edi
xor edx, edx
jmp 0x405053
lea esi, [esp + 0x50]
mov eax, edi
sub esi, edi
mov ecx, 2
nop dword [eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
sub ecx, 1
jne 0x405030
mov eax, 0x20
mov edx, 0xfffffff0
lea ecx, [eax + edi]
add edx, 0x11
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
xor word [ecx - 2], ax
sub edx, 1
jne 0x405060
lea eax, [esp + 0x88]
mov edx, edi
push eax
mov ecx, edi
call fcn.00401a00
lea ecx, [esp + 0x74]
add esp, 4
xor eax, eax
cmp edi, ecx
ja 0x405099
lea edx, [esp + 0x50]
lea ecx, [edi + 0x20]
cmp ecx, edx
jae 0x4050cd
mov eax, edi
mov dword [esp + 0x18], 0x10
mov ecx, 2
nop dword [eax + eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
sub ecx, 1
jne 0x4050b0
mov eax, dword [esp + 0x18]
mov edx, 0x11
lea ecx, [edi + eax*2]
sub edx, eax
nop word [eax + eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
xor word [ecx - 2], ax
sub edx, 1
jne 0x4050e0
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov edx, edi
nop dword [eax + eax]
mov ax, word [edx]
lea edx, [edx + 2]
xor word [esi + ecx*2], ax
inc ecx
cmp ecx, 0x11
jb 0x405100
movups xmm0, xmmword [esp + 0x50]
mov ax, word [esp + 0x70]
movups xmmword [edi], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [edi + 0x10], xmm0
mov word [edi + 0x20], ax
jmp 0x405135
mov ecx, dword [esp + 0x10]
call fcn.00405170
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.0041bcc3
mov esp, ebp
pop ebp
ret 4
push str.Not_on_the_same_curve.
lea ecx, [esp + 0x24]
call fcn.00401720
push 0x441778
lea eax, [esp + 0x24]
push eax
call fcn.0041d31a
int3